Vcl.Imaging.jpeg.TJPEGImage.Grayscale
Delphi
property Grayscale: Boolean read GetGrayscale write SetGrayscale;
C++
__property bool Grayscale = {read=GetGrayscale, write=SetGrayscale, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.Imaging.jpeg.pas Vcl.Imaging.jpeg.hpp |
Vcl.Imaging.jpeg | TJPEGImage |
Description
Determines whether the image output of a JPEG image is black and white, or color.
Use Grayscale for reading in and writing out, that is, for decompressing and compressing, a jpeg image. This property affects how the image is displayed.
GrayScale is used for speed in output optimization. When Grayscale is set to true, the color is separated from luminosity. Color takes the most time to decompress, so for previewing the image, Grayscale can be set to true for speed. The output then contains 255 shades of gray.