MicroVG¶
Principle¶
MicroVG library is an extension of the MicroUI library and provides vector drawing capabilities.
Architecture¶
MicroVG library is the entry point to perform some vectorial drawings on display. This library contains only a minimal set of basic APIs. As a result, high-level libraries can be used to have more expressive power. In addition to this restricted set of APIs, the MicroVG implementation has been designed to minimize the EDC, BON, and MicroUI footprint.
Native Calls¶
Like MicroUI, the MicroVG implementation for MicroEJ uses native methods to perform some actions (manipulate matrices, perform drawings, decode and render fonts, etc.). The library implementation has been designed not to block native methods (wait until the end of the drawing, etc.), which can lock the complete MicroEJ Core Engine execution.
Refer to the MicroUI implementation to have more details about the native calls.
Installation¶
The MicroVG library is an additional module. In the VEE Port configuration’s module description file, add the VG Pack dependency:
<dependency org="com.microej.pack.vg" name="vg-pack" rev="1.2.1" conf="default->default"/>
The VG Pack will be automatically available after a VEE Port rebuild.