Restricts the generated PostSript file to level. See cairo_ps_get_levels() for a list of available level values that can be used here.

cairo_ps_surface_restrict_to_level(surface, level)

Arguments

surface

[cairo_surface_t *] a PostScript #cairo_surface_t

level

[int] PostScript level

Details

This function should only be called before any drawing operations have been performed on the given surface. The simplest way to do this is to call this function immediately after creating the surface.

Since: 1.6

C function prototype: void cairo_ps_surface_restrict_to_level (cairo_surface_t *surface, cairo_ps_level_t level)

See also