Re: Drawing higher depth images

2005-07-14 Thread David Necas (Yeti)
On Tue, Jul 12, 2005 at 05:11:38PM +0300, Olexiy Avramchenko wrote: > There's one trick: > 1. Create a pixmap with depth of 32. > 2. Create gc for the pixmap. > 3. Set the 32-bit colour you want with gdk_gc_set_foreground() > (0xAABBGGRR for the little-endian boxes, 0xRRGGBBAA for the big-endian

Re: Drawing higher depth images

2005-07-12 Thread Olexiy Avramchenko
David Necas (Yeti) wrote: Is it possible to use Gdk drawing functions (gdk_draw_arc(), etc.) to draw images of higher depth than system and save them? I can save GdkPixbufs. If there were drawing primitives in gdk-pixbuf, it would be everything I need. However I can draw only on GdkDrawables.

Re: Drawing higher depth images

2005-06-30 Thread John Cupitt
On 6/30/05, David Necas (Yeti) <[EMAIL PROTECTED]> wrote: > Is it possible to use Gdk drawing functions (gdk_draw_arc(), > etc.) to draw images of higher depth than system and save > them? My understanding is unfortunately no. X servers can only draw to the visuals they know about, and if a server

Drawing higher depth images

2005-06-30 Thread David Necas (Yeti)
Is it possible to use Gdk drawing functions (gdk_draw_arc(), etc.) to draw images of higher depth than system and save them? I can save GdkPixbufs. If there were drawing primitives in gdk-pixbuf, it would be everything I need. However I can draw only on GdkDrawables. To use gdk_pixbuf_get_from