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
 Fit to TimageEnVect size
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

ymae

Korea
7 Posts

Posted - Jul 20 2022 :  23:35:29  Show Profile  Reply
hi

As you was saying me, I modified the image below to ignore the aspect ratio and stretch it to fill the screen.

ImgPre.IO.LoadFromFileAuto(IMG_PATH + 'Img.jpg');
ImgPre.GetIdealZoom( ZoomX, ZoomY );
ImgPre.ZoomX := ZoomX;
ImgPre.ZoomY := ZoomY;

but, that source code get one problem.
Odd calls are fill the screen Image, But reload image not ignore the aspect retio and stretch (normal proportions) when even calls

How can I use this source only fill the screen Image(like Odd calls)?
Please answer Thank you.



xequte

7079 Posts

Posted - Jul 21 2022 :  03:20:08  Show Profile  Reply
Hi

Unfortunately there is not a single property to allow an asymmetrical stretch, so you should put your stretching code into an event like:

https://www.imageen.com/help/TImageEnView.OnViewChange.html
https://www.imageen.com/help/TImageEnView.OnImageLoaded.html

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