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
 Add a dotted contrast border to a bitmap?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

933 Posts

Posted - Jun 19 2017 :  05:46:42  Show Profile  Reply
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?

xequte

38616 Posts

Posted - Jun 19 2017 :  18:03:33  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: