Stretch Image only if too big
Posted: Tue Apr 19, 2016 9:40 am
Hi,
I want to include a user defined logo in my document. In order to make it look good, I need to stretch the image keeping the aspect Ratio.
This works fine if the Logo is too big. If the logo is small, it will get stretched and looks blurry. Is there a way to only stretch the image if it's too big?!
See my attached example. I tried using "can shrink" and it helps, but my image is not centered anymore (I guess the alignment counts for it's content in relation to the container width/height, so this makes sense)...
EDIT:
Maybe it's possible to do it with the "Before Print" event? If so, how to get the container width/height and image source width/height?
I want to include a user defined logo in my document. In order to make it look good, I need to stretch the image keeping the aspect Ratio.
This works fine if the Logo is too big. If the logo is small, it will get stretched and looks blurry. Is there a way to only stretch the image if it's too big?!
See my attached example. I tried using "can shrink" and it helps, but my image is not centered anymore (I guess the alignment counts for it's content in relation to the container width/height, so this makes sense)...
EDIT:
Maybe it's possible to do it with the "Before Print" event? If so, how to get the container width/height and image source width/height?