[cairo] drawing a subimage
Christian Biesinger
cbiesinger at web.de
Sun May 7 15:25:50 PDT 2006
Jeff Bezanson wrote:
> cairo_rectangle(cr, 0, 0, w, h);
> cairo_clip(cr);
> cairo_set_source(cr, pt);
> cairo_matrix_init_translate(&matrix, xoffs, yoffs);
> cairo_pattern_set_matrix(pt, &matrix);
> cairo_paint(cr);
Couldn't you just fill a rectangle? E.g.:
cairo_set_source(cr, pt);
cairo_matrix_init_translate(&matrix, xoffs, yoffs);
cairo_pattern_set_matrix(pt, &matrix);
cairo_rectangle(cr, 0, 0, w, h);
cairo_fill(cr);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4762 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060508/1949af99/smime.bin
More information about the cairo
mailing list