RasterizeViewMode Example for Visual Basic
' 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
Dim RasterIO As New LEADRasterIO
' Set viewport mode to L2D_USE_WIDTH_HEIGHT
RasterIO.RasterizeViewMode = L2D_USE_WIDTH_HEIGHT
' Set viewport size to 400*400 pixels
RasterIO.RasterizeViewportWidth = 400
RasterIO.RasterizeViewportHeight = 400
' Load a DXF file
RasterIO.Load LEADRasterView1.Raster, "s:\temp\images\dxf\Test.dxf", 0, 0, 1