Max 5 API Reference
![]() |
Functions | |
t_jsvg * | jsvg_create_from_file (const char *filename, short path) |
Read an SVG file, return a t_jsvg object. | |
t_jsvg * | jsvg_create_from_resource (const void *moduleRef, const char *resname) |
Read an SVG file from a resource. | |
t_jsvg * | jsvg_create_from_xmlstring (const char *svgXML) |
Create an SVG object from a string containing the SVG's XML. | |
void | jsvg_get_size (t_jsvg *svg, double *width, double *height) |
Retrieve the size of an SVG object. | |
void | jsvg_destroy (t_jsvg *svg) |
Free a t_jsvg object. | |
void | jsvg_render (t_jsvg *svg, t_jgraphics *g) |
Render an SVG into a graphics context. |
t_jsvg* jsvg_create_from_file | ( | const char * | filename, | |
short | path | |||
) |
Read an SVG file, return a t_jsvg object.
filename | The name of the file to read. | |
path | The path id of the file to read. |
t_jsvg* jsvg_create_from_resource | ( | const void * | moduleRef, | |
const char * | resname | |||
) |
Read an SVG file from a resource.
moduleRef | The external's moduleRef. | |
resname | The name of the SVG resource. |
t_jsvg* jsvg_create_from_xmlstring | ( | const char * | svgXML | ) |
Create an SVG object from a string containing the SVG's XML.
svgXML | The SVG source. |
void jsvg_get_size | ( | t_jsvg * | svg, | |
double * | width, | |||
double * | height | |||
) |
Retrieve the size of an SVG object.
svg | An SVG object. | |
width | The address of a variable that will be set to the width upon return. | |
height | The address of a variable that will be set to the width upon return. |
void jsvg_render | ( | t_jsvg * | svg, | |
t_jgraphics * | g | |||
) |
Render an SVG into a graphics context.
svg | The SVG object to render. | |
g | The graphics context in which to render. |