Imagewell/Canvas scale to fit

Hi. How do you scale an image that is either larger or smaller to shrink/stretch in order to fit into a Canvas or Imagewell? Say the Canvas or Imagewell measures 100x100, and the image sizes will vary, mostly larger but varying in lengths and widths. Is there a way to make the image fit nicely without being cut off? I have been using an Imagewell, and the image is cut off. It looks like it is its natural size but I’d like it to fit in the space for the control if possible

Hi,

Have you checked the documentation? See here for the Canvas: http://documentation.xojo.com/index.php/Graphics.DrawPicture

If you have any question I’ll be glad to try to help.

Julen

Also take a look at the following thread: https://forum.xojo.com/9403-scale-quality-of-canvas-control

Thank you both. I got the images to scale properly