3.2. MicroVG Library

3.2.1. Vector Graphics Description

Vector graphics are drawings/images composed of geometric shapes where each shape is defined by:

  • instructions (such as line_to or curve_to),
  • coordinates (parameters of the instructions),
  • styles (plain color with or without transparency, gradients, pattern),

Vector graphics have the advantage over raster graphics in that they can be transformed without loss of quality.

Vector graphics are commonly used in vector fonts (i.e., TrueType), SVG files, and Android VectorImage files.

They are intrinsically different from the more common raster graphics file formats such as BMP, JPEG, or PNG.

They allow rendering complex objects with a constant amount of data.

3.2.2. Aim of the Library

The MicroVG Foundation Library provides an abstraction layer above the VG Lite functionalities of the platform. The documentation of the MicroVG Foundation Library is available at https://docs.microej.com/en/latest/ApplicationDeveloperGuide/UI/MicroVG/index.html.

3.2.3. Importing the Library

The library can be retrieved by adding the following dependency to your module.ivy:

<dependency org="ej.api" name="microvg" rev="1.1.0" conf="provided->*" />

Note

The MicroVG library is a foundation library. The platform provides it.