Re: Drawing 1-bit bitmaps

2005-11-01 Thread John Cupitt
On 11/1/05, Juhana Sadeharju <[EMAIL PROTECTED]> wrote: > What library can load 1-bit images to a format GTK understands? > My 1-bit images have been very large, the library should be > able to extract only a rectangle from the image before converting > anything to 24-bit. > > What library can hand

Re: Drawing 1-bit bitmaps

2005-11-01 Thread Juhana Sadeharju
>From: George Williams <[EMAIL PROTECTED]> > >So I continue to believe that gdk does not support 1-bit client side >images. But I keep hoping I'm missing something. What library can load 1-bit images to a format GTK understands? My 1-bit images have been very large, the library should be able to

Re: Drawing 1-bit bitmaps

2005-10-20 Thread George Williams
On Thu, 2005-10-20 at 11:26, John Vetterli wrote: > > The GtkPixmap encapsulates client side pixmaps and bitmaps, > I've never bothered with GdkImage myself. I prefer to use GdkPixbuf As far as I can tell GdkPixbufs do not support 1-bit data. The docs (gdk-pixbuf-creating.html) say: gdk

Re: Drawing 1-bit bitmaps

2005-10-20 Thread John Vetterli
Arg! Yes, I was careless when I wrote that, and got it horribly wrong, mixing up client-side vs. server-side and Gtk- vs. Gdk-. GdkPixmap: server-side GdkImage and GdkPixbuf: client-side GtkImage: something completely different from GdkImage I've never bothered with GdkImage myself. I prefer

Re: Drawing 1-bit bitmaps

2005-10-20 Thread George Williams
On Wed, 2005-10-19 at 21:16, John Vetterli wrote: > The GtkPixmap encapsulates client side pixmaps and bitmaps, but I haven't Are you sure about that? The docs I have say they are server-side (From GtkPixmap.html): The pixels in a GtkPixmap cannot be manipulated by the application

Re: Drawing 1-bit bitmaps

2005-10-19 Thread John Vetterli
On Wed, 19 Oct 2005, George Williams wrote: On Wed, 2005-10-19 at 14:31, John Vetterli wrote: Have a look at: http://developer.gnome.org/doc/API/2.0/gdk/gdk-X-Window-System-Interaction.html I presume that means gdk does not support client side bitmap images directly. The GtkPixmap encapsulate

Re: Drawing 1-bit bitmaps

2005-10-19 Thread George Williams
On Wed, 2005-10-19 at 14:31, John Vetterli wrote: > On Wed, 19 Oct 2005, George Williams wrote: > > X has calls which allow me to draw bitmap images no matter what the > > depth of the screen. How do access them in gdk? > > Have a look at: > http://developer.gnome.org/doc/API/2.0/gdk/gdk-X-Window-

Re: Drawing 1-bit bitmaps

2005-10-19 Thread John Vetterli
On Wed, 19 Oct 2005, George Williams wrote: X has calls which allow me to draw bitmap images no matter what the depth of the screen. How do access them in gdk? Have a look at: http://developer.gnome.org/doc/API/2.0/gdk/gdk-X-Window-System-Interaction.html JV ___