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: restore size/position of gtk window

2005-10-20 Thread George Williams
On Thu, 2005-10-20 at 16:41, Allin Cottrell wrote: > This eliminates the creep. But so far I have found nothing that > fixes window creep on win32. If a user maximizes my app's main > window, then despite my best efforts, when we attempt to restore the > maximized main window on startup it is

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 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/

Drawing 1-bit bitmaps

2005-10-19 Thread George Williams
I have an application (a font editor) that must draw potentially tens of thousands of bitmap glyphs to the screen. I have looked through the docs and mail archive. I don't see any way of drawing a 1-bit bitmap directly. The archive suggests using gdk_gc_set_clip_mask to create a mask and draw a re