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
 Merged Masked Layer does not store transparency
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

kturkay

44 Posts

Posted - Mar 10 2021 :  14:33:00  Show Profile  Reply
hi,

now trying to understand images as Mask for transparency.

I set background style as iebsChessboard to see transparency.

loading a png image and psd file as mask.
imageen displays correctly
but when I save with/without mergeall(true)
saved png file does not preserve transparency.
what should I do ?


note: I used ImageEnView1.IO.Params.PSD_LoadLayers := False;
to not to lose the main image layer before loading psd file as mask

attach/kturkay/2021310144151_imgs.zip
144.68 KB

xequte

38191 Posts

Posted - Mar 10 2021 :  20:31:43  Show Profile  Reply
I'm not seeing that. Can you give me the steps to reproduce. Also, always set:

IEGlobalSettings().AutoSetBitDepth := True;

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

kturkay

44 Posts

Posted - Mar 11 2021 :  00:52:04  Show Profile  Reply
I detected the problem, therefore solved. maybe this may help someone.

problem occurs because of I compiled as 64bit executable. and I forgot to put ielib64.dll in same directory. (without ielib64.dll, problem still exists.)
now all worked.
thanks sir
Go to Top of Page

xequte

38191 Posts

Posted - Mar 11 2021 :  19:38:58  Show Profile  Reply
Yes, without ielib64.dll it falls back to WIC for PNG support. But transparency should still be supported. What version of ImageEn are you using?

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

kturkay

44 Posts

Posted - Mar 11 2021 :  21:19:06  Show Profile  Reply
it seems imageen 9.2.6
Go to Top of Page

xequte

38191 Posts

Posted - Mar 12 2021 :  17:29:13  Show Profile  Reply
OK, PNG Alpha support via WIC was not added until 9.3.0.

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