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
ParametersDescription
ctxThe FsContext of the gauge invoking this function.
urlThe URL of the chart page to fetch, obtained from an FsChartPage.
callbackThe callback invoked when the request completes.
userDataA 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