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
 How to Zoom to Width of Image?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
698 Posts

Posted - Oct 08 2021 :  03:10:38  Show Profile  Reply
Hello,

I want to zoom to the width of image so that the image is visible in width.

Is there any ready to use settings for this?

TIA

Yogi Yang

xequte

6420 Posts

Posted - Oct 09 2021 :  01:24:13  Show Profile  Reply
Hi Yogi

Yes, as follows:

// Zoom to fit width
ImageEnView.GetIdealZoom( ZoomX, ZoomY );
ImageEnView.Zoom := ZoomX;


https://www.imageen.com/help/TImageEnView.GetIdealZoom.html

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

yogiyang

India
698 Posts

Posted - Oct 09 2021 :  01:40:46  Show Profile  Reply
Hello Nigel,

Thanks for the sample code snippet.

It has saved me a lot of headache.



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