Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

LFileSettings::SetViewport2D

Show in webframe

#include "ltwrappr.h"

static L_INT LFileSettings::SetViewport2D(nWidth, nHeight)

L_INT nWidth;

/* new viewport width in pixels */

L_INT nHeight;

/* new viewport height in pixels */

Sets the current viewport width and height used when loading 3D file formats.

Parameter

Description

nWidth

New viewport width.

nHeight

New viewport height.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

A 3D file format usually doesn't have a physical size. The user can specify a viewport (physical size up to which the drawing can be rendered) with LFileSettings::SetViewport2D. How the drawing is to be rendered inside this viewport depends on the current viewport mode set with LFileSettings::SetViewMode2D. Default viewport size is 640x480 pixels.

When working with DXF files, you can use the Vector features, available in selected products, or you can use the Main C++ Class Library. If you use the Main C++ Class Library for loading, using the standard loading functions, you can modify the view port and view mode using the following functions:

LFileSettings::GetViewMode2D

LFileSettings::SetViewMode2D

LFileSettings::GetViewport2D

LFileSettings::SetViewport2D

This function may be used with the following Vector file formats: DXF, DWG, WMF, EMF, PCT, CGM, DRW, PLT, TIF (with a DXF saved internally) and Intergraph Vector. For more information on these file formats and their availability, refer to LEADTOOLS Vector Formats.

Required DLLs and Libraries

LTFIL
File format DLLs

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

LFileSettings::GetViewMode2D, LFileSettings::GetViewport2D, LFileSettings::SetViewMode2D, LFileSettings::GetLoadResolution, LFileSettings::GetPCDResolution, LFileSettings::GetWMFResolution, LFileSettings::SetLoadResolution LFileSettings::SetPCDResolution, LFileSettings::SetWMFResolution, LFileSettings::GetWMFResolution, LFileSettings::SetWMFResolution

Topics:

Raster Image Functions: Rasterizing Files

 

Vector Images

Example

For an example, refer to LFileSettings::SetViewMode2D.

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