Vault 7: Projects

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

uint16_t left,
uint16_t top,
uint16_t right,
uint16_t bottom,
uint16_t radius)
1.6.1.1.5 Image Rendering Functions
The following API are used to render images.
Functions
Name Description
GFX_ImageDraw This function renders an image to the frame buffer.
GFX_ImageHeaderGet This function fills the given bitmap header with the image's header
information.
GFX_ImageHeightGet This function returns the height of the given image.
GFX_ImagePartialDraw This function renders a portion of an image to the frame buffer.
GFX_ImageWidthGet This function returns the width of the given image.
1.6.1.1.5.1 GFX_ImageDraw Function
This function renders an image to the frame buffer.
File
gfx_primitive.h
Syntax
GFX_STATUS GFX_ImageDraw(uint16_t left, uint16_t top, GFX_RESOURCE_HDR * pImage);
Returns
Status of the image rendering. GFX_STATUS_SUCCESS - image rendering done. GFX_STATUS_FAILURE - image
rendering failed.
Description
This function renders an image to the frame buffer with the left-top corner of the image located at given left, top parameters.
The rendering of this shape becomes undefined when any one of the following is true:
left, top pixel position falls outside the frame buffer.
pointer is not properly initialized to a GFX_RESOURCE_HDR object.
Preconditions
None.
Example
// assume the backgroundImage has dimension of 320x240 pixels.
GFX_RESOURCE_HDR *pBackgroundImage;
pBackgroundImage = (GFX_RESOURCE_HDR *)&backgroundImage;
// Render the image starting from (10,10) x,y position
// corner of the image
GFX_ImageDraw( 10, 10,
pBackgroundImage);
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
93

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh