HiDPI show wrong size of picture

OK.

Stupid question: what is the used Xojo version ?

2016 R4.1 platform Windows 7 Professional

Strange.

[quote=316377:@Horst Jehle]When I create a picture with 128 x 128 pixel and 144 x 144 dpi, I got a warning in the IDE:
“Current image is 128 x 128 @ 144 ppi and will be scaled”

When I build the app with this picture on Windows platform for 64 Bit Linux, I got the same wrong result. The picture fits not in the canvas area.[/quote]
Yes, that’s exactly right. It should be 128x128 @ 72ppi and 256x256 @ 144ppi. Basically, if you take the width or height and divide it by the ppi, you should get the same ratio, so:

256 / 144 = 128 / 72 = 1.777777777777778

When I read the documentation for HiPDI Support, I see that my images of an image set should have the correct dpi 144 or 266 when PropertyValue(“App.SupportsHiDPI”) = “False”.

When SupportsHiDPI is turned OFF, the framework will continue to work the way it did before. Images that use @2x or @3x in the name will have their PPI adjusted accordingly (144ppi, 216ppi).

When It is always needed to have the hi-dpi 144 and 216 (for @2 and @3), so please update the documentation.

My last question is always the same:
Why I build my Linux app on macOS platform, I don’t have any problem with the picture size or dpi. Only when I build my Linux app on windows, the problem with the pictures exists. I think this is a bug on the windows build on Xojo.

Since the Xojo ide is built with Xojo, it’d either be a windows framework bug or a Windows ide bug.