# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 232
- 233
- 234
- 235
- 236
…
- 373
- 374

Function
GFX_GOL_TRANSLATED_ACTION GFX_GOL_PictureControlActionGet(
void *pObject,
GFX_GOL_MESSAGE *pMessage);
1.6.2.1.8.4 GFX_GOL_PictureControlCreate Function
This function creates a GFX_GOL_PICTURECONTROL object with the parameters given. It automatically attaches the new
object into a global linked list of objects and returns the address of the object.
File
gfx_gol_picture.h
Syntax
GFX_GOL_PICTURECONTROL * GFX_GOL_PictureControlCreate(uint16_t ID, uint16_t left, uint16_t
top, uint16_t right, uint16_t bottom, uint16_t state, int8_t scaleFactor, GFX_RESOURCE_HDR
* pImage, GFX_GOL_OBJ_SCHEME * pScheme);
Returns
Pointer to the newly created object.
Description
This function creates a GFX_GOL_PICTURECONTROL object with the parameters given. It automatically attaches the new
object into a global linked list of objects and returns the address of the object.
This function returns the pointer to the newly created object. If the object is not successfully created, it returns NULL.
The object allows creation with the image set to NULL. In this case, nothing will be drawn when the object is set to be drawn
and the frame is not enabled (See GFX_GOL_PICTURECONTROL_FRAME_STATE). If the frame is enabled, then only the
frame will be drawn.
When the assigned image's dimension is larger than the dimension of the object, partial image parameters will be set in such
a way that the upper left most corner of the image that has the same dimension as the object will be used in the object. This
is the default behavior.
The partial parameters can be modified by calling the GFX_GOL_PictureControlPartialSet() function with the desired parial
image parameters. See GFX_ImagePartialDraw() for details on the partial image rendering.
The behavior of GFX_GOL_PictureControlCreate() will be undefined if one of the following is true:
• left >= right
• top >= bottom
• pScheme is not pointing to a GFX_GOL_OBJ_SCHEME
• pImage is not pointing to a GFX_RESOURCE_HDR.
Preconditions
None.
Example
None.
Parameters
Parameters Description
ID Unique user defined ID for the object instance.
left Left most position of the object.
top Top most position of the object.
right Right most position of the object.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
234

- 1
- 2
…
- 232
- 233
- 234
- 235
- 236
…
- 373
- 374