|
Smart Matrix
|
Implementation for raw image files. More...
#include <Image.hpp>
Public Member Functions | |
| Image (Screen &w, const uint8_t *im, vector location=vector(0, 0)) | |
| Image constructors. More... | |
| void | draw () override |
| print the image on the screen. More... | |
Public Member Functions inherited from Graphics | |
| Graphics (Screen &w, vector size, vector location) | |
| Graphics constructor. More... | |
| vector | getSize () const |
| return the size of a graphics object. | |
| vector | getLocation () const |
| return the location of a graphics object. | |
| Screen & | getScreen () const |
| return the screen used by graphics object | |
| void | setLocation (vector l) |
| change the location of a graphics object. | |
| void | setSize (vector s) |
| change the size of a graphics object | |
Additional Inherited Members | |
Protected Attributes inherited from Graphics | |
| Screen & | w |
| vector | size |
| vector | location |
Implementation for raw image files.
This class is used to draw photos on the screen.
|
overridevirtual |
print the image on the screen.
If you enabled a double buffering you have to swap buffers to draw the image on the screen.
Implements Graphics.