DXFViewportMode property (LEADDlgFile Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

L_UINT DXFViewportMode

Delphi Syntax

DXFViewportMode: 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 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 is one of the following formats:

FILE_DXF, FILE_DXF_R13, FILE_DWG.

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, VECTORMISCViewportMode property, VECTORMISCFont property, DXFViewportWidth property, DXFViewportHeight property, DXFFont property, DXFAutoCADColorScheme property, PLTViewportWidth property, PLTViewportHeight property, PLTViewportMode property, PLTPenWidth property, PLTPenColor property

Topics:

Imaging Common Dialogs: Properties, Methods, and Events