Class used to interface with the Nokia N5110 LCD.

Fork of N5110 by Craig Evans

Revision:
38:92fad278c2c3
Child:
40:c9262294f2e1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bitmap.h	Wed Mar 08 14:12:42 2017 +0000
@@ -0,0 +1,30 @@
+#ifndef BITMAP_H
+#define BITMAP_H
+
+#include <vector>
+
+/**
+ * A monochrome bitmap drawing
+ */
+class Bitmap
+{
+private:
+    /**
+     * @brief The contents of the drawing, with pixels stored in row-major order
+     * @details '1' represents a black pixel; '0' represents white
+     */
+    std::vector<int> _contents;
+    
+    unsigned int _height; ///< The height of the drawing in pixels
+    unsigned int _width;  ///< The width of the drawing in pixels
+    
+public:
+    Bitmap(std::vector<int> const &contents,
+           unsigned int const       height,
+           unsigned int const       width);
+
+    int get_pixel(unsigned int const row,
+                  unsigned int const column) const;
+};
+
+#endif // SPRITE_H
\ No newline at end of file