Xojo removed the ability to use anything but 32 bit depth years ago.
(There is another thread talking about this now.)
How can I create a Picture with a depth of 16 ?
Why do you feel you need to?
I personally would love to create a 1 bit depth… only need black and white for some things.
But if you are working in color, how does restricting the available shades help you in your work?
What about GIF files?
This from the Adobe website…
GIF stands for Graphics Interchange Format. GIF is a raster file format designed for relatively basic images that appear mainly on the internet. Each file can support up to 8 bits per pixel and can contain 256 indexed colors. GIF files also allow images or frames to be combined, creating basic animations.
These files use the .gif extension and can be opened in a wide range of programs.
So the GIFPictureMBS plugin option may be useful, but it still needs to be converted to a Xojo picture for display
Pretty sure that is not the case. In my API2 application I have just typed:
var a as New Picture(tab
and it actually comes up with 4 constructors:
var a as New Picture()
var a as New Picture(width As Integer, height As Integer)
var a as New Picture(width As Integer, height As Integer, bitmaps() As Picture)
var a as New Picture(width As Integer, height As Integer, depth As Integer)
I don’t have the “show deprecated items” setting turned on. The new documentation is not always very accurate, especially on constructors.
The docs are ambiguous about this. They don’t specifially define a constructor that takes a depth parameter, but they do refer to it in a couple of places. And it is the only way to create a vector image and is specifically mentioned/demonstrated in that section.
If I remember correctly, I brought this up to @Geoff_Perlman at one point around the time the new docs were being worked on. The depth constructor had been marked as deprecated, and I think he said that wasn’t intentional. There are uses for Picture objects of different depths, and I’d hope the documentation would be fixed.
Actually, the reason this was missing is that it wasn’t in the old docs. I’ve just added it. It should appear in the next build. If you ever find a class member missing from the documentation, please create a bug report. We fix those fairly quickly.