JpegExtendedParams Object (IJpegExtendedParams Interface)

This object provides functionality for tuning the parameters of saving an image to JPEG format (color and gray IFF_Jpg format with ICT_Jpeg compression, color and gray IFF_J2k format with ICT_J2k compression, color and gray IFF_Tif format with ICT_Jpeg compression) using the IImage::WriteToFile method. A pointer to this object is passed into the IImage::WriteToFile method as an input parameter, and thus affects the size and quality of the resulting image. All properties of a newly created object of this type are set to reasonable defaults. See the description of particular property for its default value.

The JpegExtendedParams object is a persistent object. This means that the object current state, indicated by the values of its properties, can be written to persistent storage: an area in the global memory or a disk file. Later, the object can be re-created by reading the object's state from persistent storage. The following methods provide persistence of the object: SaveToFile, LoadFromFile, SaveToMemory, and LoadFromMemory.


Name Type Description
Quality Integer

Stores the value of the JPEG quality in percent.

The default value for this property is 50.


Name Description
CopyFrom Initializes properties of the current object with values of similar properties of another object.
LoadFromFile Restores the object's contents from a file on disk.
LoadFromMemory Restores the object's contents from the global memory.
SaveToFile Saves the object's contents into a file on disk.
SaveToMemory Saves the object's contents into the global memory.

Output parameter

This object is the output parameter of the CreateJpegExtendedParams method of the Engine object.

Input parameter

This object is the input parameter of the WriteToFile method of the Image object.

See also

Working with Properties

15.08.2023 13:19:30

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.