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
 Alpha channel filling and layerscaching
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

nwscomps

185 Posts

Posted - Dec 01 2021 :  08:32:43  Show Profile  Reply
Hello I found a possible bug here. I have a form with two buttons, with one button I fill the alpha channel of the current layer with 0 (completely transparent), with the other button I fill it with 255 (completely opaque).
When TImageenview.layerscaching is enabled if I press the first button and then the second I loose all the rgb information. When it is disabled and I do the same thing the rgb information is preserved.
I attach a small demo to show this.

attach/nwscomps/202112183132_Test.zip
82.69 KB

Francesco Savastano
Add-ons for the ImageEn Library
web: http://www.fssoft.it/delphicomps.html

xequte

38613 Posts

Posted - Dec 01 2021 :  16:09:28  Show Profile  Reply
Hi Francesco

Please use:

ImageEnLayerMView1.ReadLayers();

or

ImageEnLayerMView1.AttachedImageEnView := ImageEnView1;

Not both.


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

nwscomps

185 Posts

Posted - Dec 02 2021 :  02:58:57  Show Profile  Reply
But if I use attachedimageenview only the layers are not refreshed if I do a change by code e.g. fill the alpha channel. How can i refresh the layers in this case if not calling ImageEnLayerMView1.ReadLayers();
And why the problem happens when TImageenview.layerscaching is enabled and not when it is disabled?

Francesco Savastano
Add-ons for the ImageEn Library
web: http://www.fssoft.it/delphicomps.html
Go to Top of Page

xequte

38613 Posts

Posted - Dec 13 2021 :  01:31:56  Show Profile  Reply
Hi Francesco

You can email me for a fix for this.

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