> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/image-writetofile.md) 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**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/savetofile.md), [**LoadFromFile**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/loadfromfile.md), [**SaveToMemory**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/savetomemory.md), and [**LoadFromMemory**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/loadfrommemory.md).

## Properties

| **Name** | **Type** | **Description** |
| - | - | - |
| **Quality** | [**Integer**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md) | Stores the value of the JPEG quality in percent. The default value for this property is 50. |

## Methods

| **Name** | **Description** |
| - | - |
| [**CopyFrom**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/copyfrom.md) | Initializes properties of the current object with values of similar properties of another object. |
| [**LoadFromFile**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/loadfromfile.md) | Restores the object's contents from a file on disk. |
| [**LoadFromMemory**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/loadfrommemory.md) | Restores the object's contents from the global memory. |
| [**SaveToFile**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/savetofile.md) | Saves the object's contents into a file on disk. |
| [**SaveToMemory**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/savetomemory.md) | Saves the object's contents into the global memory. |

## Output parameter

This object is the output parameter of the [**CreateJpegExtendedParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine-createxxx.md) method of the [**Engine**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine.md) object.

## Input parameter

This object is the input parameter of the [**WriteToFile**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/image-writetofile.md) method of the [**Image**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/image.md) object.

## See also

[Working with Properties](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md)
