Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#pragma once
#include <cstdint>
#include <etl/array.h>
#include <etl/array_view.h>
namespace lcd
{
class ImageMono
{
public:
using DataView = etl::array_view<const uint8_t>;
ImageMono( DataView data, uint16_t width, uint16_t height ):
data_( data ),
width_( width ),
height_( height )
{
}
ImageMono():
data_(),
width_( 0 ),
height_( 0 )
{
}
uint16_t getWidth() const
{
return width_;
}
uint16_t getHeight() const
{
return height_;
}
DataView getData() const
{
return data_;
}
private:
DataView data_;
uint16_t width_;
uint16_t height_;
};
} // namespace lcd
119b494bbThis file is pinned to the selected release. Download the original to open it in your design tool.