Offset example for Visual C++

int iHShift,iVShift; 
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);

 iHShift = m_LeadRasterView.GetRaster ().GetBitmapWidth() / 2; 
 iVShift = m_LeadRasterView.GetRaster().GetBitmapHeight() / 2; 
m_pRasterProc->Offset(m_LeadRasterView.GetRaster(), iHShift, iVShift, 0, OFFSET_FILL_WRAP); 
m_pRasterProc->Release();