I would like to resize an image to a predefined bitmap of 64 * 64, regardless of its current dimensions and aspect ratio. I tried Bitmap.ReSize
but that keeps the aspect ratio. I tried TImage
and set the WrapMode
to iwStretch
. That works to a certain extent in that it indeed rescales the image as I want it, but I can't find a way to get that image out of the TImage
. The Bitmap
property of TImage
still contains the original bitmap.
Does anybody know how to fetch the Image from a TImage
as it is shown on the screen? Or even better: point me to a function that does this kind of resizing and stretching? If there is one, I have missed it.
Thanks for your time.