Class Cairo.SVGSurface

Inheritance graph
Cairo.Surface Cairo.SVGSurface
Description

Rendering SVG documents


Inherit Surface

inherit Surface : Surface


Method create

Cairo.SVGSurface Cairo.SVGSurface(string|Stdio.OutputStreamMixin|zero svg_file, float|int width_in_points, float|int height_in_points)

Description

Creates a SVG surface of the specified size in points to be written to svg_file.

Parameter svg_file

a filename for the SVG output (must be writable), or a Stdio.OutputStreamMixin to write the output to. 0 may be used to specify no output. This will generate a SVG surface that may be queried and used as a source, without generating a temporary file.

Parameter width_in_points

width of the surface, in points (1 point == 1/72.0 inch)

Parameter height_in_points

height of the surface, in points (1 point == 1/72.0 inch)