VEX V5 C++ API
|
Bitmap image. More...
Public Member Functions | |
bitmap (int width, int height, uint32_t *pixels=NULL) | |
Create a bitmap image of specific width, height with optional pixel data. More... | |
bitmap (const uint8_t *pngData, size_t length) | |
Create a bitmap image from PNG format data. More... | |
bitmap (const char *fileName) | |
Create a bitmap image from PNG file on SD card. More... | |
~bitmap () | |
Friends | |
class | brain::lcd |
Bitmap image.
vex::bitmap::bitmap | ( | int | width, |
int | height, | ||
uint32_t * | pixels = NULL |
||
) |
Create a bitmap image of specific width, height with optional pixel data.
vex::bitmap::bitmap | ( | const uint8_t * | pngData, |
size_t | length | ||
) |
Create a bitmap image from PNG format data.
pngData | byte array containing the PNG image. First 4 bytes are length of raw data that follows. |
length | Length of the data. |
vex::bitmap::bitmap | ( | const char * | fileName | ) |
Create a bitmap image from PNG file on SD card.
fileName | null-terminated string name of file on SD card, e.g. "MyImage.png" |
vex::bitmap::~bitmap | ( | ) |
|
friend |