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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Adding a border to a thumbnail...

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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();