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
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  


10 Posts

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

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.


37651 Posts

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

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

Xequte Software
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: