주요 내용으로 건너뛰기

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_tnewpix ,
uint16_tbufpix ,
uint8_talpha
)

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.

Parameters:
newpixThe new pixel value.
bufpixThe buffer pixel value.
alphaThe alpha to apply to the new pixel.
Returns:

The result of blending the two colors into a new color.

Location: touchgfx/hal/PaintRGB565Impl.hpp

alphaBlend

FORCE_INLINE_FUNCTION uint16_t alphaBlend(uint16_tR ,
uint16_tG ,
uint16_tB ,
uint16_tbufpix ,
uint8_talpha
)

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.

Parameters:
RThe red color (0-31 shifted into RMASK).
GThe green color (0-63 shifted into GMASK).
BThe blue color (0-31 shifted into BMASK).
bufpixThe buffer pixel value.
alphaThe alpha of the R,G,B.
Returns:

The result of blending the two colors into a new color.

Location: touchgfx/hal/PaintRGB565Impl.hpp

alphaBlend24bit

FORCE_INLINE_FUNCTION uint16_t alphaBlend24bit(uint8_tR ,
uint8_tG ,
uint8_tB ,
uint16_tbufpix ,
uint8_talpha
)

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.

Parameters:
RThe red color RRRRR000.
GThe green color GGGGGG00.
BThe blue color BBBBB000.
bufpixThe buffer pixel value.
alphaThe alpha of the R,G,B.
Returns:

The result of blending the two colors into a new color.

Location: touchgfx/hal/PaintRGB565Impl.hpp

getNativeColor

FORCE_INLINE_FUNCTION uint16_t getNativeColor(colortypecolor)

Generates a color representation to be used on the LCD, based on 24 bit RGB values.

Parameters:
colorThe color.
Returns:

The color representation depending on LCD color format.

Location: touchgfx/hal/PaintRGB565Impl.hpp

getNativeColorFromRGB

static FORCE_INLINE_FUNCTION uint16_t getNativeColorFromRGB(uint8_tred ,
uint8_tgreen ,
uint8_tblue
)

Generates a color representation to be used on the LCD, based on 24 bit RGB values.

Parameters:
redValue of the red part (0-255).
greenValue of the green part (0-255).
blueValue of the blue part (0-255).
Returns:

The color representation depending on LCD color format.

Location: touchgfx/hal/PaintRGB565Impl.hpp

lineFromARGB8888

void lineFromARGB8888(uint16_t *constptr ,
const uint32_t *constdata ,
const unsignedcount ,
const uint8_talpha
)

Draw a horizontal line (one pixel high) using pixels from the given data pointer (ARGB8888 data).

Parameters:
ptrThe pointer to the position in the framebuffer.
dataThe ARGB8888 data.
countNumber of pixels to draw.
alphaThe alpha.

Location: touchgfx/hal/PaintRGB565Impl.hpp

lineFromColor

void lineFromColor(uint16_t *constptr ,
const unsignedcount ,
const uint32_tcolor ,
const uint8_talpha ,
const uint32_tcolor565
)

Draw a horizontal line (one pixel high) using the given color.

Parameters:
ptrThe pointer to the position in the framebuffer.
countNumber of pixels to draw.
colorThe color.
alphaThe alpha.
color565The color565 (same as 'color' but in native format for speed reasons).

Location: touchgfx/hal/PaintRGB565Impl.hpp

lineFromL8ARGB8888

void lineFromL8ARGB8888(uint16_t *constptr ,
const uint8_t *constdata ,
const unsignedcount ,
const uint8_talpha
)

Draw a horizontal line (one pixel high) using pixels from the given data pointer (L8ARGB8888 data).

Parameters:
ptrThe pointer to the position in the framebuffer.
dataThe palette indices.
countNumber of pixels to draw.
alphaThe alpha.

Location: touchgfx/hal/PaintRGB565Impl.hpp

lineFromL8RGB888

void lineFromL8RGB888(uint16_t *constptr ,
const uint8_t *constdata ,
const unsignedcount ,
const uint8_talpha
)

Draw a horizontal line (one pixel high) using pixels from the given data pointer (L8RGB888 data).

Parameters:
ptrThe pointer to the position in the framebuffer.
dataThe palette indices.
countNumber of pixels to draw.
alphaThe alpha.

Location: touchgfx/hal/PaintRGB565Impl.hpp

lineFromRGB565

void lineFromRGB565(uint16_t *constptr ,
const uint16_t *constdata ,
const unsignedcount ,
const uint8_talpha
)

Draw a horizontal line (one pixel high) using pixels from the given data pointer (RGB565 data).

Parameters:
ptrThe pointer to the position in the framebuffer.
dataThe RGB565 data.
countNumber of pixels to draw.
alphaThe alpha.

Location: touchgfx/hal/PaintRGB565Impl.hpp