OmEspHelpers
|
class to stream a 1-bit .bmp bitmap file, as you feed it pixel by pixel More...
#include <OmBmp.h>
Public Member Functions | |
bool | put (uint8_t ch) override |
emit a single byte, overridden by any implementation | |
bool | putBmpHeader (int width, int height) |
OmBitmap1BmpStream (OmIByteStream *consumer, int width, int height) | |
Instantiate the bitmap streamer, with width and height. More... | |
bool | put1Bit (int bit) |
emit a single 1-bit pixel of our bitmap image. Will return true for each bit you send, until width*height have been sent. Then no futher bits will get streamed out, and return false. | |
![]() | |
virtual bool | done () |
virtual bool | putS (const char *s) |
convenience routine, same as put byte-by-byte. | |
Public Attributes | |
OmIByteStream * | consumer |
int | width |
int | height |
bool | didPutHeader |
int | x |
int | y |
int | rowPadBytes |
uint8_t | byteInProgress |
![]() | |
bool | isDone = false |
class to stream a 1-bit .bmp bitmap file, as you feed it pixel by pixel
|
inline |
Instantiate the bitmap streamer, with width and height.
after last pixel of a row (which triggers a put, always)
0-3 more pad bytes may be issued to make rowbytes multiple 4.