ImageEn, unit iexLayers

TIEImageLayer.CropAlpha

TIEImageLayer.CropAlpha


Declaration

function CropAlpha(): Boolean;


Description

Removes any transparent area on the edge of the layer bitmap, repositioning and resizing the resulting layer to the visible rectangle.
Result is true if the bitmap was cropped (i.e. alpha was removed).


Example

if ImageEnView1.CurrentLayer is TIEImageLayer then
  TIEImageLayer( ImageEnView1.CurrentLayer ).CropAlpha();
ImageEnView1.Update();


See Also

 CropAlpha
 CropTransparentBorder