Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.11.1
LEADTOOLS Raster Imaging C DLL Help

L_2DGetViewport

Show in webframe

#include "l_bitmap.h"

L_LTFIL_API L_INT L_2DGetViewport(pnWidth, pnHeight)

L_INT* pnWidth;

/* pointer to a variable to be updated */

L_INT* pnHeight;

/* pointer to a variable to be updated */

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

Parameter

Description

pnWidth

Pointer to a variable to be updated with the current viewport width in pixels.

pnHeight

Pointer to a variable to be updated with the current viewport height in pixels.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

To set the viewport width and height in pixels, use L_2DSetViewport.

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

L_2DGetViewMode

L_2DSetViewMode

L_2DGetViewport

L_2DSetViewport

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

LTKRN
LTFIL

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:

L_SetLoadResolution, L_SetPCDResolution, L_SetWMFResolution
For Vector files: L_2DGetViewMode, L_2DSetViewport

 

L_2DSetViewMode

Topics:

Raster Image Functions: Rasterizing Files

Example

For an example, refer to L_2DSetViewMode.

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