Home | GR32_Filters |
ColorToGrayScale
procedure ColorToGrayscale(Dst, Src: TBitmap32; PreserveAlpha: Boolean = False);
Description
Calculates color intensity from Src and writes it as a grayscale image into Dst. The alpha channel in Dst will be set to $FF by default. However, you can override this behaviour by setting PreserveAlpha to True.
This function supports in-place operation, that is Dst may be the same as Src.
See Also
Copyright ©2000-2007 Alex Denisov and Contributors - Graphics32 v1.8.3 - Build on 4-March-2007