Which file format for graphics?

Blitz3D Forums/Blitz3D Beginners Area/Which file format for graphics?

Yes, Blitz supports PNG, BMP, and JPG. I'm not sure about TIF -- I don't think so.

PNG: Lossless compression. Great for 2D graphics and such.
BMP: Lossless format, but large file size. A lot of support built into Windows for it.
JPG: Lossy compression. Great for shrinking photos to a manageable size (with rasonable quality), but not so great for shrinking pictures with portions of high contrast, like line drawings, text, a lot of 2D art, etc. Only good for a "final" draft -- the picture loses quality every time it gets "jpeg-ified".
TIF: Lossless, usually uncompressed, but can be compressed with certain algorithms like LZH. A great format for keeping detailed originals, but huge files.

One the side:
Yes, you might check out "Pic-2-Data" code in the BlitzPlus section of the code archives. I haven't tried it, but it seems to be what you're looking for. Incidentally, once you embed a picture into your source code, it usually creates a much larger filesize than what you would have had. You'll probably want to use UPX to make it smaller.