VEX V5 C++ API
Public Member Functions | Friends | List of all members
vex::bitmap Class Reference

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
 

Detailed Description

Bitmap image.

Constructor & Destructor Documentation

◆ bitmap() [1/3]

vex::bitmap::bitmap ( int  width,
int  height,
uint32_t *  pixels = NULL 
)

Create a bitmap image of specific width, height with optional pixel data.

◆ bitmap() [2/3]

vex::bitmap::bitmap ( const uint8_t *  pngData,
size_t  length 
)

Create a bitmap image from PNG format data.

Parameters
pngDatabyte array containing the PNG image. First 4 bytes are length of raw data that follows.
lengthLength of the data.

◆ bitmap() [3/3]

vex::bitmap::bitmap ( const char *  fileName)

Create a bitmap image from PNG file on SD card.

Parameters
fileNamenull-terminated string name of file on SD card, e.g. "MyImage.png"

◆ ~bitmap()

vex::bitmap::~bitmap ( )

Friends And Related Function Documentation

◆ brain::lcd

friend class brain::lcd
friend