|
◆ vkvg_surface_create_from_svg_fragment()
VkvgSurface vkvg_surface_create_from_svg_fragment |
( |
VkvgDevice |
dev, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
char * |
svgFragment |
|
) |
| |
Create a new vkvg surface by parsing a string with a valid SVG fragment passed as argument. - Parameters
-
dev | The vkvg device used for creating the surface. |
width | force the rendering width, if 0 autosize from svg. |
height | force the rendering height, if 0 autosize from svg. |
svgFragment | The SVG fragment to parse. |
- Returns
- The new vkvg surface with the parsed SVG fragment as content, or null if an error occured.
|