Picasso API
2.8
|
Functions | |
PEXPORT psx_result PICAPI | psx_svg_init (void) |
Initialze the library and load resources. More... | |
PEXPORT void PICAPI | psx_svg_shutdown (void) |
Release resources and shutdoen. More... | |
PEXPORT psx_svg *PICAPI | psx_svg_load (const char *file_name, psx_result *err_code) |
Create a new psx_svg object and load from file. More... | |
PEXPORT psx_svg *PICAPI | psx_svg_load_from_memory (const ps_byte *data, size_t length, psx_result *err_code) |
Create a new psx_svg object and load data from memory. More... | |
PEXPORT void PICAPI | psx_svg_destroy (psx_svg *doc) |
Destroy the psx_svg object and release resources. More... | |
PEXPORT void PICAPI | psx_svg_render_destroy (psx_svg_render *render) |
Destroy the psx_svg_render object and release resources. More... | |
PEXPORT psx_result PICAPI | psx_svg_render_draw (ps_context *ctx, const psx_svg_render *render) |
Draws an psx_svg_render object into the given context. More... | |
void psx_svg_destroy | ( | psx_svg * | doc | ) |
Destroy the psx_svg object and release resources.
doc | Pointer to an existing psx_svg object. |
psx_result psx_svg_init | ( | void | ) |
psx_svg * psx_svg_load | ( | const char * | file_name, |
psx_result * | err_code | ||
) |
Create a new psx_svg object and load from file.
file_name | The svg file path which will be loaded, which is encoded by utf8. |
err_code | Pointer to a value to receiving the result code. can be NULL. |
psx_svg * psx_svg_load_from_memory | ( | const ps_byte * | data, |
size_t | length, | ||
psx_result * | err_code | ||
) |
Create a new psx_svg object and load data from memory.
data | Pointer to data buffer in memeory. |
length | Data length bytes. |
err_code | Pointer to a value to receiving the result code. can be NULL. |
void psx_svg_render_destroy | ( | psx_svg_render * | render | ) |
Destroy the psx_svg_render object and release resources.
render | Pointer to an existing psx_svg_render object. |
psx_result PICAPI psx_svg_render_draw | ( | ps_context * | ctx, |
const psx_svg_render * | render | ||
) |
Draws an psx_svg_render object into the given context.
ctx | Pointer to an existing context object. |
render | Pointer to an existing psx_svg_render object. |
void psx_svg_shutdown | ( | void | ) |
Release resources and shutdoen.