Smart Matrix
Image Class Reference

Implementation for raw image files. More...

#include <Image.hpp>

Inheritance diagram for Image:
Graphics

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.
 
ScreengetScreen () 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
Screenw
 
vector size
 
vector location
 

Detailed Description

Implementation for raw image files.

This class is used to draw photos on the screen.

Constructor & Destructor Documentation

Image::Image ( Screen w,
const uint8_t *  im,
vector  location = vector(0,0) 
)
inline

Image constructors.

Screen to draw image on it, e.g. matrix. image is a raw photo converted by a command line script. You have to include a raw file and then pass it to this function. Location is the location to draw image on the screen.

Member Function Documentation

void Image::draw ( )
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.


The documentation for this class was generated from the following files: