Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

1.6.3.1.3.4 GFX_PixelArrayGet Function
Reads an array of pixels from the frame buffer.
File
drv_gfx_display.h
Syntax
uint16_t GFX_PixelArrayGet(uint16_t x, uint16_t y, GFX_COLOR * pPixel, uint16_t numPixels);
Returns
Returns the actual number of pixels retrieved.
Description
This retrieves an array of pixels from the display buffer starting from the location defined by x and y with the length defined
by numPixels. All the retrieved pixels must be inside the display buffer.
The function behavoir will be undefined is one of the following is true:
1. x and y location is outside the frame buffer.
2. x + numPixels exceeds the frame buffer.
3. Depending on how the frame buffer memory is arranged x + numPixels exceeds the width of the frame buffer.
Preconditions
None.
Example
None.
Parameters
Parameters Description
x Horizontal starting position of the array of pixels.
y Vertical starting position of the array of pixels.
pPixel pointer to the retrieved array of pixel data.
numPixels length of pixels to be retrieved.
Function
uint16_t GFX_PixelArrayGet(
uint16_t x,
uint16_t y,
GFX_COLOR *pPixel,
uint16_t numPixels)
1.6.3.1.3.5 GFX_PixelArrayPut Function
Renders an array of pixels to the frame buffer.
File
drv_gfx_display.h
Syntax
uint16_t GFX_PixelArrayPut(uint16_t x, uint16_t y, GFX_COLOR * pPixel, uint16_t numPixels);
Returns
Returns the number of pixels rendered.
1.6 Library Interface MLA - Graphics Library Help Graphics Driver Layer
359

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh