RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TJPEGImage.Grayscale Property

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

Pascal
property Grayscale: Boolean;
C++
__property Boolean Grayscale;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!