mirror of
https://github.com/paperdash/device-epd.git
synced 2024-11-13 19:12:00 +00:00
24 lines
400 B
C
24 lines
400 B
C
#ifndef IMAGE_H
|
|
#define IMAGE_H
|
|
|
|
#include <Arduino.h>
|
|
|
|
typedef struct
|
|
{
|
|
size_t format;
|
|
int x;
|
|
int y;
|
|
int w;
|
|
int h;
|
|
bool dithering;
|
|
} structImageProcess;
|
|
|
|
void setupImage();
|
|
|
|
void ImageNew(int x, int y, int w, int h, bool dithering);
|
|
void ImageWriteBuffer(uint8_t buff[], size_t c);
|
|
void ImageFlushBuffer();
|
|
|
|
void ImageProcessPixel(uint16_t x, uint16_t y, uint8_t rgba[4]);
|
|
|
|
#endif /* IMAGE_H */ |