[cairo] How to save a block in a GdkPixmap and restore with Cairo?
Behdad Esfahbod
behdad at behdad.org
Wed Dec 20 14:38:14 PST 2006
On Thu, 2006-12-14 at 08:26 -0500, ?? wrote:
> Hello, everyone,
>
> Now I have a gdkpixmap, and want to save a small block in it,
> and then restore this area at another time.
>
> How can I do with Cairo?
If you want to draw to the GdkPixmap, use gdk_cairo_create(pixmap).
If you want to draw from the GdkPixmap, use gdk_cairo_create(pixmap) to
get a cairo_t, and use cairo_get_target() to get its surface and use
with cairo_set_source_surface().
Cheers,
behdad
> Anyone has ideas? Thanks in advance.
>
>
>
> ---------------------------------------
>
> Best Wishes!
>
>
>
> Zhang Hui
>
> Email: Hui003.Zhang at samsung.com
>
> Phone: 86-25-58748787-8215
>
> Samsung Electronics(China) R&D Center
>
> ---------------------------------------
>
>
>
>
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo
mailing list