RasterizeViewMode property (ILEADRasterIO)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

RasterizeViewModeConstants RasterizeViewMode

Overview

Refer to Loading Vector Files.

Remarks

Sets the viewport mode value that LEADTOOLS uses when loading the following Vector file formats: DXF, DWF, DWG, WMF, EMF, PCT, CGM, DRW, PLT, TIF (with a DXF saved internally) and Intergraph Vector.

Value

Meaning

L2D_USE_BEST

Fit the drawing into the current viewport width and height. Final image size is less than or equal to viewport size.

L2D_USE_WIDTH

Use the current viewport width. Calculate new height, preserving the aspect ratio. Final image size has the same width as the current viewport width, with the height less than or equal to the current viewport height.

L2D_USE_HEIGHT

Use the current viewport height. Calculate the new width, preserving the aspect ratio. Final image size has the same height as the current viewport height, with the width less than or equal to the current viewport width.

L2D_USE_WIDTH_HEIGHT

Use both the width and the height (stretch image if necessary). Final image size has the same width and height as the current viewport size.

Please note that read and write support for the file formats listed above require a LEADTOOLS Vector toolkit. Read support for the file formats listed above require an additional file format plug in. In addition, support for these files formats must be unlocked. For information about unlocking support, refer to Unlocking Vector File Format Support. For more information on available File Format Plug ins, refer to Topic Selection and click on LEAD Products.

See Also

Elements:

RasterizeViewportWidth property ,RasterizeViewportHeight property

Topics:

Raster Images: Loading Files