SaveResolutionHeight property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

Cardinal SaveResolutionHeight[Cardinal uIndex]

Delphi Syntax

SaveResolutionHeight[Cardinal uIndex]: Cardinal

Overview

Refer to Implementing JBIG Features

Remarks

Specifies the height component of the resolution to write.

The range of uIndex is 0 to 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.

See Also

Elements:

Save method, SaveResolutionCount property, SaveResolutionWidth property, LoadResolutionCount property, LoadResolutionHeight property, LoadResolutionWidth property, PCDRes property, SetLoadResolution method, GetLoadResolution method