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
 Zooming a selection
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bmesser

United Kingdom
246 Posts

Posted - Oct 18 2025 :  11:51:40  Show Profile  Reply
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!


xequte

39222 Posts

Posted - Oct 18 2025 :  16:04:34  Show Profile  Reply
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
Go to Top of Page

bmesser

United Kingdom
246 Posts

Posted - Oct 19 2025 :  06:39:30  Show Profile  Reply
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!
Go to Top of Page

xequte

39222 Posts

Posted - Oct 19 2025 :  16:34:58  Show Profile  Reply


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