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
 how to copy current layer in imageenview..
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

murod

Argentina
6 Posts

Posted - Mar 07 2012 :  20:56:09  Show Profile  Reply
hi.. .. please ... how to copy current layer in imageenview...

fab

1310 Posts

Posted - Mar 07 2012 :  23:32:54  Show Profile  Reply
Hi,
do you mean to copy a layer in one TImageEnView to another TImageEnView?
This copies current layer to layer 0 of ImageEnView2:
ImageEnView2.IEBitmap.Assign( ImageEnView1.CurrentLayer.Bitmap );
ImageEnView2.Update();
Go to Top of Page

murod

Argentina
6 Posts

Posted - Mar 08 2012 :  07:54:12  Show Profile  Reply
i mean copying a layer in imageenview1 to imageenview1... for example i have masked layer and i use it in some parts of main image in imageenview1 .... and i want copy this layer for using...
Go to Top of Page

fab

1310 Posts

Posted - Mar 08 2012 :  08:06:47  Show Profile  Reply
It is the same. Following code copies layer 0 bitmap to layer 1:
with ImageEnView1 do
begin
  Layers[1].Bitmap.Assign( Layers0].Bitmap );
  Update();
end;
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: