# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 235
- 236
- 237
- 238
- 239
…
- 373
- 374

// set the parameters of the partial image to be
// shown on the image
// get the large image dimensions
width = GFX_ImageWidthGet(pLargeImage);
height = GFX_ImageHeightGet(pLargeImage);
// get the offset so the middle of the large image with
// the width and height matching the object will be used.
xOffset = (width - objectWidth) >> 1;
yOffset = (height - objectHeight) >> 1;
GFX_GOL_PictureControlPartialSet( pPicture,
xOffset, yOffset,
objectWidth, objectHeight);
Parameters
Parameters Description
xOffset x offset of the smaller portion of a large image
yOffset y offset of the smaller portion of a large image
partialWidth width of the selected portion of the image
partialHeight height of the selected portion of the image
Function
void GFX_GOL_PictureControlPartialSet(
GFX_GOL_PICTURECONTROL *pObject,
uint16_t xOffset,
uint16_t yOffset,
uint16_t partialWidth,
uint16_t partialHeight)
1.6.2.1.8.7 GFX_GOL_PictureControlScaleSet Function
Sets the scale factor used to render the image used in the object.
File
gfx_gol_picture.h
Syntax
void GFX_GOL_PictureControlScaleSet(GFX_GOL_PICTURECONTROL pObject, int8_t scale);
Returns
None.
Description
This function sets the scale factor used to render the image used in the object using scale.
Remarks
None.
Preconditions
None.
Example
None.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
237

- 1
- 2
…
- 235
- 236
- 237
- 238
- 239
…
- 373
- 374