←Select platform

GetResolutions Method

Summary

Gets the resolutions to save when saving multi-resolution files.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public LeadSize[] GetResolutions() 
Public Function GetResolutions() As Leadtools.LeadSize() 
public [Leadtools.LeadSize[]](../l/leadsize.md) GetResolutions() 
@property (nonatomic, strong, readonly, nullable) NSArray<NSValue *> *resolutions //CGSize 
public LeadSize[] getResolutions() 
 function Leadtools.Codecs.CodecsSaveOptions.GetResolutions() 
public: 
Leadtools.array<LeadSize>^ GetResolutions();  

Return Value

An array of LeadSize structures indicating the resolutions to save.

Remarks

Currently, this only works with the JBIG format.

For JBIG, the maximum number of resolutions that can be saved is 29.

For a JBIG file, the values of different resolutions are implied because the dimensions of each resolution layer are half the dimensions of the one directly above it.

GetResolutions and SetResolutions are used to determine the highest resolution layer which will be saved in a file. You can fill the array with an actual width and height, or you can fill either the width or height with a valid value, and specify 0 for the other dimension to allow LEADTOOLS to calculate that dimension based on the image's aspect ratio during the next save operation. Note that for JBIG, all the values set in the array are stored, but only the first item is used during an actual file save process.

Ex.

uCount = 3 Resolution[0].Width = 800 Resolution[0].Height = 0

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

800 x 600 400 x 300 200 x 150

Example

For an example, refer to CodecsOptions.

Requirements

Target Platforms

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

Leadtools.Codecs Assembly