So what you can do for LCDBitmap ? Here are some examples.
Code:
/**
* Create bitmap.
*
* Initialize bitmap and allocate memory.
*
*/
void create(int width, int height)
/**
* Clear bitmap.
*
* Clear bitmap picture data.
*
*/
void clear(void)
/**
* Load bitmap from disk to memory.
*
* @param filename name of bitmap file.
* @return True if bitmap loaded ok, false otherwise.
*
* TODO: check palette for correct black/white order
*
*/
bool load(std::string filename)
/**
* Get width of bitmap.
*
* @return Width of bitmap.
*
*/
unsigned int width(void) const
/**
* Get height of bitmap.
*
* @return Height of bitmap.
*
*/
unsigned int height(void) const
/**
* Set individual bitmap pixel.
*
* @param x X position.
* @param y Y position.
* @param style What to do for pixel: PIXEL_SET, PIXEL_CLEAR
*
*/
void setPixel(unsigned int x, unsigned int y, PixelStyle style)
/**
* Check if defined pixel is set.
*
* @param x X position.
* @param y Y position.
* @return true if pixel is set, false if pixel is not set.
*
*/
bool getPixel(unsigned int x, unsigned int y)
/**
* Draw line.
*
* @param X1 Begin x position.
* @param Y1 Begin y position.
* @param X2 End x position.
* @param Y2 End y position.
*/
void line(unsigned int X1, unsigned int Y1, unsigned int X2, unsigned int Y2, PixelStyle style)
/* midpoint circle algorithm */
void circle(unsigned int xC, unsigned int yC, unsigned int radius, PixelStyle style)
void box(unsigned int x, unsigned int y, unsigned int x2, unsigned int y2, PixelStyle style)
/**
* Fill area surrounded by pixels. Takes some pixel inside the area as parameter.
*
* @param x X position.
* @param y Y position.
*/
void fill(unsigned int x, unsigned int y)
void degreeLine(unsigned int x, unsigned int y, int degree, unsigned int inner_radius, unsigned int outer_radius, PixelStyle style)
/**
* Join two LCDBitmaps.
*
* @param bmp bitmap to join to this bitmap.
* @param x X position.
* @param y Y position.
*/
void join(const LCDBitmap& bmp, unsigned int x, unsigned int y)
Any questions, let me know.