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
 Add a dotted contrast border to a bitmap?

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
PeterPanino Posted - Jun 19 2017 : 05:46:42
Is there a ready-made routine to add a dotted (or dashed) contrast border to a Bitmap?

A dotted contrast border is a dotted border line which contrasts with a surrounding background of any color.

For example: When the bitmap is black or partly black then it does not contrast with a surrounding black background and therefore could be invisible for the user. The same is the case for any other color. A dotted contrast border at least makes the bitmap dimensions visible in any case.

Of course, the contrast border should also contrast with any of the bitmap's colors.

Unfortunately, TIEBitmap does not have such a method (TIEBitmap.AddContrastborder). Any idea?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 19 2017 : 18:03:33
Hi Peter

Couldn't you just draw a line to the canvas with the pen style set to dotted and the mode set to something like pmNot?

http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/Graphics_TPenMode.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com