Is there a gtk equivalent equivalent for cairo_image_surface_create_for<div style="direction: ltr;">_data ?<br><br>Some of the platforms im working with does not have cairo.<br><br>Thank you.<br><br>Ignas<br></div><br><br>
<div><span class="gmail_quote">On 1/9/07, <b class="gmail_sendername">Carl Worth</b> <<a href="mailto:cworth@cworth.org">cworth@cworth.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 9 Jan 2007 16:40:39 +0000, "Ignas B." wrote:<br>> is it possible to draw text not in to GdkDrawable but into GdkPixbuf?<br><br>What's the eventual goal for that?<br><br>In general GdkPixbuf is an inefficient thing to draw _into_, and
<br>should be avoided. GdkPixbuf is still useful as a way to load images<br>of many formats, so it's useful to use GdkPixbuf as a source to get<br>image data _from_ but not much after that.<br><br>What I wonder is if you've got some API that wants a GdkPixbuf and
<br>nothing else. If so, that API should probably be fixed to work with a<br>cairo_surface_t or so.<br><br>> If there is no direct function for that, would it be possible to extract<br>> pixel data from the PangoLayout ?
<br><br>You can definitely use cairo_image_surface_create_for_data, then<br>cairo_create to target that surface and render your PangoLayout into<br>there. That gives you direct access to all the pixel data.<br><br>-Carl<br>
<br><br></blockquote></div><br><br clear="all"><br>-- <br>Mane galima pasiekti:<br><a href="mailto:ignohp@hotmail.com">ignohp@hotmail.com</a><br><a href="mailto:ignohp@yahoo.com">ignohp@yahoo.com</a><br><a href="mailto:ignohp@gmail.com">
ignohp@gmail.com</a><br><a href="mailto:ibudvytis@acm.org">ibudvytis@acm.org</a><br><a href="mailto:ibudvytis@gmail.com">ibudvytis@gmail.com</a>