cairo::svg_surface
The SVG surface is used to render cairo graphics to SVG files and is a multi-page vector surface backend.
Index
Functions
fn create(filename: str, width_in_points: f64, height_in_points: f64) (*cairo::surface_t | cairo::error);
Functions
fn create
fn create(filename: str, width_in_points: f64, height_in_points: f64) (*cairo::surface_t | cairo::error);
Creates a SVG surface of the specified size in points to be written to filename.
Parameters
- filename: a filename for the SVG output
- width_in_points: width of the surface, in points (1 point == 1/72.0 inch)
- height_in_points: height of the surface, in points (1 point == 1/72.0 inch)
Returns the newly created surface. The caller owns the surface and should call cairo::surface::destroy when done with it. If an error such as out of memory occurs, cairo::error is returned instead.