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
 Un LayersMergeAll After Save
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

khorsandreza

Iran
26 Posts

Posted - Sep 14 2017 :  17:02:07  Show Profile  Reply
Hi

I use the "LayersMergeAll" command to combine all layers and then save as ".jpg" file. Is it possible to blend the layers temporarily and return to normal after being saved?
Like saving layers in Photoshop

R.K

xequte

38180 Posts

Posted - Sep 14 2017 :  22:32:12  Show Profile  Reply
Hi

You can use LayersSaveMergedTo to merge and then save without it affecting the content:

https://www.imageen.com/help/TImageEnView.LayersSaveMergedTo.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

khorsandreza

Iran
26 Posts

Posted - Sep 15 2017 :  09:18:42  Show Profile  Reply
Hello
Thanks for your advice!
I use the 5.2 trial version. Is this the command "ImageEnView1.LayersSaveMergedTo();" Is this version supported?
I did not find such a command among the commands.
Go to Top of Page

xequte

38180 Posts

Posted - Sep 15 2017 :  16:22:26  Show Profile  Reply
Hi

I don't think it exists in that version. You should then use:

1. ImageEnView1.Proc.SaveUndo
2. ImageEnView1.LayersMergeAll
3. ImageEnView1.IO.SaveToFile
4. ImageEnView1.Proc.Undo


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

khorsandreza

Iran
26 Posts

Posted - Sep 15 2017 :  17:39:01  Show Profile  Reply
Hello
Thanks, Nigel
With the following command, I've overcome the problem. Please give your idea of the piece of the order below
Sincerely
Reza Khorsandi
//-------------------------------


Var
_SaveFileName:String;
aBitmap: TIEBitmap;
begin
Try
     _SaveFileName := _'C:\TEMP\Finally.jpg';
      aBitmap := TIEBitmap.Create;
      aBitmap.Allocate( ImageEnView1.Width, ImageEnView1.Height ,ie24RGB );
      ImageEnView1.LayersDrawTo( aBitmap );
      aBitmap.Write(_SaveFileName );
.
{Continuation orders That outside From the subject There is a debate}
.
Finally
        FreeAndNil( aBitmap );
End;

Go to Top of Page

xequte

38180 Posts

Posted - Sep 17 2017 :  20:40:07  Show Profile  Reply
Yes, that will work fine.



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