ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Copy TImageEnView.Bitmap into a larger TImageEnView.Bitmap centered

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
andyhill Posted - Nov 27 2021 : 15:32:52
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
2   L A T E S T    R E P L I E S    (Newest First)
andyhill Posted - Nov 28 2021 : 13:31:42
Thanks Nigel

Andy
xequte Posted - Nov 27 2021 : 18:43:32
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