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

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 want to

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, what

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
copying between two bitmaps. CopyArea() should work OK for that AFAIK. The bad match is caused by copying between two pixmaps with a different bit depth. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Edscott Wilson García
by gdk_draw_pixmap()). That's right, but I thought you were copying between two bitmaps. CopyArea() should work OK for that AFAIK. 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

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 detail.

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 created? That

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 created? That

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