Vcl.Imaging.jpeg.JPEGDefaults

From RAD Studio API Documentation
Jump to: navigation, search


Delphi

JPEGDefaults: TJPEGDefaults = (
CompressionQuality: 90;
Grayscale: False;
Performance: jpBestQuality;
PixelFormat: jf24Bit;         // initialized to match video mode
ProgressiveDisplay: False;
ProgressiveEncoding: False;
Scale: jsFullSize;
Smoothing: True;
);

C++

extern DELPHI_PACKAGE TJPEGDefaults JPEGDefaults;

Properties

Type Visibility Source Unit Parent
variable public
Vcl.Imaging.jpeg.pas
Vcl.Imaging.jpeg.hpp
Vcl.Imaging.jpeg Vcl.Imaging.jpeg

Description

TJPEGDefaults defines a set of default options used when manipulating jpeg images.

JPEGDefaults is a global variable used to control certain options used to manipulate jpeg images. You can change the value of the JPEGDefaults fields at run time in order to control how jpeg images are manipulated. The following table lists all the fields contained within JPEGDefaults and their description.



Field Description

CompressionQuality

Indicates the trade-off ratio between the image quality and the file size.

Grayscale

Determines whether the image output of a jpeg image is black and white or color.

Performance

Controls the trade-off between color quality and speed of decompression.

PixelFormat

The default pixel format used when displaying a jpeg image.

ProgressiveDisplay

Controls whether a jpeg image is progressively displayed while decompressing.

ProgressiveEncoding

Controls whether a jpeg image can be progressively displayed when it is decompressed.

Scale

Determines the size of a jpeg image when it is displayed.

Smoothing

Determines whether a jpeg image displays in blocks or with blurred edges.



See Also