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
 Zooming a selection

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
bmesser Posted - Oct 18 2025 : 11:51:40
Hi

I am trying in code to

1. Cut and paste one rectangular part of an image from a fixed location using select.
2. Zoom its size by 150%
3. Use CopySelectionToBitmap to grab the BMP.
4. Draw/Paste the BMP back into a cropped copy of the original image.

I now realise that setting zoom:=150 does not alter the underlying image that I initially selected.

Is there an easy way to zoom a selection and grab the bmp?

Bruce.

PS Your online help is very thorough and I thank you for it, but it desperately needs search functionality. I realise you can do this using Google but it's a bit hit & miss.
Maybe I should use the .chm!


3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 19 2025 : 16:34:58


Nigel
Xequte Software
www.imageen.com
bmesser Posted - Oct 19 2025 : 06:39:30
Thanks Nigel that worked a treat.

For some reason I never think to use IEBitmaps!

Moving up to the latest version of ImageEn hasn't been a real problem.

The biggest headache I've found is my new 4K monitor and the changes I've had to make for scaling of old applications with some other components I use.

Delphi 10.2 is not WYSIWYG anymore!
xequte Posted - Oct 18 2025 : 16:04:34
Hi Bruce

Can you not just resample the copied selection by the zoom to get the result you want?

i.e. bmp.Resample( ImageEnView1.Zoom / 100, rfLanczos3 );

Sorry about the lack of search functionality. The last release was a bit hurried (due to the simultaneous release of Delphi 13 and my departure for a holiday) and so the search box was not included. It will be back with the upcoming release (in the next week or so).

Nigel
Xequte Software
www.imageen.com