JCL Help:AlphaToGrayscale

From Project JEDI Wiki
Jump to navigationJump to search


Summary

The summary for this help topic does not exist, edit this page

Pascal

 procedure AlphaToGrayscale(Dst: TJclBitmap32; Src: TJclBitmap32);


Description

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.


See Also

IntensityToAlpha TJclBitmap32


About

Unit

JclGraphics


Donator

Alex Denissov


Platforms

VCL


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page