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
 Copy TImageEnView.Bitmap into a larger TImageEnView.Bitmap centered
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

andyhill

Australia
133 Posts

Posted - Nov 27 2021 :  15:32:52  Show Profile  Reply
ie (x1, y1, x2, y2 computed offsets into ie2) holds the original bitmap which we want to copy into ie2's bitmap (ie2 bitmap is larger than ie's bitmap) so we center it, HOWEVER the ie2 bitmap now shrinks to the exact size of ie's bitmap ??? How do we stop ie2 changing size ?

// Select area inside ie2
ie2.Select(x1, y1, x2, y2);
// Overlay Base Bitmap Aspect Ratio, Stretch
ie2.ApplyBitmapToSelection(ie.IEBitmap, True, False);
ie2.DeSelect;
ie2.Update;

No matter what I do the ie2 bitmap shrinks to the same size of ie bitmap.

Please advise

Andy

xequte

38127 Posts

Posted - Nov 27 2021 :  18:43:32  Show Profile  Reply
Hi Andy

Use one of the TIEBitmap rect copy methods, such as:

https://www.imageen.com/help/TIEBitmap.CopyRectTo.html


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

andyhill

Australia
133 Posts

Posted - Nov 28 2021 :  13:31:42  Show Profile  Reply
Thanks Nigel

Andy
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: