Vault 7: Projects

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

Description
This renders an array of pixels starting from the location defined by x and y with the length defined by numPixels. The
rendering will be performed in the increasing x direction. If the length is more than 1 line of the screen, the rendering may
continue to the next line depending on the way the memory of the display controller is arranged. For example, in some
display controller, if the parameters are GFX_PixelArrayPut(0, 0, ptrToArray, (320*240)); The array is rendered on all the
pixels of a QVGA screen.
This function also supports transparent color feature. When the feature is enabled the pixel with the transparent color will not
be rendered and will be skipped. x and y must define a location within the display buffer.
Preconditions
None.
Example
void RedBarDraw(
int left,
int top,
int right,
int bottom)
{
int x, y, length;
GFX_COLOR array;
// assume RED is a red color
length = (right - left + 1);
// prepare a line of RED pixels
for(x = 0; x < length; x++)
{
array[x] = RED;
}
for(y = top; y < bottom + 1; y++)
{
GFX_PixelArrayPut(left, y, array, length);
}
}
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 array of pixel data.
numPixels length of pixel array to render.
Function
uint16_t GFX_PixelArrayPut(
uint16_t x,
uint16_t y,
GFX_COLOR *pPixel,
uint16_t numPixels)
1.6.3.1.3.6 GFX_PixelGet Function
Gets color of the pixel on the given position.
File
drv_gfx_display.h
1.6 Library Interface MLA - Graphics Library Help Graphics Driver Layer
360

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh