Начальная реализация поддержки шрифтов PSF
This commit is contained in:
parent
63b0d22340
commit
9af7778b77
5 changed files with 193 additions and 11 deletions
11
bmpimage.h
11
bmpimage.h
|
@ -40,13 +40,15 @@ struct Pixel {
|
|||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
class PixelArray{
|
||||
class PixelArray {
|
||||
Pixel **array;
|
||||
uint32_t _width;
|
||||
uint32_t _height;
|
||||
public:
|
||||
PixelArray(uint32_t width, uint32_t height);
|
||||
|
||||
PixelArray(const PixelArray &);
|
||||
|
||||
~PixelArray();
|
||||
|
||||
[[nodiscard]] const uint32_t &width() const;
|
||||
|
@ -56,7 +58,8 @@ public:
|
|||
// Pixel operator()(const uint32_t &, const uint32_t &);
|
||||
// Pixel* operator()(const uint32_t &);
|
||||
Pixel &operator()(const uint32_t &, const uint32_t &);
|
||||
Pixel* &operator()(const uint32_t &);
|
||||
|
||||
Pixel *&operator()(const uint32_t &);
|
||||
};
|
||||
|
||||
class BMPImage {
|
||||
|
@ -64,9 +67,9 @@ class BMPImage {
|
|||
BITMAPINFOHEADER infoHeader;
|
||||
PixelArray pixelArray;
|
||||
public:
|
||||
BMPImage(const BitmapFileHeader &fileHeader, const BITMAPINFOHEADER &infoHeader, const PixelArray& pixelArray);
|
||||
BMPImage(const BitmapFileHeader &fileHeader, const BITMAPINFOHEADER &infoHeader, const PixelArray &pixelArray);
|
||||
|
||||
BMPImage(const PixelArray& pixelArray);
|
||||
BMPImage(const PixelArray &pixelArray);
|
||||
|
||||
~BMPImage();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue