#if TargetLinux then
if autoFit then
var scaledImage as Picture
scaledImage = new picture(me.Width, me.Height)
scaledimage.Graphics.DrawPicture(me.Image, 2, 2, me.Width-5, me.Height-5, 0, 0, me.Image.Width, me.Image.Height)
me.Image = scaledImage
end if
#endif
the image dpi has no influence on this case. an image with 1928x1544 at 72dpi or 300dpi does not change the “size” of the image. it’ll be always… 1928x1544.
the problem is the “auto fitting” does not work on linux, only on Mac and windows.