SetLoadResolution method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int SetLoadResolution (int nFormat, Cardinal uWidth, Cardinal uHeight);

Delphi Syntax

SetLoadResolution (nFormat: Integer; uWidth, uHeight: Cardinal): Integer;

Overview

Refer to Implementing PhotoCD and FlashPix Features.

Remarks

Specifies the physical resolution (width and height) of the FlashPix, PhotoCD or JBIG file to load.

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

image\sqrblit.gif Specify one of the exact sets of dimensions in the file. You can determine the available dimensions using the ReadLoadResolutions method.

image\sqrblit.gif Specify 0 for both dimensions to load the default resolution.

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

image\sqrblit.gif Specify one of the exact sets of dimensions in the file. You can determine the available dimensions using the ReadLoadResolutions method.

image\sqrblit.gif Specify either the desired width or desired height to load, and use 0 to get the default for the other dimension. The default preserves the aspect ratio. The load procedure resizes the bitmap while loading it if necessary.

image\sqrblit.gif Specify 0 for both dimensions to load the default resolution.

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

image\sqrblit.gif Specify 0 for both dimensions to load the default resolution, which is the highest resolution layer, which corresponds to the image with its FULL DIMENSIONS.
e.g.: If the file contains the image at the following dimensions: 800X600, 400X 300 and 200X150, then in the default case the filter will load the image at 800X600.

image\sqrblit.gif Specify either the desired width or desired height to load, and use 0 to get the default for the other dimension. The load procedure will determine the closest resolution layer, which best fits the user's request.
e.g.: If the file contains the image at the following dimensions: 800X600, 400X 300 and 200X150 and the user requests an image with width equal to 780 for example, then LEADTOOLS will automatically know that the proper width is 800 and load the image at the (800X600) resolution.

image\sqrblit.gif Specify one of the exact sets of dimensions in the file. You can determine the available dimensions using the ReadLoadResolutions method.

See Also

Elements:

ReadLoadResolutions method, LoadResolutionCount property, LoadResolutionHeight property, LoadResolutionWidth property, PCDRes property, GetLoadResolution method, SaveResolutionCount property, SaveResolutionHeight property, SaveResolutionWidth property

Topics:

Raster Images: Loading Files