ImageEn, unit imageenproc

TImageEnProc.RoundImage

TImageEnProc.RoundImage


Declaration

procedure RoundImage(RoundWidth, RoundHeight: Integer);


Description

Round the corners of an image. RoundWidth and RoundHeight specify the rounding size.
The cropped areas will become transparent.


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Example

ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );




// Add round corners to the image
ImageEnView1.Proc.RoundImage( ImageEnView1.IEBitmap.Width div 10,
                              ImageEnView1.IEBitmap.Height div 10 );