ImageEn, unit iexBitmaps

TIEBitmap.CropAlpha

TIEBitmap.CropAlpha


Declaration

function CropAlpha(MaxAlpha: Integer = 0): Boolean;


Description

Removes any transparent area on the edge of the image, resizing the resulting image to the visible rectangle.
MaxAlpha is the maximum alpha value that will be cropped, i.e. if 0 only fully transparent rows/columns are cropped, whereas 10 would crop any rows/columns with alpha of less than 10 will be cropped.
Result is true if the image was cropped (i.e. alpha was removed).


Example

IEBitmap.CropAlpha();


See Also

Crop
CropTransparentBorder