SaveResolutionWidth property (ILEADRasterIO)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

float SaveResolutionWidth(short nIndex)

Overview

Refer to Implementing JBIG Features

Remarks

Specifies the width component of the resolution to write.

The array range is SaveResolutionWidth(0) to SaveResolutionWidth(SaveResolutionCount-1).

Currently, only the JBIG format uses these properties.

Note that for a JBIG save, only the first resolution is used. Each subsequent dimension up to SaveResolutionCount will actually be calculated as 1/2 the previous dimension. You can set this to 0 to use the default or, you can set this to 0 and set a value for the height component, and the width component will be automatically calculated for you base on the aspect ratio of the image being saved.

Ex.

SaveResolutionCount = 3
SaveResolutionWidth(0) = 800
SaveResolutionWidth(0) = 400

If you then save an image that is 1600 x 800, the resolutions that are stored in the file would be:

800 x 400
400 x 200
200 x 100

By default, the control will save images using the default of the file format. For JBIG only one resolution which has the size of the bitmap being saved will be saved.

The unit of measure is determined by the ScaleMode property.

See Also

Elements:

Save method, SaveResolutionCount property, SaveResolutionHeight property, LoadResolutionCount property, LoadResolutionHeight property, LoadResolutionWidth property, PCDRes property, SetLoadResolution method, GetLoadResolution method, SaveTileHeight property, SaveTileWidth property