This method splits a 32 bit RGBA image into a 24 bit RGB image and a 8 bit alpha channel.

[C++Builder]   [ bool = ]imagekitcontrolname->Effect->SplitRGBAImage()
[Delphi]   [ Boolean = ]imagekitcontrolname.Effect.SplitRGBAImage()

Parameters

None

Return Value

Returns True if successful, otherwise returns False.

Explanation

The SplitRGBAImage method splits a 32 bit RGBA image into a 24 bit RGB image and a 8 bit alpha channel.. To execute the SplitRGBAImage method, set the image handle of the 32-bit RGBA image in the ImageHandle property or the Layer(LayerNo).ImageHandle property.

If successful the resulting RGB 24-bit image data is set in the LayerNo property (the ImageHandle property or the Layer(LayerNo).ImageHandle property) and the alpha channel 8-bit grayscale image is set in the MaskImageHandle property. If unsuccessful, 0 is returned.

When the Caption, Message, and ButtonName properties are blank, the progress dialog box will not be displayed. When the progress dialog box is displayed, the percentage that the processing has completed will be shown in the dialog box.

The ImageKit10 VCL is a product created by Newtone Corporation