procedure AlphaToGrayscale(Dst, Src: TCustomBitmap32);
This function transforms an alpha channel from Src bitmap into grayscale (R=A, G=A, B=A) color in Dst bitmap. If necessary, Dst bitmap is resized to fit Src dimesions.
It writes only RGB components into Dst. The alpha channel (A) remains intact, provided that dimensions of Dst and Src match before AlphaToGrayScale call.
This function is useful when it is necessary to visualize the alpha channel, or when you want to store it as standard bitmap into a file.
TCustomBitmap32, IntensityToAlpha
Copyright ©2000-2024 Alex Denisov and the Graphics32 Team - Graphics32 2.0 - Help file built on 18 Feb 2024