COSA
An Object-Oriented Platform for Arduino Programming
|
#include <Canvas.hh>
Public Member Functions | |
Image (uint16_t width=0, uint16_t height=0) | |
virtual bool | read (color16_t *buf, size_t count)=0 |
Public Attributes | |
uint16_t | WIDTH |
uint16_t | HEIGHT |
Static Public Attributes | |
static const size_t | BUFFER_MAX = 32 |
Canvas image abstract class. Allow implementation of pixel streams with scanning order from left to right, top to bottom. May be used from pixel grids, shadings and pictures from file.
|
inline |
|
pure virtual |
Read the given number of pixel into the given buffer. Return true(1) if successful otherwise false(0).
[in] | buf | pixel buffer pointer. |
[in] | count | number of pixels to read. |
|
static |