Skip to content

System.Library.getLocalImage

Description

Get images from the local library.

Grammar

System.Library.getLocalImage(path:string): Promise<string>

  • Parameter

    path - The path of the image

  • Return

    base64

Code Example

Obtain"Sun. svg" from the local library under "Scenery".

const base64 = await System.Library.getLocalImage('Scenery.Sun.svg');
console.log(base64)