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
 White border around text layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yeohray2

Malaysia
100 Posts

Posted - Nov 17 2021 :  11:45:52  Show Profile  Reply
My text layer has a white border regardless of the layer's BorderWidth and BorderColor values.



If I turn off AntiAlias for the text layer, the white border disappears.



Am attaching a sample project to reproduce the error. Is there some setting I can use to remove the white border?

Thanks in advance.

attach/yeohray2/20211117114142_source.zip
5567.25 KB

xequte

38182 Posts

Posted - Nov 17 2021 :  15:00:59  Show Profile  Reply
Hi

Yes, this is a limitation of the way alpha is handled in layers. Unfortunately there is not an easy solution to this.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yeohray2

Malaysia
100 Posts

Posted - Nov 17 2021 :  21:57:11  Show Profile  Reply
Noted, thanks.
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Nov 18 2021 :  04:55:55  Show Profile  Reply
Hi,
I had the same problem.
My tip, to use inner shine with text color.
That reduces the effect quite well.
Example:
ImageEnView1.CurrentLayer.InnerGlow.Enabled: = True;
ImageEnView1.CurrentLayer.InnerGlow.Radius: = 1;
ImageEnView1.CurrentLayer.InnerGlow.ShadowColor: = TColor2TRGB (your Textcolor);
ImageEnView1.Update ();

Klaus
DigiFoto
www.klausdoege.de
Go to Top of Page

xequte

38182 Posts

Posted - Nov 18 2021 :  23:26:59  Show Profile  Reply
Hi Klaus

That actually works very well. I'll look at adding this kind of smoothing to the next release.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yeohray2

Malaysia
100 Posts

Posted - Nov 19 2021 :  02:12:02  Show Profile  Reply
Hi Klaus,

I think your solution works to remove the lines around the text? My issue is there is a white border around the text layer that shouldn't be there. I can either turn off anti-aliasing, or don't use a fill color, to remove that border.

Ray
Go to Top of Page

xequte

38182 Posts

Posted - Nov 19 2021 :  23:07:20  Show Profile  Reply
Sorry Ray, I misunderstood. I have fixed that now. You can email me for an update.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

38182 Posts

Posted - Nov 22 2021 :  23:59:41  Show Profile  Reply
Hi Klaus

In the next release you achieve the same with loEdgeSmoothing of ImageEnView1.LayerOptions (it will be enabled by default).

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: