[cairo] Interfacing with gdk_rgb_draw_image

MenTaLguY mental at rydia.net
Thu Feb 10 07:53:23 PST 2005


On Wed, 2005-02-09 at 13:54, Ashwin Bharambe wrote:
> Hi all,
> 
> I have just begun playing with cairo and I have two elementary
> questions: cairo_set_target_image() allows specifying a
> CAIRO_FORMAT_RGB24 or CAIRO_FORMAT_ARGB32. Both of these use a 32-bit
> pixel value (the first one leaves the alpha bits unused). However,
> gdk_rgb_draw_image() requires a 24-bit packed pixel representation.
> Will I have to do the conversion manually? Or is there any way cairo
> can render to a 24-bit packed pixel representation?

Also note that the byte ordering for either Cairo format will vary
depending on the endianness of the system.

-mental
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050210/0b6c414d/attachment.pgp


More information about the cairo mailing list