[prev in list] [next in list] [prev in thread] [next in thread]
List: cairo
Subject: Re: [cairo] How to save a block in a GdkPixmap and restore with Cairo?
From: Behdad Esfahbod <behdad () behdad ! org>
Date: 2006-12-20 22:38:14
Message-ID: 1166654294.12056.13.camel () home
[Download RAW message or body]
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@samsung.com
>
> Phone: 86-25-58748787-8215
>
> Samsung Electronics(China) R&D Center
>
> ---------------------------------------
>
>
>
>
>
> _______________________________________________
> cairo mailing list
> cairo@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
_______________________________________________
cairo mailing list
cairo@cairographics.org
http://cairographics.org/cgi-bin/mailman/listinfo/cairo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic