I’ve started tinkering with an old project I had which loaded a simple PNG into a Picture class and then queried the colour of pixels at certain coordinates using the Picture.Graphics.Pixel method. The trouble is, as of Xojo 2016 r1.1 it crashes as both Graphics and RGBSurface are Nil. This applies whether I load the image from file or reference an image dropped onto the IDE. How do I instantiate the Graphics and RGBSurface objects again? I’m sure this has something to do with supporting HiDPI but it’s been a few years since I last played with Picture objects. Can anyone help me explain what’s wrong?
Images loaded from disk are immutable meaning they have no graphics
This is covered in the HoDPISupport PDF in the Documentation included with your install of 2016r1 or 1.1
Thanks Norman. Read the document, full of useful pointers.