I could use some advice for the next version...
Right now, you can create a background image in one of two ways: you can specify it within the app, or you can specify a URL to download the image for a version, but this was done in the days before hi-res was common.
Modifying the former is easy. Instead of giving Kaju an image, you can give it an image set and Xojo will do the right thing. I'm updating the test app accordingly.
The latter is trickier because you don't know if the user is using hi-res or not, so here are the choices:
- Allow you to specify an ImageURL (same as now) and Image2xURL, which will be optional. If only ImageURL is specified, the behavior won't change. If only Image2xURL is specified, it will be scaled. If both are specified, the ImageURL dimensions will be used and an image set created.
- Keep just ImageURL and specify a Scale key, assumed to be 1 for backwards compatibility. You can specify any number and the image dimensions will be calculated within Kaju.
The advantage of (1) is that you might get better looking images on each type of screen, but the software will have to download each image whether it needs it or not.
The advantage of (2) is simplicity but you are relying on Xojo to scale the image where needed.