EPD Display  1.0.0
Library and application for EPD smart displays
Public Member Functions | Public Attributes | List of all members
DisplayCanvas Class Reference

Representation of image canvas. More...

#include <DisplayCanvas.h>

Inheritance diagram for DisplayCanvas:
Inheritance graph
[legend]
Collaboration diagram for DisplayCanvas:
Collaboration graph
[legend]

Public Member Functions

void SetRotate (uint16_t rotate)
 Rotate image by 0,90,180,270 degrees. More...
 
void SetMirroring (uint8_t mirror)
 Select Image mirror. More...
 
void SetScale (uint8_t scale)
 Set display scale. More...
 
void SetPixel (uint16_t Xpoint, uint16_t Ypoint, uint16_t Color)
 Draw Pixels. More...
 
void Clear (uint16_t color)
 Clear the color of the picture. More...
 
void ClearWindows (uint16_t Xstart, uint16_t Ystart, uint16_t Xend, uint16_t Yend, uint16_t Color)
 Clear the color of a window. More...
 
void DrawPoint (uint16_t Xpoint, uint16_t Ypoint, uint16_t Color, DOT_PIXEL Dot_Pixel, DOT_STYLE Dot_Style)
 Draw Point(Xpoint, Ypoint) Fill the color. More...
 
void DrawLine (uint16_t Xstart, uint16_t Ystart, uint16_t Xend, uint16_t Yend, uint16_t Color, DOT_PIXEL Line_width, LINE_STYLE Line_Style)
 Draw a line of arbitrary slope. More...
 
void DrawRectangle (uint16_t Xstart, uint16_t Ystart, uint16_t Xend, uint16_t Yend, uint16_t Color, DOT_PIXEL Line_width, DRAW_FILL Draw_Fill)
 Draw a rectangle. More...
 
void DrawCircle (uint16_t X_Center, uint16_t Y_Center, uint16_t Radius, uint16_t Color, DOT_PIXEL Line_width, DRAW_FILL Draw_Fill)
 Use the 8-point method to draw a circle of the specified size at the specified position. More...
 
void DrawChar (uint16_t Xpoint, uint16_t Ypoint, const char Acsii_Char, sFONT *Font, uint16_t Color_Foreground, uint16_t Color_Background)
 Show English characters. More...
 
void DrawString_EN (uint16_t Xstart, uint16_t Ystart, const char *pString, sFONT *Font, uint16_t Color_Foreground, uint16_t Color_Background)
 Show English characters. More...
 
void DrawNum (uint16_t Xpoint, uint16_t Ypoint, int32_t Nummber, sFONT *Font, uint16_t Color_Foreground, uint16_t Color_Background)
 Display nummber. More...
 
void DrawTime (uint16_t Xstart, uint16_t Ystart, PAINT_TIME *pTime, sFONT *Font, uint16_t Color_Foreground, uint16_t Color_Background)
 Display time. More...
 
void DrawBitMap (const unsigned char *image_buffer)
 Display monochrome bitmap - Use a computer to convert the image into a corresponding array, and then embed the array directly into Imagedata.cpp as a .c file. More...
 
void DrawImage (const unsigned char *image_buffer, uint16_t xStart, uint16_t yStart, uint16_t W_Image, uint16_t H_Image)
 Display image. More...
 
 DisplayCanvas (DisplaySize_t s)
 Allocate the needed memory. More...
 
 DisplayCanvas ()
 
void SelectImage (uint8_t index)
 Select Image. More...
 
void NewImage (uint8_t index, uint16_t color)
 Create new image. More...
 

Public Attributes

DisplaySize_t _display_size
 
PAINT Paint
 
uint8_t ** image
 

Detailed Description

Representation of image canvas.

Constructor & Destructor Documentation

◆ DisplayCanvas()

DisplayCanvas::DisplayCanvas ( )

Member Data Documentation

◆ _display_size

DisplaySize_t DisplayCanvas::_display_size

◆ image

uint8_t** DisplayCanvas::image

◆ Paint

PAINT DisplayCanvas::Paint

The documentation for this class was generated from the following files: