A simple yet powerful library for controlling graphical displays. Multiple display controllers are supported using inheritance.
Dependents: mbed_rifletool Hexi_Bubble_Game Hexi_Catch-the-dot_Game Hexi_Acceleromagnetic_Synth
NOTE: This library is in beta right now. As far as I know, everything here works, but there are many features that are lacking so far. Most notably containers, button handling, and display drivers other than the SSD1306.
Diff: Decoders/BitmapImage.cpp
- Revision:
- 1:f7003ec66a51
- Parent:
- 0:b876cf091464
--- a/Decoders/BitmapImage.cpp Fri Aug 30 17:09:18 2013 +0000 +++ b/Decoders/BitmapImage.cpp Fri Mar 14 19:17:44 2014 +0000 @@ -16,21 +16,21 @@ #include "BitmapImage.h" -BitmapImage::BitmapImage(const char *table) : Image(table[0] * 0xFF + table[1], table[2] * 0xFF + table[3]) +BitmapImage::BitmapImage(const char* table) : Image(table[0] * 0xFF + table[1], table[2] * 0xFF + table[3]) { m_ImageTable = table; m_FgColor = 0xFFFFFFFF; m_BgColor = 0x00000000; } -BitmapImage::BitmapImage(const char *table, unsigned int fg_color) : Image(table[0] * 0xFF + table[1], table[2] * 0xFF + table[3]) +BitmapImage::BitmapImage(const char* table, unsigned int fg_color) : Image(table[0] * 0xFF + table[1], table[2] * 0xFF + table[3]) { m_ImageTable = table; m_FgColor = fg_color; m_BgColor = 0x00000000; } -BitmapImage::BitmapImage(const char *table, unsigned int fg_color, unsigned int bg_color) : Image(table[0] * 0xFF + table[1], table[2] * 0xFF + table[3]) +BitmapImage::BitmapImage(const char* table, unsigned int fg_color, unsigned int bg_color) : Image(table[0] * 0xFF + table[1], table[2] * 0xFF + table[3]) { m_ImageTable = table; m_FgColor = fg_color; @@ -58,7 +58,7 @@ return m_BgColor; } -unsigned int BitmapImage::foreground(void) +unsigned int BitmapImage::foreground() { return m_FgColor; } @@ -68,7 +68,7 @@ m_FgColor = c; } -unsigned int BitmapImage::background(void) +unsigned int BitmapImage::background() { return m_BgColor; } @@ -78,7 +78,7 @@ m_BgColor = c; } -int BitmapImage::bytesPerLine(void) +int BitmapImage::bytesPerLine() { int bpl;