Logo Search packages:      
Sourcecode: aisleriot version File versions  Download package

void ar_svg_render_cairo_sub ( ArSvg svg,
cairo_t *  cr,
const char *  node,
int  width,
int  height,
double  xoffset,
double  yoffset,
double  xzoom,
double  yzoom 
)

ar_svg_render_cairo_sub: : a ArSvg : a cairo_t : (allow-none): a SVG node ID (starting with "#"), or NULL : the width of the clip region : the height of the clip region : the x offset of the clip region : the y offset of the clip region : the x zoom factor : the y zoom factor

Paints the SVG element to , transformed by , and offset by and , clipped to and .

If is NULL, the whole image is rendered into tha clip region.

Definition at line 249 of file ar-svg.c.

Referenced by ar_svg_render_cairo().

{
  cairo_matrix_t matrix;

  g_return_if_fail (AR_IS_SVG (svg));

  if (svg->font_options) {
    cairo_set_antialias (cr, cairo_font_options_get_antialias (svg->font_options));

    cairo_set_font_options (cr, svg->font_options);
  }

  cairo_matrix_init_identity (&matrix);
  cairo_matrix_scale (&matrix, xzoom, yzoom);
  cairo_matrix_translate (&matrix, xoffset, yoffset);

  cairo_set_matrix (cr, &matrix);

  rsvg_handle_render_cairo_sub (RSVG_HANDLE (svg), cr, node);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index