VECTORMISCViewportMode property (LEADDlgFile Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

L_UINT VECTORMISCViewportMode

Delphi Syntax

VECTORMISCViewportMode: L_UINT

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 the 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 the image if necessary). Final image size has the same width and height as the current view-port size.

This property is valid only if the OptionsFileType property contains one of the following formats:

FILE_DWF, FILE_CGM, FILE_CMX, FILE_PCL, FILE_VECTOR_DUMP, FILE_PCT, FILE_DRW, FILE_INTERGRAPH_VECTOR, FILE_GERBER, FILE_SHP, FILE_SVG, FILE_VWPG

See Also

Elements:

ShowOpenDlg method, Filter property, FilterIndex property, FileName property, FileTitle property, DialogTitle property, DlgFileFlags property, InitialDir property, MaxFileSize property, MaxFileTitleSize property, PreviewEnabled property, OptionsFileType property, Bitmap property, Thumbnail property, PageNumber property, LoadPasses property, LoadCompressed property, LoadRotated property, ShowLoadOptions property, PCDResolution property, PDFXResolution property, PDFYResolution property, PDFDisplayDepth property, PDFTextAlpha property, PDFGraphicsAlpha property, RASTERMISCXResolution property, RASTERMISCYResolution property, METAFILEXResolution property, METAFILEYResolution property, VECTORMISCViewportWidth property, VECTORMISCViewportHeight property, VECTORMISCFont property, DXFViewportWidth property, DXFViewportHeight property, DXFViewportMode property, DXFFont property, DXFAutoCADColorScheme property, PLTViewportWidth property, PLTViewportHeight property, PLTViewportMode property, PLTPenWidth property, PLTPenColor property

Topics:

Imaging Common Dialogs: Properties, Methods, and Events