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 show image stretched to full container
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jwest

Brazil
67 Posts

Posted - Mar 14 2018 :  13:31:07  Show Profile  Reply
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?

w2m

USA
1990 Posts

Posted - Mar 14 2018 :  14:30:04  Show Profile  Reply
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
Go to Top of Page

jwest

Brazil
67 Posts

Posted - Mar 14 2018 :  16:55:55  Show Profile  Reply
Thank you, it solved my problem.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: