# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 51
- 52
- 53
- 54
- 55
…
- 373
- 374

3. Set the fill style to one of the gradient fill types (GFX_FillStyleSet())
4. Call the specific polygon fill function
• GFX_RectangleFillDraw()
• GFX_RectangleRoundFillDraw()
• GFX_BarDraw()
• GFX_CircleFillDraw()
The following functions renders the same shapes:
• GFX_RectangleRoundDraw(x, y, x, y, radius) is equivalent to GFX_CircleDraw(x, y, radius).
• GFX_RectangleRoundFillDraw(x, y, x, y, radius) is equivalent to GFX_CircleFillDraw(x, y, radius).
• GFX_RectangleFillDraw(x1, y1, x2, y2) is equivalent to GFX_BarDraw(x1, y1, x2, y2).
Remarks
• Alpha blended unfilled polygons are not yet supported.
• Anti-aliased unfilled polygons are not yet supported.
• Alpha blended, gradient fills are not yet supported.
• Background is not needed when using gradient fills.
1.4.2.1.3 Text Rendering and Font Features
This section describes how to render text and strings and other features that are available for font resources.
1.4.2.1.3.1 Text Rendering
This section describes how to render text and strings.
Description
Text rendering in the Graphics Library requires a font table. The font table is considered one of the resources that is used in
the library (see GFX_RESOURCE_FONT of the GFX_RESOURCE_HDR structure).
Once the font resource is available, text rendering can be performed by one of the following functions:
• GFX_TextCharDraw() - Use this to render a single character.
• GFX_TextStringDraw() - Use this to render a string of characters.
• GFX_TextStringBoxDraw() - Use this to render formatted string of characters.
Character Rendering
To render a character:
1. Set the color (GFX_ColorSet())
2. Set the font resource to use (GFX_FontSet())
3. Set the location where the character will be rendered (GFX_TextCursorPositionSet())
4. Render the character (GFX_TextCharDraw())
String Rendering
To render a string:
1. Set the color (GFX_ColorSet())
2. Set the font resource to use (GFX_FontSet())
3. Render the string (GFX_TextStringDraw())
1.4 Using The Library MLA - Graphics Library Help How the Library Works
53

- 1
- 2
…
- 51
- 52
- 53
- 54
- 55
…
- 373
- 374