in XE5, using TImage, how can I stretch a bitmap with his proportional dimensions? The TImage has 200 pixels width and 300 pixels height. And the bitmap has 130 width and 80 height. When I set Image1.WrapMode to iwStretch the bitmap is resized to fit the TImage's area, but not in the scale proportion of TImage, the bitmap then shows too "fat".
Thanks a lot.
TImage.WrapMode = iwFit
what you are looking for? It will keep the proportions of the image. – LU RDdoc
says, thatiwFit
only can shrink the image (proportionally) if it does not fit. Upscaling is not implemented. – LU RD