Hi ALL
How can i display a picture from file with rounded cornders?
I want to display img1 (see on attachments) like img2 with rounded corners, i cant find the way, any help is appreciated, thanks!
I get rounded image but its empty..
img2.Picture.LoadFromFile('..');
img2.Picture.Bitmap.SetSize(img2.Width, img2.Height);
img2.Transparent:= True;
img2.Picture.Bitmap.TransparentColor:=$FFFEFD;
img2.Canvas.Brush.Color:=$FFFEFD;
img2.Canvas.FillRect(0, 0, img2.Width, img2.Height);
//img2.Canvas.Brush.Color:=clBlack;
//img2.Canvas.Pen.Color:=clBlack;
img2.Canvas.RoundRect(0, 0, img2.Width, img2.Height, 50, 50);