[cairo] A newbie question on surfaces
cworth at cworth.org
Wed Oct 17 09:57:43 PDT 2007
On Tue, 16 Oct 2007 20:17:36 +0530, "Anurag Singh" wrote:
> My question is that can I get the cairo surface from the cairo context I
> am getting using cairo_get_target() even if the cairo context which I
> get was created using gdk_cairo_create().
The cairo_get_target function should always "work". It's possible that
using it with gdk_cairo_create might not do what you want, since GTK+
creates transient cairo surfaces for double-buffering, and that's the
surface that will be returned by cairo_get_target after
But as long as you understand the implications of that, then you
should be fine.
> My apologioes if the question is a bit unclear.
If I missed the intent of the question, feel free to try again with
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20071017/1baacdfa/attachment.pgp
More information about the cairo