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