Sets the resolutions to save when saving multi-resolution files.
public void SetResolutions(
Leadtools.LeadSize[] resolutions
)
Public Sub SetResolutions( _
ByVal resolutions() As Leadtools.LeadSize _
)
public void SetResolutions(
Leadtools.LeadSize[] resolutions
)
- (BOOL)setResolutions:(NSArray<NSValue *> *)resolutions //CGSize
public void setResolutions(LeadSize[] resolutions)
function Leadtools.Codecs.CodecsSaveOptions.SetResolutions(
resolutions
)
public:
void SetResolutions(
Leadtools.array<LeadSize>^ resolutions
)
resolutions
An array of LeadSize structures indicating the resolutions to save.
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
For an example, refer to CodecsOptions.
Products |
Support |
Feedback: SetResolutions Method - Leadtools.Codecs |
Introduction |
Help Version 19.0.2017.6.16
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.