forked from sle118/FreeTouchDeck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImageFormatJPG.h
29 lines (27 loc) · 922 Bytes
/
ImageFormatJPG.h
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 ImageFormatJPG : ImageWrapper
{
public:
void Draw(int16_t x, int16_t y, bool transparent);
ImageFormatJPG(const std::string &imageName);
ImageFormatJPG();
static ImageFormatJPG * GetImageInstance(const std::string &imageName);
const String& GetDescription();
const std::string &GetLogoName();
uint16_t GetPixelColor();
bool IsValid();
private:
uint16_t PixelColor;
static bool Transparent;
static uint16_t BGColor;
static String Description;
bool LoadImageDetails();
static bool tft_output(int16_t x, int16_t y, uint16_t w, uint16_t h, uint16_t* bitmap);
static bool pixelcheck(int16_t x, int16_t y, uint16_t w, uint16_t h, uint16_t* bitmap);
static uint16_t firstPixColor;
};
}