Is the picture binary format documented somewhere?
I have a image representation in another programming language that follows a simple format, and would like to convert that to a MemoryBlock so that I can convert it to a Xojo picture.
The binary format of a picture in that other programming language is:
So, very easy, but I can’t seem to find any info on the Xojo Picture class. I read this page: Picture.FromData and the Picture class documentation. But I cannot find the binary format.
Xojo supports a few standard picture formats. Picture.FromData is likely only able to handle picture data generated by Picture.GetData, there isn’t much more in the documentation to suggest otherwise.
If your other tool supports standard formats like JPEG or PNG, I would use those.
However, if not, it looks like you have enough information to reconstruct the image using RGB surface.