Fork of Silabs MemoryLCD library
Dependents: demoUI whrmDemoUI Host_Software_MAX32664GWEB_HR_EXTENDED Host_Software_MAX32664GWEC_SpO2_HR-_EXTE ... more
BufferedDisplay Class Reference
Framebuffered version of GraphicsDisplay. More...
#include <BufferedDisplay.h>
Inherits GraphicsDisplay.
Inherited by LS013B7DH03.
Public Member Functions | |
virtual void | pixel (int x, int y, int colour) |
Override of GraphicsDisplay pixel() function to set a pixel in the buffer. | |
void | showBMP (const uint8_t *bitmap, const uint32_t bmpWidth, const uint32_t bmpHeight, const uint32_t startX, const uint32_t startY) |
Function to move bitmap into frame buffer. |
Detailed Description
Framebuffered version of GraphicsDisplay.
This has been implemented as part of the MemoryLCD library.
Definition at line 43 of file BufferedDisplay.h.
Member Function Documentation
void pixel | ( | int | x, |
int | y, | ||
int | colour | ||
) | [virtual] |
Override of GraphicsDisplay pixel() function to set a pixel in the buffer.
Override of GraphicsDisplay's pixel()
- Parameters:
-
x Zero-based x-axis index of pixel to set. 0 = leftmost. y Zero-based y-axis index of pixel to set. 0 = topmost. colour Colour value to set pixel to. In this implementation, only LSB is taken into account.
Definition at line 47 of file BufferedDisplay.cpp.
void showBMP | ( | const uint8_t * | bitmap, |
const uint32_t | bmpWidth, | ||
const uint32_t | bmpHeight, | ||
const uint32_t | startX, | ||
const uint32_t | startY | ||
) |
Function to move bitmap into frame buffer.
Function to move bitmap into frame buffer arguments: * bitmap: pointer to uint8 array containing horizontal pixel data * bmpWidth: width of the bitmap in pixels (must be multiple of 8) * bmpHeight: height of the bitmap in pixels * startX: starting position to apply bitmap in horizontal direction (0 = leftmost) (must be multiple of 8) * startY: starting position to apply bitmap in vertical direction (0 = topmost)
- Parameters:
-
bitmap pointer to uint8 array containing horizontal pixel data bmpWidth width of the bitmap in pixels (must be multiple of 8) bmpHeight height of the bitmap in pixels startX starting position to apply bitmap in horizontal direction (0 = leftmost) (must be multiple of 8) startY starting position to apply bitmap in vertical direction (0 = topmost)
Definition at line 111 of file BufferedDisplay.cpp.
Generated on Thu Jul 14 2022 00:59:54 by 1.7.2