Function
Vipssvgload
Declaration [src]
int
vips_svgload (
const char* filename,
VipsImage** out,
...
)
Description [src]
Optional arguments:
dpi
: %gdouble, render at this DPIscale
: %gdouble, scale render by this factorunlimited
: %gboolean, allow SVGs of any size
Render a SVG file into a VIPS image. Rendering uses the librsvg library and should be fast.
Use dpi
to set the rendering resolution. The default is 72. You can also
scale the rendering by scale
.
This function only reads the image header and does not render any pixel data. Rendering occurs when pixels are accessed.
SVGs larger than 10MB are normally blocked for security. Set unlimited
to
allow SVGs of any size.
See also: vips_image_new_from_file().
This function is not directly available to language bindings |
Parameters
filename |
const char* |
File to load. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
out |
VipsImage |
Output image. |
|
The argument will be set by the function. | |
The called function takes ownership of the data, and is responsible for freeing it. | |
... |
|
|