I have a project that I’ve maintained for a number of years that has used a custom system to handle Retina pictures (before Xojo supported Retina natively). I am currently trying to rip out that custom system and port this over to Xojo’s built-in Retina support.
When drawing directly to a canvas or window Graphics object in the respective Paint events, this is not an issue. The image-sets that I have created draw correctly for the type of display they appear on using nothing more complex than DrawPicture statements. This is awesome and very simple.
However, this project has a number of custom controls that are Canvas subclasses that handle their own drawing. When these controls are first initialized, they create their custom graphics and cache them in picture properties. This is where I’m getting hung up. I’ve tried a couple of different things, but I can only seem to create non-Retina pictures if I’m not drawing directly to the Canvas’ graphics object.
Can anyone point me in the right direction to do what I’m trying to do?
Thank you in advance!