|
◆ vkvg_surface_create_from_svg()
VkvgSurface vkvg_surface_create_from_svg |
( |
VkvgDevice |
dev, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
const char * |
svgFilePath |
|
) |
| |
Create a new vkvg surface by loading a SVG file. - Parameters
-
dev | The vkvg Device used for creating the surface. |
svgFilePath | The path of the SVG file to load. |
width | force the rendering width, if 0 autosize from svg. |
height | force the rendering height, if 0 autosize from svg. |
- Returns
- The new vkvg surface with the loaded SVG drawing as content, or null if an error occured.
|