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