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
 Layers AntiAlias differs between 8.0.1 and 8.1.0
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

DRIGUS

21 Posts

Posted - Sep 20 2018 :  06:50:24  Show Profile  Reply
Hi *.*,

we just updated from ImageEn 8.0.1 to 8.1.0 and got a different behaviour regarding the display of layers, take a look at the attached images.

Our program uses a TImageEnView with different layers in order to display a camera preview (DirectShow, SampleGrabber) with different buttons (layers with alpha channel PNG files).

As you can see, in 8.0.1 the display of the buttons is somehow antialiasing, but not in 8.1.0. I tried to modify AlphaEdgeFeathering, AntiAlias and LayersFastDrawing without success.


Any idea what has changed and how we get the smooth look back?


Thanks in advance.



xequte

39230 Posts

Posted - Sep 20 2018 :  19:41:24  Show Profile  Reply
Hi

Is soft shadow enabled for the layer? Does turning that off resolve it?

If so, please let us know your soft shadow settings.

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

DRIGUS

21 Posts

Posted - Sep 25 2018 :  04:51:05  Show Profile  Reply
Thanks for your reply.

Yes, soft shadows are enabled. And turning it off resolve the problem. But we don't want to turn it off because then the buttons are not clearly recognizable as buttons.

So how can I achieve a smooth display of the buttons with soft shadows enabled like in 8.0.1?

Greetings
Go to Top of Page

xequte

39230 Posts

Posted - Sep 25 2018 :  20:49:04  Show Profile  Reply
Hi

In 8.1.1 (ready next week) we will reduce the default alpha threshold when showing the soft shadow.

To remove it completely (same as 8.0.1) set:

IEGlobalSettings().LayerShadowAlphaThreshold := 0;


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

DRIGUS

21 Posts

Posted - Sep 26 2018 :  06:51:12  Show Profile  Reply
Thanks again.

The LayerShadowAlphaThreshold is missing in TIEImageEnGlobalSettings in 8.1.0. But I found the constant SoftShadow_BG_Alpha_Threshold in unit iexLayers. Setting this to 0 works.


Greetings
Go to Top of Page

xequte

39230 Posts

Posted - Sep 27 2018 :  01:48:53  Show Profile  Reply
Yes, that is correct. In 8.1.1 you won't need to modify the source.

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