forked from DustinWatts/FreeTouchDeck
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathImageFormatBMP.h
More file actions
29 lines (28 loc) · 796 Bytes
/
ImageFormatBMP.h
File metadata and controls
29 lines (28 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
#include "globals.hpp"
#include "ImageWrapper.h"
namespace FreeTouchDeck
{
class ImageFormatBMP : ImageWrapper
{
public:
void Draw(int16_t x, int16_t y, bool transparent);
ImageFormatBMP(const std::string &imageName);
ImageFormatBMP();
static ImageFormatBMP * GetImageInstance(const std::string &imageName);
const String& GetDescription();
uint16_t GetPixelColor();
bool IsValid();
const std::string &GetLogoName();
private:
static String Description;
uint32_t Offset = 0;
uint16_t Planes = 0;
uint16_t Depth = 0;
uint32_t Compression = 0;
uint32_t Colors = 0;
byte R, G, B;
uint16_t padding = 0;
bool LoadImageDetails();
};
}