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.

Revision:
1:f7003ec66a51
Parent:
0:b876cf091464
--- a/Decoders/BitmapImage.h	Fri Aug 30 17:09:18 2013 +0000
+++ b/Decoders/BitmapImage.h	Fri Mar 14 19:17:44 2014 +0000
@@ -30,14 +30,14 @@
      *
      * @param table Pointer to the image table.
      */
-    BitmapImage(const char *table);
+    BitmapImage(const char* table);
 
     /** Create a BitmapImage object from the specified image table with the specified foreground, and an alpha background
      *
      * @param table Pointer to the image table.
      * @param fg_color The foreground color as a 32-bit ARGB value.
      */
-    BitmapImage(const char *table, unsigned int fg_color);
+    BitmapImage(const char* table, unsigned int fg_color);
 
     /** Create a BitmapImage object from the specified image table with the specified foreground and background colors
      *
@@ -45,7 +45,7 @@
      * @param fg_color The foreground color as a 32-bit ARGB value.
      * @param bg_color The background color as a 32-bit ARGB value.
      */
-    BitmapImage(const char *table, unsigned int fg_color, unsigned int bg_color);
+    BitmapImage(const char* table, unsigned int fg_color, unsigned int bg_color);
 
     /** Get the pixel at the specified coordinates
     *
@@ -60,7 +60,7 @@
     *
     * @returns The foreground color as a 32-bit ARGB value.
     */
-    unsigned int foreground(void);
+    unsigned int foreground();
 
     /** Set the foreground color
     *
@@ -72,7 +72,7 @@
     *
     * @returns The background color as a 32-bit ARGB value.
     */
-    unsigned int background(void);
+    unsigned int background();
 
     /** Set the background color
     *
@@ -82,12 +82,12 @@
 
 protected:
     //Pointer to the image table
-    const char *m_ImageTable;
+    const char* m_ImageTable;
 
     //The foreground and background colors
     unsigned int m_FgColor, m_BgColor;
 
-    int bytesPerLine(void);
+    int bytesPerLine();
 };
 
 #endif