OmEspHelpers
Public Member Functions | Public Attributes | List of all members
OmBitmap1BmpStream Class Reference

class to stream a 1-bit .bmp bitmap file, as you feed it pixel by pixel More...

#include <OmBmp.h>

Inheritance diagram for OmBitmap1BmpStream:
OmIByteStream

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.
 
- Public Member Functions inherited from OmIByteStream
virtual bool done ()
 
virtual bool putS (const char *s)
 convenience routine, same as put byte-by-byte.
 

Public Attributes

OmIByteStreamconsumer
 
int width
 
int height
 
bool didPutHeader
 
int x
 
int y
 
int rowPadBytes
 
uint8_t byteInProgress
 
- Public Attributes inherited from OmIByteStream
bool isDone = false
 

Detailed Description

class to stream a 1-bit .bmp bitmap file, as you feed it pixel by pixel

Constructor & Destructor Documentation

◆ OmBitmap1BmpStream()

OmBitmap1BmpStream::OmBitmap1BmpStream ( OmIByteStream consumer,
int  width,
int  height 
)
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.


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