Deskew example for C++ 5.0 and later
ILEADRasterProcess* m_pRasterProc= NULL;
CString strMsg;
long iAngle = 0;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess,
(void**)&m_pRasterProc);
m_pRasterProc->Deskew(m_LeadRasterView.GetRaster(),RGB(0,0,0),DSKW_PROCESS
| DSKW_NOFILL | DSKW_DOCUMENTIMAGE);
iAngle = pRasterProc->GetDeskewAngle();
strMsg.Format(TEXT("Rotation: %d hundredths of degrees"), iAngle);
MessageBox(strMsg);
m_pRasterProc->Release();