Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Syntax
GFX_COLOR GFX_PixelGet(uint16_t x, uint16_t y);
Returns
The color of the specified pixel.
Description
This routine gets the pixel on the given position.
If position is not on the frame buffer, then the behavior is undefined.
Preconditions
None.
Example
void FillAreaWithBlue(
int left,
int top,
int right,
int bottom,
GFX_COLOR maskColor)
{
int x, y;
// assume BLUE is color blue
GFX_ColorSet(BLUE);
for(y = top; y < bottom + 1; y++)
for(x = left; x < right + 1; x++)
{
// change only the pixel when pixel color is
// maskColor
if (GFX_PixelGet(x, y) == maskColor)
GFX_PixelPut(x, y);
}
}
Parameters
Parameters Description
x Horizontal position of the pixel.
y Vertical position of the pixel.
Function
GFX_COLOR GFX_PixelGet(
uint16_t x,
uint16_t y)
1.6.3.1.3.7 GFX_PixelPut Function
Draw the pixel on the given position.
File
drv_gfx_display.h
Syntax
GFX_STATUS GFX_PixelPut(uint16_t x, uint16_t y);
Returns
Status of the character rendering. (see GFX_STATUS).
1.6 Library Interface MLA - Graphics Library Help Graphics Driver Layer
361
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf