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
 Save layers in PNG with transparent background
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndNit

Brazil
81 Posts

Posted - Apr 26 2023 :  09:25:22  Show Profile  Reply
Hello,
I haven't started the studies to meet this need yet, but aware of the excellent support from you here in the Forum, I already anticipate my questioning in order to have your opinion.
I have the need to create two or more layers in an image, these layers will receive annotations (text box) and marks (select text) using ImageEn resources. So far so good, I know that there are resources for that and I can even save everything in a “.ien” extension, but this extension only serves to reopen the layers using ImageEn itself, and my need is to transport this to another system (which not developed by us) and which does not have ImageEn.

I thought, given this condition, of creating a layer for each new markup in the original document and saving it in PNG with a transparent background, when it was necessary to open these documents and view the marks in it, load the PNGs on top of the original image, which needs to be preserved and cannot be duplicated due to disk space concerns.
In case my need was clear, do you believe it is possible to execute this routine with ImageEn and with your experience, do you suggest anything in view of this scenario?
thank you for your attention

At.
Carlos Andre Pavon

xequte

38611 Posts

Posted - Apr 26 2023 :  23:39:19  Show Profile  Reply
Hi Carlos

At this time ImageEn supports the following layer formats when saving:
- PhotoShop (though the images will be saved as image layers)
- SVG (with some limitations)
- Adobe PDF (with some limitations)

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

AndNit

Brazil
81 Posts

Posted - May 10 2023 :  06:04:40  Show Profile  Reply
Hey,

I had the following solution to the problem:

1 - I created a transparent background file, which whenever the client needs to annotate the images I load it as layer 1, always the size of layer 0.

2 - after changes in layer 1, text markings (miBrushTool), additions of new layers (ielkText), etc. I leave my layer 0 invisible, I merge all the other layers (image.LayersMerge (selLayers);) into one, if there are more than one.

3 - Save this Image as a PNG.

4 - when I need to view the annotations I load this PNG over the original image.

that way I can take up less disk space (my images are very large) and have interoperability between systems that don't use ImageEn.

I hope to help colleagues who need this solution.
Go to Top of Page

xequte

38611 Posts

Posted - May 10 2023 :  14:20:30  Show Profile  Reply
Nice one

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