Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Common Dialog C DLL Help

OPENDLGOPTIONS_DXF

Show in webframe

typedef struct _OPENDLGOPTIONS_DXF
{
   L_UINT uStructSize;
   L_INT nViewportWidth;
   L_INT nViewportHeight;
   L_UINT uViewportMode;
   L_TCHAR szFont [LF_FACESIZE];
   L_UINT32 uAutoCADColorScheme;
#if defined(LEADTOOLS_v18_OR_LATER)
L_INT
         nBitsPerPixel;
L_BOOL
        bForceBackgroundColor;
L_COLORREF
    BackgroundColor;
#endif // #if defined(LEADTOOLS_v18_OR_LATER)
} OPENDLGOPTIONS_DXF, * LPOPENDLGOPTIONS_DXF ;

The OPENDLGOPTIONS_DXF structure provides load option information for DXF and DWG file formats. This information will be used by the L_2DSetViewport, L_2DSetViewMode, and L_SetAutoCADFilesColorScheme functions.

Member

Description

uStructSize

Size of this structure, in bytes. Use the sizeof operator to calculate this value.

nViewportWidth

New viewport width.

nViewportHeight

New viewport height.

uViewportMode

New viewport mode. Possible values are:

 

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

 

szFont

A string that specifies the typeface name of the font to use in vector font mapping. The length of this string must not exceed 32 characters.

uAutoCADColorScheme

Flag that indicates the background color to use when loading AutoCAD files. Possible values are:

 

Value

Meaning

 

AUTOCADFILES_COLORSCHEME_BLACKONWHITE

[0] Set the background color as white and the default pen as black.

 

AUTOCADFILES_COLORSCHEME_WHITEONBLACK

[1] Set the background color as black and the default pen as white.

nBitsPerPixel

Number of bits per pixel.

bForceBackgroundColor

TRUE if BackgroundColor field is used as vector background.

BackgroundColor

Vector background color

Comments

The L_DlgOpen function displays the Open dialog and gets options for the L_LoadFile function. After the user presses the Open button on the dialog, one or more OPENDLGFILEDATA structures will be updated based on the file(s) selected in the Open dialog. The OPENDLGFILEDATA.FileOptions member is an OPENDLGOPTIONS structure. This structure is updated based on the file type(s) selected in the Open dialog. If the OPENDLGOPTIONS.nType member is FILE_DXF, FILE_DXF_R13, or FILE_DWG the OPENDLGOPTIONS.pOptions member will point to an OPENDLGOPTIONS_DXF structure, which is, in turn, updated with the load options.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.