Vault 7: Projects

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

Parameters
Parameters Description
destination_x Horizontal starting position of the image.
destination_y Vertical starting position of the image.
source_x_offset Horizontal offset in pixels of the starting position of the partial
area of the image to be rendered. Set to 0 along with
source_y_offset when rendering the full image.
source_y_offset Vertical offset in pixels of the starting position of the partial
area of the image to be rendered. Set to 0 along with
source_x_offset when rendering the full
image.GFX_ImageDraw
source_width The width of the partial area of the image to be rendered. Set
to 0 along with source_height when rendering the full image.
source_height The height of the partial area of the image to be rendered.
Set to 0 along with source_width when rendering the full
image.
pImage Pointer to the image to be rendered.
Function
GFX_STATUS GFX_ImagePartialDraw(
uint16_t destination_x,
uint16_t destination_y,
uint16_t source_x_offset,
uint16_t source_y_offset,
uint16_t source_width,
uint16_t source_height,
GFX_RESOURCE_HDR *pImage)
1.6.1.1.5.5 GFX_ImageWidthGet Function
This function returns the width of the given image.
File
gfx_primitive.h
Syntax
int16_t GFX_ImageWidthGet(GFX_RESOURCE_HDR * pImage);
Returns
The image width in pixels.
Description
This function returns the width of the given image in pixels. This function results in an undefined behavior if the pointer to the
image is invalid.
This function return value is undefined if the given pointer does not point to a valid image resource.
Preconditions
None.
Example
None.
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
97

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh