RasterizeViewMode property (Main Control)
Builder Syntax |
int RasterizeViewMode; |
Delphi Syntax |
RasterizeViewMode: integer; |
Overview |
Refer to Loading a Bitmap from a File. |
Remarks
(Published property, available at design time) Sets the viewport mode value that LEADTOOLS uses when loading the following Vector file formats: DXF, 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 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. |
See Also
Elements: |
RasterizeViewportWidth property, RasterizeViewportHeight property |
Topics: |