Vcl.Imaging.jpeg.TJPEGDefaults
Delphi
TJPEGDefaults = record
CompressionQuality: TJPEGQualityRange;
Grayscale: Boolean;
Performance: TJPEGPerformance;
PixelFormat: TJPEGPixelFormat;
ProgressiveDisplay: Boolean;
ProgressiveEncoding: Boolean;
Scale: TJPEGScale;
Smoothing: Boolean;
end;
C++
struct DECLSPEC_DRECORD TJPEGDefaults
{
public:
TJPEGQualityRange CompressionQuality;
bool Grayscale;
TJPEGPerformance Performance;
TJPEGPixelFormat PixelFormat;
bool ProgressiveDisplay;
bool ProgressiveEncoding;
TJPEGScale Scale;
bool Smoothing;
};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
record struct |
public | Vcl.Imaging.jpeg.pas Vcl.Imaging.jpeg.hpp |
Vcl.Imaging.jpeg | Vcl.Imaging.jpeg |
Description
TJPEGDefaults represents a set of default options used when manipulating jpeg images.
Use variables of type TJPEGDefaults to pass a default set of options used when manipulating jpeg images. Applications usually do not need to create variables of TJPEGDefaults type. The jpeg unit defines a global variable called JPEGDefaults, which encapsulates the default options. The following table lists all the fields contained within TJPEGDefaults 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. |