touchgfx::AbstractPainterRGB565::mixColors() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXtouchgfx::AbstractPainterRGB565::mixColors()

touchgfx::AbstractPainterRGB565::mixColors() method

@fn FORCE_INLINE_FUNCTION uint16_t AbstractPainterRGB565::mixColors(uint16_t newpix, uint16_t bufpix, uint16_t alpha, uint16_t shift) Mix colors. Mix colors from a new pixel and a buffer pixel with the given alpha applied to the new pixel.

Syntax

FORCE_INLINE_FUNCTION uint16_t mixColors(uint16_t newpix,     uint16_t bufpix,     uint16_t alpha,     uint16_t shift);

Arguments

newpix

The newpix value.

bufpix

The bufpix value.

alpha

The alpha of the newpix.

shift

The shift, 8 if alpha is [0..255], 16 if alpha is [0..255*255].

Return value

The new color to write to the frame buffer.

References

LocationReferrerScopeText
AbstractPainterRGB565.hpp:67
FORCE_INLINE_FUNCTION uint16_t mixColors(uint16_t newpix, uint16_t bufpix, uint16_t alpha, uint16_t shift)
AbstractPainterRGB565.hpp:89
FORCE_INLINE_FUNCTION uint16_t mixColors(uint16_t R, uint16_t G, uint16_t B, uint16_t bufpix, uint16_t alpha, uint16_t shift)
AbstractPainterRGB565.hpp:69touchgfx::AbstractPainterRGB565::mixColors()touchgfx::AbstractPainterRGB565
return mixColors(newpix & RMASK, newpix & GMASK, newpix & BMASK, bufpix, alpha, shift);

Call Tree

Functions calling touchgfx::AbstractPainterRGB565::mixColors()
Functions called by touchgfx::AbstractPainterRGB565::mixColors()
touchgfx::AbstractPainterRGB565::mixColors()
Data read by touchgfx::AbstractPainterRGB565::mixColors()
touchgfx::AbstractPainterRGB565::mixColors()
Type of touchgfx::AbstractPainterRGB565::mixColors()
touchgfx::AbstractPainterRGB565::mixColors()
uint16_t
all items filtered out