ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Adding a border to a thumbnail...
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bmesser

United Kingdom
233 Posts

Posted - Jan 13 2012 :  08:29:51  Show Profile  Reply
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.

fab

1310 Posts

Posted - Jan 14 2012 :  11:40:14  Show Profile  Reply
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();
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: