L_2DSetViewport

#include "l_bitmap.h"

L_LTFIL_API L_INT L_2DSetViewport(nWidth, nHeight)

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

Parameters

L_INT nWidth

New viewport width.

L_INT nHeight

New viewport height.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

A 3D file format usually does not have a physical size. The user can specify a viewport (physical size upto which the drawing can be rendered) with L_2DSetViewport . How the drawing is to be rendered inside this viewport depends on the current viewport mode set with L_2DSetViewMode. Default viewport size is 640x480 pixels.

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

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

Platforms

Win32, x64.

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help