fsChartsGetPageImage

The fsChartsGetPageImage function fetches the image of a chart page and uploads it into a NanoVG (or LLVG) image which can be rendered directly using either of the APIs.

 

Syntax
bool fsChartsGetPageImage(
    FsContext ctx,
    const char* url,
    FsChartsPageImageCallback callback,
    void* userData
    );

 

Members
Parameters Description
ctx The FsContext of the gauge invoking this function.
url The URL of the chart page to fetch, obtained from an FsChartPage.
callback The callback invoked when the request completes.
userData A user-defined pointer for data that is to be returned as part of the callback (or NULL if not required).

Return Values

The function returns False if something has gone wrong, otherwise it returns True.

 

Remarks

N/A

 

Related Topics

  1. WebAssembly
  2. Charts API