touchgfx::HAL::blitCopy() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

touchgfx::HAL::blitCopy() method

@fn virtual void HAL::blitCopy(const uint16_t* pSrc, uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint16_t srcWidth, uint8_t alpha, bool hasTransparentPixels); Blits a 2D source-array to the frame buffer performing alpha-blending. Blits a 2D source-array to the frame buffer performing alpha-blending(and transparency keying) as specified.

Syntax

virtual void blitCopy(const uint16_t* pSrc,     uint16_t x,     uint16_t y,     uint16_t width,     uint16_t height,     uint16_t srcWidth,     uint8_t alpha,     bool hasTransparentPixels);

Arguments

pSrc

The source-array pointer (points to first value to copy)

x

The destination x coordinate on the frame buffer.

y

The destination y coordinate on the frame buffer.

width

The width desired area of the source 2D array.

height

The height of desired area of the source 2D array.

srcWidth

The distance (in elements) from first value of first line, to first value of second line (the source 2D array width)

alpha

The alpha value to use for blending (255 = solid, no blending)

hasTransparentPixels

If true, this data copy contains transparent pixels and require hardware support for that to be enabled.

Notes

Alpha=255 is assumed "solid" and shall be used if HAL does not support BLIT_OP_COPY_WITH_ALPHA.

References

LocationText
HAL.hpp:422
virtual void blitCopy(const uint16_t* pSrc, uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint16_t srcWidth, uint8_t alpha, bool hasTransparentPixels);