bmplib           |
by sam (youresam)|
version 1        |
------------------

About:
	bmplib allows you to open bmp images in lua

How-to:
	Simply copy "bmplib.lua" into your programs folder and
	put dofile("bmplib.lua") in your program.

	I have attached a sample BMP along with a sample program.
	To run the sample, place this folder in your
	LuaPlayer/Applications folder.

	2.00+ USERS: This is like a normal LuaPlayer app and should
	work like all luaplayer apps do.
Functions:
Image.bmpload(filename)
	Opens the 24-bit BMP file and returns it as an image

Bugs:
	It takes luaplayer a long time to draw an image pixel
	by pixel, so loading bitmaps takes some time.

To-Do:
	-Bitmap saving once I learn how to save binary files in lua
	-All bitmap bit support (1,4,8,16)
	-Optimization: If a row of pixels are the same color, draw
	 all at once instead of indivitualy to save time

Author:
	This program was created by "youresam". If you need to contact
	me, my AIM is youresam1
	You may modify the source of bmplib, but I will warn you it is
	tricky. There is padding in certain places based on certain
	numbers, instead of RGB its GBR, and the pixels are upside down.