RasterizeViewportWidth example for Delphi
Add to the use section the file LEADDef.
// 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
// Set viewport mode to L2D_USE_WIDTH_HEIGHT
LEAD1.RasterizeViewMode:= L2D_USE_WIDTH_HEIGHT ;
// Set viewport size to 400*400 pixels
LEAD1.RasterizeViewportWidth := 400 ;
LEAD1.RasterizeViewportHeight := 400 ;
// Load a DXF file
LEAD1.Load ( 'c:\Test.dxf', 0, 0, 1 ) ;