cairo::svg_surface+x86_64 +linux

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[link]

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

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.