Rotate example for C++ 5.0 and later

This example rotates the bitmap 45 degrees and redisplays the image. It resizes the bitmap to accommodate the rotation and uses blue as the fill color.

ILEADRasterProcess *pRasterProc=NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL,
                 IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->Rotate(m_LEADRasterView1.GetRaster(),
                    4500, ROTATE_RESIZE, RGB(0, 0, 255));
m_LEADRasterView1.SetAutoSetRects(TRUE); // Make sure the display rectangles are adjusted
m_LEADRasterView1.ForceRepaint();
pRasterProc->Release();