ImageEn, unit imageenview

TImageEnView.Clear

TImageEnView.Clear


Declaration

procedure Clear();


Description

Fills the current image with the Background color.


Comparison of Methods

Method Description
Clear Fills the current image with the background color and removes the alpha channel
Blank Calls Clear and resets the image size to 1 x 1
LayersClear Removes all of the layers
ClearAll Resets the image (calling Blank) and removes all layers (calling LayersClear)


Example

// Clear the image
ImageEn1.Background := clWhite;
ImageEn1.Clear();

// Clear the top-most layer
ImageEnView1.LayersCurrent := ImageEnView1.LayersCount - 1;
ImageEnView1.Clear;


See Also

 Blank
 ClearAll