Module cBitmap
Basebones class for for creating .bmp files Each line is padded with zeroes, like this
| | | | | | | | | | | ff66ccff66ccff66cc000000| | | | | ff66ccff66ccff66ccff66cc| | | | | ff66ccff66ccff66ccff66ccff66cc00| | | ff66ccff66ccff66ccff66ccff66ccff66cc0000|
Functions
flood (color) | set all pixels to a particular color |
split_bits (num, endian) | given a value, return bytes in reverse (endian) order |
create () | this method will create the bitmap table |
Functions
- flood (color)
-
set all pixels to a particular color
Parameters:
- color
- split_bits (num, endian)
-
given a value, return bytes in reverse (endian) order
Parameters:
- num (number), treated as 32-bit
- endian (bool), whether to swap bytes or not
Returns:
-
table>number
- create ()
- this method will create the bitmap table