RasterizeViewMode example for C++ 5.0 and later

   ILEADRasterIO *pRasterIO=NULL;
   CoCreateInstance(CLSID_LEADRasterIO, NULL,
                    CLSCTX_ALL, IID_ILEADRasterIO,
                    (void**)&pRasterIO);
   /* This example will set current viewport mode to L2D_USE_WIDTH_AND_HEIGHT,
      sets the current viewport size to 400*400 pixels and then loads a DXF file */
   //You must unlock support for this feature
   //L_KEY_VECTOR_DXF represents the unlock support string
   m_LEADRasterView1.GetRaster().UnlockSupport(L_SUPPORT_VECTOR_DXF, L_KEY_VECTOR_DXF);

   /* Set viewport mode to L2D_USE_WIDTH_HEIGHT */
   pRasterIO->put_RasterizeViewMode (L2D_USE_WIDTH_HEIGHT);
   /*  Set viewport size to 400*400 pixels */ 
   pRasterIO->put_RasterizeViewportWidth (400);
   pRasterIO->put_RasterizeViewportHeight (400);
   /* Load a DXF file */ 
   pRasterIO->Load (m_LEADRasterView1.GetRaster(), "s:\\temp\\images\\dxf\\Test.dxf", 0, 0, 1);
   pRasterIO->Release();