L_GetLoadResolution

#include "l_bitmap.h"

L_LTFIL_API L_INT L_GetLoadResolution(nFormat, pWidth, pHeight, pLoadOptions)

L_INT nFormat;

/* file format */

L_UINT* pWidth;

/* address of the width variable to be updated */

L_UINT* pHeight;

/* address of the height variable to be updated */

pLOADFILEOPTION pLoadOptions;

/* pointer to optional extended load options */

Gets the last values set by the L_SetLoadResolution function.

Parameter

Description

nFormat

File format. The following are possible values:

 

Value

Meaning

 

FILE_PCD

[57] Kodak PhotoCD

 

FILE_FPX

[80] Kodak FlashPix

 

FILE_JBIG

[115] JBIG

 

FILE_JP2

[163] JPEG 2000. This file format contains image data and extra information about the contents and organization of the file.

 

FILE_J2K

[164] JPEG 2000. This file format contains only a stream of image data.

 

FILE_CMW

[165] Wavelet CMP.

 

FILE_ECW

[277] Enhanced Compressed Wavelet

pWidth

Address of the variable to be updated with the last width value that was set.

pHeight

Address of the variable to be updated with the last height value that was set.

pLoadOptions

Pointer to optional extended load options. Pass NULL to use the default load options.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Required DLLs and Libraries

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

Windows 2000 / XP/Vista, Windows CE.

See Also

Functions:

L_ReadLoadResolutions, L_SetLoadResolution
For Vector files: L_2DGetViewMode, L_2DSetViewMode, L_2DGetViewPort, L_2DSetViewPort

Topics:

Raster Image Functions: Loading Files

 

Raster Image Functions: Getting and Setting File Information

 

Implementing PhotoCD and FlashPix Features

 

Implementing JBIG Features

Example

For an example, refer to L_ReadLoadResolutions.