I wrote the following code in the Paint Event of a canvas:
[code]#If TargetMacOS
Dim picFile As FolderItem = app.ExecutableFile.Parent.Parent.Child(“Resources”).Child(“kursverwaltung.png”) #ElseIf TargetWindows
Dim picFile As FolderItem = app.ExecutableFile.Parent.Child(“Kursverwaltung Resources”).Child(“kursverwaltung.png”) #Endif
In MacOS the result is just like it should be, but in Windows (in VirtualBox) it looks rather odd, although it is the same image file (in different places):
Thats bad practice in general. Not only it will slow down your canvas drawing, it will result in bad quality on a non-retina Mac and most certainly for Windows. So try to avoid scaling. especially if the scaling is huge like 1072x1072 to 100x100.
If you need HiDPI support for macOS and Windows, you should use x1 and x2 for each image instead. Thats how it works.