10 #ifndef BPPGRAPHICDISPLAY_HPP 11 #define BPPGRAPHICDISPLAY_HPP 15 namespace duds {
namespace hardware {
namespace display {
58 return frmbuf.
width();
89 void write(
const std::shared_ptr<const duds::ui::graphics::BppImage> &img) {
98 #endif // #ifndef BPPGRAPHICDISPLAY_HPP const ImageDimensions & dimensions() const
Returns the dimensions of the image.
int height() const
Returns the height of the frame buffer.
BppGraphicDisplay(const duds::ui::graphics::ImageDimensions &dim)
Construct with a frame buffer of the specified size.
std::int16_t width() const
Returns the width of the image.
const duds::ui::graphics::ImageDimensions & dimensions() const
Returns the dimensions of the frame buffer.
Stores the dimensions of an image.
virtual void outputFrame(const duds::ui::graphics::BppImage *img)=0
Writes out the given image to the display and updates the image in frmbuf to match.
void write(const std::shared_ptr< const duds::ui::graphics::BppImage > &img)
Writes the new image to the display.
void write(const duds::ui::graphics::BppImage *img)
Writes the new image to the display.
int width() const
Returns the width of the frame buffer.
const duds::ui::graphics::BppImage & frame() const
Provides access to the image in the frame buffer.
duds::ui::graphics::BppImage frmbuf
The frame buffer.
std::shared_ptr< BppGraphicDisplay > BppGraphicDisplaySptr
Base class for bit-per-pixel graphic displays.
BppGraphicDisplay()=default
Construct with an empty frame buffer.
An image that uses a single bit to represent the state of each pixel; a black or white picture...
std::int16_t height() const
Returns the height of the image.