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
 How to show image stretched to full container

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

View 
UserName:
Password:
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
   
Message 

 

Emoji
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
jwest Posted - Mar 14 2018 : 13:31:07
Hi,

I am using TimageEnView to load a image.
I have:
AutoStretch:=True

and I also try AutoFit=:true (no effect)

IŽd like the image to occupy the full content of the TImageEnView rectangle,
no empty space between the image and rectangle.

If I use a TImage and make a stretch, all internal container is occupied.

IŽd like the same effect with TImageEnView.

How can I do that?

2   L A T E S T    R E P L I E S    (Newest First)
jwest Posted - Mar 14 2018 : 16:55:55
Thank you, it solved my problem.
w2m Posted - Mar 14 2018 : 14:30:04
AutoFit, AutoStretch and AutoShrink all must be false, then use Stretch:

TImageEnView.Stretch

Declaration
procedure Stretch;

Description
This method sets ZoomX and ZoomY values to stretch the image to fit within the component borders.

Note: Using this method you will lose the image aspect ratio and some functions, which require aspect ratio, may not work properly.

ImageEnView.Stretch;

If ImageEnView is client aligned and the dimensions of ImageEnView changes like when maximizing the form or when resizing the form you have to call Stretch to stretch the image to fit the new component dimensions.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development