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
 Crop the background under rectangular layers
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

DenisViz

8 Posts

Posted - Oct 12 2025 :  09:52:02  Show Profile  Reply
Good afternoon, please tell me how to crop the background under rectangular layers using ImageEnView, and then paste them into one image.





xequte

39279 Posts

Posted - Oct 12 2025 :  16:45:33  Show Profile  Reply
Hi

You can do it as follows:

// Copy the area of the background image under the current layer to another ImageEnView
var
  lyr: TIELayer;
begin
  lyr := ImageEnView1.CurrentLayer;
  ImageEnView2.IEBitmap.Allocate( lyr.Width, lyr.Height, clNone );
  ImageEnView1.Layers[0].Bitmap.CopyRectTo( ImageEnView2.IEBitmap, lyr.PosX, lyr.PosY, 0, 0, lyr.Width, lyr.Height, True );
  ImageEnView2.Update();
end;


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