ResizeRgn example for Visual C++
m_RasterView1.SetRgnFrameType (RGNFRAME_ANIMATED);
m_RasterView1.GetRaster ().SetRgnRect (40, 60, 280, 200, L_RGN_SET);
AfxMessageBox(TEXT("About to resize"));
m_RasterView1.GetRaster().ResizeRgn (20, RGN_CONTRACT, FALSE);