ImageEn, unit ievect

TImageEnVect.CreateImageFromSelectedArea

TImageEnVect.CreateImageFromSelectedArea


Declaration


function CreateImageFromSelectedArea(feather: integer=0; smooth: boolean=false): integer;


Description


CreateImageFromSelectedArea creates an image object (iekBitmap) from the selected area of background image.

The feather value (0 - 255) is how much feathering you want the object to have. The feather function creates a gradient around the object but in the alpha channel so it gets a smoother look by smoothing the edges.
The smooth value tells if an anti-jagging filter should be applied to the alpha channel. If you use the feathering function, you should set smooth to true.


Example


hobj := ImageEnVect1.CreateImageFromSelectedArea;