# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 93
- 94
- 95
- 96
- 97
…
- 373
- 374

Returns
The image height in pixels.
Description
This function returns the height 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.
Parameters
Parameters Description
pImage Pointer to the image.
Function
GFX_STATUS GFX_ImageHeightGet(
GFX_RESOURCE_HDR *pImage)
1.6.1.1.5.4 GFX_ImagePartialDraw Function
This function renders a portion of an image to the frame buffer.
File
gfx_primitive.h
Syntax
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);
Returns
Status of the image rendering. GFX_STATUS_SUCCESS - image rendering done. GFX_STATUS_FAILURE - image
rendering failed.
Description
This function renders an image or a portion of an image to the frame buffer with the top, left corner of the image located at
destination_x, destination_y. To render a full image, source_x_offset, source_y_offset, width and height are set to all 0.
Using the actual image's width and height will also work if these are known. If they are not known, avoid the extra extra step
to get the image's width and height by assigning 0 to the parameters. Another way to render a full image is to use the
GFX_ImageDraw(). The image to be rendered is defined by the pointer pImage.
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
95

- 1
- 2
…
- 93
- 94
- 95
- 96
- 97
…
- 373
- 374