Globals
The global touchgfx namespace.
All TouchGFX framework enums, Type definitions, global functions and global variables are placed in this namespace.
Functions
alphaBlend
FORCE_INLINE_FUNCTION uint16_t alphaBlend | ( | uint16_t | newpix , | ||
uint16_t | bufpix , | ||||
uint8_t | alpha | ||||
) |
Mix colors from a new pixel and a buffer pixel with the given alpha applied to the new pixel, and the inverse alpha applied to the buffer pixel.
newpix | The new pixel value. |
bufpix | The buffer pixel value. |
alpha | The alpha to apply to the new pixel. |
The result of blending the two colors into a new color.
Location: touchgfx/hal/PaintRGB565Impl.hpp
alphaBlend
FORCE_INLINE_FUNCTION uint16_t alphaBlend | ( | uint16_t | R , | ||
uint16_t | G , | ||||
uint16_t | B , | ||||
uint16_t | bufpix , | ||||
uint8_t | alpha | ||||
) |
Mix colors from a new pixel and a buffer pixel with the given alpha applied to the new pixel, and the inverse alpha applied to the buffer pixel.
R | The red color (0-31 shifted into RMASK). |
G | The green color (0-63 shifted into GMASK). |
B | The blue color (0-31 shifted into BMASK). |
bufpix | The buffer pixel value. |
alpha | The alpha of the R,G,B. |
The result of blending the two colors into a new color.
Location: touchgfx/hal/PaintRGB565Impl.hpp
alphaBlend24bit
FORCE_INLINE_FUNCTION uint16_t alphaBlend24bit | ( | uint8_t | R , | ||
uint8_t | G , | ||||
uint8_t | B , | ||||
uint16_t | bufpix , | ||||
uint8_t | alpha | ||||
) |
Mix colors from 5/6/5-bit R,G,B and a buffer pixel with the given alpha applied to the new RGB, and the inverse alpha applied to the buffer pixel.
R | The red color RRRRR000. |
G | The green color GGGGGG00. |
B | The blue color BBBBB000. |
bufpix | The buffer pixel value. |
alpha | The alpha of the R,G,B. |
The result of blending the two colors into a new color.
Location: touchgfx/hal/PaintRGB565Impl.hpp
getNativeColor
FORCE_INLINE_FUNCTION uint16_t getNativeColor | ( | colortype | color | ) | |
getNativeColorFromRGB
static FORCE_INLINE_FUNCTION uint16_t getNativeColorFromRGB | ( | uint8_t | red , | ||
uint8_t | green , | ||||
uint8_t | blue | ||||
) |
Generates a color representation to be used on the LCD, based on 24 bit RGB values.
red | Value of the red part (0-255). |
green | Value of the green part (0-255). |
blue | Value of the blue part (0-255). |
The color representation depending on LCD color format.
Location: touchgfx/hal/PaintRGB565Impl.hpp
lineFromARGB8888
void lineFromARGB8888 | ( | uint16_t *const | ptr , | ||
const uint32_t *const | data , | ||||
const unsigned | count , | ||||
const uint8_t | alpha | ||||
) |
Draw a horizontal line (one pixel high) using pixels from the given data pointer (ARGB8888 data).
ptr | The pointer to the position in the framebuffer. |
data | The ARGB8888 data. |
count | Number of pixels to draw. |
alpha | The alpha. |
Location: touchgfx/hal/PaintRGB565Impl.hpp
lineFromColor
void lineFromColor | ( | uint16_t *const | ptr , | ||
const unsigned | count , | ||||
const uint32_t | color , | ||||
const uint8_t | alpha , | ||||
const uint32_t | color565 | ||||
) |
Draw a horizontal line (one pixel high) using the given color.
ptr | The pointer to the position in the framebuffer. |
count | Number of pixels to draw. |
color | The color. |
alpha | The alpha. |
color565 | The color565 (same as 'color' but in native format for speed reasons). |
Location: touchgfx/hal/PaintRGB565Impl.hpp
lineFromL8ARGB8888
void lineFromL8ARGB8888 | ( | uint16_t *const | ptr , | ||
const uint8_t *const | data , | ||||
const unsigned | count , | ||||
const uint8_t | alpha | ||||
) |
Draw a horizontal line (one pixel high) using pixels from the given data pointer (L8ARGB8888 data).
ptr | The pointer to the position in the framebuffer. |
data | The palette indices. |
count | Number of pixels to draw. |
alpha | The alpha. |
Location: touchgfx/hal/PaintRGB565Impl.hpp
lineFromL8RGB888
void lineFromL8RGB888 | ( | uint16_t *const | ptr , | ||
const uint8_t *const | data , | ||||
const unsigned | count , | ||||
const uint8_t | alpha | ||||
) |
Draw a horizontal line (one pixel high) using pixels from the given data pointer (L8RGB888 data).
ptr | The pointer to the position in the framebuffer. |
data | The palette indices. |
count | Number of pixels to draw. |
alpha | The alpha. |
Location: touchgfx/hal/PaintRGB565Impl.hpp
lineFromRGB565
void lineFromRGB565 | ( | uint16_t *const | ptr , | ||
const uint16_t *const | data , | ||||
const unsigned | count , | ||||
const uint8_t | alpha | ||||
) |
Draw a horizontal line (one pixel high) using pixels from the given data pointer (RGB565 data).
ptr | The pointer to the position in the framebuffer. |
data | The RGB565 data. |
count | Number of pixels to draw. |
alpha | The alpha. |
Location: touchgfx/hal/PaintRGB565Impl.hpp