[cairo] copy data to a 565 xlib surface

zaheer ahmad zaheer.mot at gmail.com
Fri Mar 12 01:48:12 PST 2010


For the record, the solution to my question.
a- use a GdkImage with the right depth (16), get the data
pointer GDK_IMAGE_XIMAGE(m_image)->data and draw on to this
b- you can directly draw this on to the window/offscreen pixmap of the same
depth (16) using gdk_draw_image


On Mon, Feb 22, 2010 at 12:41 PM, zaheer ahmad <zaheer.mot at gmail.com> wrote:

> hi all,
> I have a plugin which - provides data in native xlib format (565) and i
> would need to draw that on my target application window using cairo. Also
> for performance i would like to to avoid 8888<->565 conversions. Referring
> to the email exchange
> http://www.mail-archive.com/devel@laptop.org/msg03872.html, i would need
> to use a native xlib surface for this. however what i could not find is an
> api that would give me data handle from this xlib surface or an api that can
> set the data on this surface. Please let me know how i can do this..
> thanks,
> Zaheer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100312/352da8c5/attachment.htm>

More information about the cairo mailing list