DeskewExt example for Visual C++

ILEADRasterProcess* m_pRasterProc= NULL; 
CString strMsg; 
long iAngle = 0; 

CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc); 
m_pRasterProc->DeskewExt(m_LeadRasterView.GetRaster(), 1000, 2, 0, DSKW_PROCESS | DSKW_NOFILL| DSKW_LINEAR| DSKW_DOCUMENTIMAGE); 

iAngle = m_pRasterProc->GetDeskewExtAngle();
strMsg.Format(TEXT("Rotation: %d hundredths of degrees"), iAngle); 
MessageBox(strMsg); 

m_pRasterProc->Release();