Re: Copying bitmaps into bitmaps
- From: Edscott Wilson García <edscott imp mx>
- To: Havoc Pennington <hp redhat com>
- Cc: <gtk-list gnome org>
- Subject: Re: Copying bitmaps into bitmaps
- Date: Thu, 17 Jan 2002 13:52:09 -0600
On Thu 17 Jan 2002 13:38, Havoc Pennington wrote:
> Edscott Wilson García <edscott imp mx> 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 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 it be
created?
edscott
>
> The bad match is caused by copying between two pixmaps with a
> different bit depth.
>
> Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]