RasterizeViewMode Example for C++ Builder
// 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
LEADRasterIO* pRasterIO= NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
LEADRasterView1->Raster->UnlockSupport ( L_SUPPORT_VECTOR_DXF, AnsiToOLESTR("TestKey") ) ;
//Set viewport mode to L2D_USE_WIDTH_HEIGHT
pRasterIO->RasterizeViewMode = L2D_USE_WIDTH_HEIGHT;
//Set viewport size to 400*400 pixels
pRasterIO->RasterizeViewportWidth = 400;
pRasterIO->RasterizeViewportHeight = 400;
//Load a DXF file
pRasterIO->Load (LEADRasterView1->Raster, AnsiToOLESTR("v:\\images\\Test.dxf"), 0, 0, 1);
pRasterIO-> Release();