Home
|
GR32_Filters
|
|
procedure ColorToGrayscale(Dst, Src: TCustomBitmap32; PreserveAlpha: Boolean = False);
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.
AlphaToGrayscale, TCustomBitmap32
Copyright ©2000-2010 Alex Denisov and the Graphics32 Team - Graphics32 v1.9.0 (r1336) - Build on 9-March-2010