This script can load a bitmap (BMP) file, however, only the data from uncompressed bitmap files will be read.
Currently, only 24bpp color is supported, plus 8bpp in grayscale works too, however, this is not going to work with other color depths and it's not planned neither.
The only thing you will need is a single call to the loadBitmap(path) function to load your image. Given a path to your image as the first parameter, the function will first attempt to determine the format of the image based on it's file headers (NOT the file extension) and then it will read some misc data (you can find more about this at the last commented section in the file bitmap.lua)
Take in count that only the image data from bmp files will be read, so you should get a pixel's color info only from this files.
An example is included in the zip file.
edited 1×, last 09.09.10 10:37:40 am
Approved by GeoB99
Download
3 kb, 528 Downloads