Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
bmesser
Posted - Jan 13 2012 : 08:29:51 Hi
This is a quite simple problem and I'm sure there'll be a demo that shows you how but if there is I cant find it...
I am creating thumbnails for a web site (adapting the "ResizeConvert" demo) and would like to add a simple black 1 pixel border around each thumbnail before I save it. What would the best way to do this?
The "Picture Frame" demo doesn't help because the thumbnail will vary in size at times and the mask is fixed.
Bruce.
Bruce.
1 L A T E S T R E P L I E S (Newest First)
fab
Posted - Jan 14 2012 : 11:40:14 Hi, having an image into TImageEnView you can use bitmap canvas to draw the border:
with ImageEnView1.IEBitmap, Canvas do
begin
Pen.Color := clBlack;
Pen.Style := psSolid;
Brush.Style := bsClear;
Rectangle(0, 0, Width, Height);
end;
ImageEnView1.Update();