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
 Fit to TimageEnVect size

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

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


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
ymae Posted - Jul 20 2022 : 23:35:29

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.

1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 21 2022 : 03:20:08

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