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
 LayersSaveMergedTo file extension
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

WIZZs

Netherlands
23 Posts

Posted - Nov 22 2018 :  02:13:34  Show Profile  Reply
Hi,

In the ImageEnView1 different formats of images can be loaded. Suppose I load a BMP of JPG file into the background layer.

What will happen if I would save the file as:
ImageEnView1.LayersSaveMergedTo( 'd:\Merged.png' );
OR
ImageEnView1.LayersSaveMergedTo( 'd:\Merged.tif' );
Without using the SaveImageEnDialog

Will the file internally be an actual PNG-file of TIF-file, or will it still be in the original internal format (f.e. BMP) and is only the file-extention changed in the name of the file?

Thanks!

wesleybobato

Brazil
367 Posts

Posted - Nov 22 2018 :  10:18:12  Show Profile  Reply
Hi Wizzs

Example

If you load a JPEG and Save to PNG the JPEG information will not be preserved and the output file will be a PNG.

It does not do much feeling to store all JPEG metadata if you need a PNG.

Example A TIFF with many pages should be saved in PNG page by Page.

The input parameters are used to determine the output.

To preserve the input you need to create a output with the same format as the input.

You can use the IEV Format to keep several different entries and preserve all information.

Kind regards.
Go to Top of Page

xequte

39052 Posts

Posted - Nov 22 2018 :  20:24:58  Show Profile  Reply
As Wesley indicated, saving to a different image format does not change the in-memory bitmap in any way except for updating the filetype and filename properties.



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

WIZZs

Netherlands
23 Posts

Posted - Nov 22 2018 :  22:30:30  Show Profile  Reply
Great. I only load bmp, png, jpeg images and only save to PNG. Most important is that the PNG is saved as an actual PNG internally and I've tested it by opening the file in a few other imageeditors. It works perfectly. Thanks.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: