Silly question, but I am curious first of the why and second for which is preferred
When I drag images into a Xojo project, some of them are inserted with just the image as is, and others are inserted as a 1x, 2x, and 3x. See images below. I’ve never add an image to the forum but attempted below.
Is drag and drop the way to go to insert your images? Which is preferred? Single image or 1, 2, 3x? In my ones that are 1x, 2x, 3x, I have not been adding any of the 2x or 3x. Wasn’t sure how to accomplish this.
I occasionally run into users getting NilObjectExceptions and am grasping at straws. It donned on me today that maybe it’s the images that are missing the 2x and 3x. In which case I should add these too or just somehow add so they’re just the one image and not the 1, 2, 3x. Do you think this could be a potential issue for my few troublesome users?
You do not explain from where those image (the one they have 3 inside a single file) comes from.
BTW: I already saw, far before HiDPI or Retina, a single image who holds more than one image. On MacOS, you can have far more than 3 images (identical) in one file.
BTW: are-you sure about what you wrote: 2x, 3x ? The ones I already saw have identical images and I mean same size.
Hi Emile. In the example above, all of the PANEL_ images came from the same folder, which is on the same computer as the Xojo project. They were all selected (at once) and dragged over to the project (altogether). In that example, all made the single image (top image) and only the PANEL_Chat made the bottom image with the “Any 1x, 2x, and 3x” on the right pane of the main window
I guess my question is do I need to add images to the Any 2x and Any 3x slots in the bottom image in any pics that have an image set like this. Could this have anything to do with the occasional NilObjectException some users face since there are empty (nil) 2x and 3x images in some of my image folders? Or is this not worth the effort and just leave as is with some single images and some image sets?
Ah ha so that’s why you cannot see my images. I need a tutorial on how to use the forum when posting an image :). Yes, these were from dropbox
I’ll try just with the URLs
Here’s the look for the majority of images I drag into Xojo. Again, I have these in a folder on my computer (Windows). I select all the files I want to import to Xojo and drag them into the project. In this example, all of the ones I dragged over made the single image https://www.dropbox.com/s/rvovyu28rltx17i/image%20just%20one.png?dl=0
Yes, I can view the images. You just have to change the URL final part ?dl=0 to ?raw=1 to make it work (well, you need to put the url between [img] [/img]
Ok, I understand that if HiDPI is enabled and I drag an image, then I get the Image Set Editor.
If I set HiDPI to OFF then I will only get a single image.
But how is possible if I drag multiple images I get some as Image Set Editor and not others?
I just did a test adding images to a project, setting HiDPI on and off and I can have some representation as single image and others as image set, but I can’t drag several at the same time with the same setting and get some for one type and some for the other.