L_SetLoadResolution

#include "l_bitmap.h"

L_LTFIL_API L_INT L_SetLoadResolution(nFormat, nWidth, nHeight)

L_INT nFormat;

file format

L_UINT nWidth;

width of the bitmap to load

L_UINT nHeight;

height of the bitmap to load

Specifies the physical resolution (width and height) of the file to load.

Parameter Description
nFormat File format. The following are possible values:
  Value Meaning
  FILE_PCD [57] Kodak PhotoCD
  FILE_FPX [80] Kodak FlashPix
  FILE_FPX_SINGLE_COLOR [81] Kodak FlashPix
  FILE_FPX_JPEG [82] Kodak FlashPix
  FILE_FPX_JPEG_QFACTOR [83] Kodak FlashPix
  FILE_JBIG [115] JBIG
  FILE_JBIG2 [183] JBIG 2
  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
nWidth Width of the bitmap to load. Pass 0 to get the default.
nHeight Height of the bitmap to load. Pass 0 to get the default.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

For PhotoCD files, you can do either of the following:

For FlashPix files, you can do any of the following:

For JBIG files, you can do any of the following:

For ECW files, you can do any of the following:

NOTE: You cannot set width/height larger than max values returned by L_ReadLoadResolutions function

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, Linux.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C API Help