Perspective example for Visual C++
IILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
m_pRasterProc->PutPerspectivePointsX(0, (long)( m_LeadRasterView.GetRaster().GetBitmapWidth() * 3 / 9));
m_pRasterProc->PutPerspectivePointsY(0, (long)( m_LeadRasterView.GetRaster().GetBitmapHeight() * 1 / 12));
m_pRasterProc->PutPerspectivePointsX(1, (long)( m_LeadRasterView.GetRaster().GetBitmapWidth() * 3 / 4));
m_pRasterProc->PutPerspectivePointsY(1, (long)( m_LeadRasterView.GetRaster().GetBitmapHeight() * 2 / 12));
m_pRasterProc->PutPerspectivePointsX(2, (long)( m_LeadRasterView.GetRaster().GetBitmapWidth() * 2 / 10));
m_pRasterProc->PutPerspectivePointsY(2, (long)( m_LeadRasterView.GetRaster().GetBitmapHeight() * 8 / 10));
m_pRasterProc->PutPerspectivePointsX(3, (long)( m_LeadRasterView.GetRaster().GetBitmapWidth() * 10 / 11));
m_pRasterProc->PutPerspectivePointsY(3, (long)( m_LeadRasterView.GetRaster().GetBitmapHeight() * 7 / 10));
m_pRasterProc->Perspective(m_LeadRasterView.GetRaster(), RGB(255,255,255), PERSPECTIVE_IMAGE);
m_pRasterProc->Release();