ImageEn, unit imageenview

TImageEnView.LayersCopyToAlpha

TImageEnView.LayersCopyToAlpha


Declaration

procedure LayersCopyToAlpha(DestLayer: Integer);


Description

Copies the current layer to the alpha channel of the specified destination layer.
This is useful to handle alpha channel of other bitmaps, applying the same image processing algorithms.

See also: LayersCreateFromAlpha


Example

ImageEnView1.IO.LoadFromFile('C:\image.jpg');
ImageEnView1.LayersCreateFromAlpha;
ImageEnView1.Proc.BumpMapping( 300, 300, 150, 150, 0, CreateRgb(255, 255, 255));
ImageEnView1.LayersCopyToAlpha(0);
ImageEnView1.LayersRemove(1);