Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
Edscott Wilson García <[EMAIL PROTECTED]> writes: > gc = gdk_gc_new (h->window); Try using one of the bitmaps here instead of the window, the bad match may be a GC/drawable issue rather than src/dest drawable. Havoc ___ gtk-list mailing list [EMAIL

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Paul Davis
>On Thu 17 Jan 2002 14:21, Havoc Pennington wrote: >> Edscott Wilson García <[EMAIL PROTECTED]> writes: >> > But isn't a bitmap nothing more than a pixmap of depth 1? If >> > gdk_pixmap_new(window,pix_w,pix_h,1); >> > is not the correct way to create an empty bitmap with gtk, how should it >> > be

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Edscott Wilson García
On Thu 17 Jan 2002 14:21, Havoc Pennington wrote: > Edscott Wilson García <[EMAIL PROTECTED]> writes: > > But isn't a bitmap nothing more than a pixmap of depth 1? If > > gdk_pixmap_new(window,pix_w,pix_h,1); > > is not the correct way to create an empty bitmap with gtk, how should it > > be creat

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
Edscott Wilson García <[EMAIL PROTECTED]> writes: > But isn't a bitmap nothing more than a pixmap of depth 1? If > gdk_pixmap_new(window,pix_w,pix_h,1); > is not the correct way to create an empty bitmap with gtk, how should it be > created? That is the right way. One of us is missing some de

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Edscott Wilson García
On Thu 17 Jan 2002 13:38, Havoc Pennington wrote: > Edscott Wilson García <[EMAIL PROTECTED]> writes: > > After looking at a book by Barkakati, (X Window System Programming, 1991) > > he says that bitmaps should be copied into pixmaps by XCopyPlane(), not > > XCopyArea() (the latter being used by

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Paul Davis
>The bad match is caused by copying between two pixmaps with a >different bit depth. just to clarify havoc's point: a bitmap is a pixmap with a depth of 1. --p ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
Edscott Wilson García <[EMAIL PROTECTED]> writes: > After looking at a book by Barkakati, (X Window System Programming, 1991) he > says that bitmaps should be copied into pixmaps by XCopyPlane(), not > XCopyArea() (the latter being used by gdk_draw_pixmap()). > That's right, but I thought you

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Edscott Wilson García
On Thu 17 Jan 2002 10:01, Havoc Pennington wrote: > Edscott Wilson García <[EMAIL PROTECTED]> writes: > > I've been trying to copy a bitmap into a bitmap with gdk_draw_pixmap(), > > without success. Is it necesary to use XCopyPlane in lieu of some > > gdk routine? > > When you say "without success

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
Edscott Wilson García <[EMAIL PROTECTED]> writes: > I've been trying to copy a bitmap into a bitmap with gdk_draw_pixmap(), > without success. Is it necesary to use XCopyPlane in lieu of some > gdk routine? When you say "without success," what happens? It should work fine. > Basically all I wa

Copying bitmaps into bitmaps

2002-01-17 Thread Edscott Wilson García
I've been trying to copy a bitmap into a bitmap with gdk_draw_pixmap(), without success. Is it necesary to use XCopyPlane in lieu of some gdk routine? Basically all I want to do is a binary OR between the data in the 2 bitmaps. TIA, Edscott Wilson Garcia ___