Bare Metal Programming Tool Kit
|
a color photo stored as inline constant data (in ROM) More...
#include <graphics.h>
Public Member Functions | |
inline_rgb_photo (vector size, const unsigned char *data) | |
create an inline_rgb_photo object | |
Public Member Functions inherited from bmptk::graphics::image_pixels | |
image_pixels (vector size) | |
constructor, specify the size | |
vector | size_get () const |
get the size of the picture | |
bool | is_valid (const vector p) const |
report whether p is within the image | |
virtual void | draw (frame &frame, const vector position=vector::origin()) const |
color | read (const vector p) const |
read one pixel, address specified by vector | |
Public Member Functions inherited from bmptk::graphics::image | |
image () | |
default constructor | |
Additional Inherited Members | |
Protected Attributes inherited from bmptk::graphics::image_pixels | |
vector | size |
the size of the (rectangular) block occupied by the objecy | |
a color photo stored as inline constant data (in ROM)
The class inline_rgb_photo is a concrete child of the photo class. It stores the colors of the pixels in an array of constant data. Inline_rgb_photo uses 3 bytes of red, green, and blue per pixel (inline_bw_photo uses 1 bit per pixel). The inline.py tool can be used to convert a .jpg or .bmp file into the .h and .cpp file for an inline_rgb_photo. This is likely to be the only way you will instantiate this class.
Definition at line 1560 of file graphics.h.