PLTViewportMode Property (ILEADRasterDlgFile)

Visual Basic example

Visual C++ example

 

Syntax

RasterizeViewModeConstants PLTViewportMode;

Overview

Refer to Using Imaging Common Dialogs

Remarks

(Read Only) Gets the viewport mode value entered by the user in the Open dialog box. Possible values are:

Value

Meaning

L2D_USE_BEST

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

L2D_USE_WIDTH

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

L2D_USE_HEIGHT

Use the current view-port height. Calculate the new width, preserving the aspect ratio. Final image size has the same height as the current view-port height, with the width less than or equal to the current view-port 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 view-port size.

The PLTViewportMode property is valid only if the OptionsFileType property contains FILE_PLT.

See Also

Elements

ShowOpenDlg method