Re: [gtk-list] Re: clip origin, and **clip mask origion** ??




On Fri, 14 May 1999, Travis Loyd wrote:
> I was thinking that a bitmap is just a pixmap with 2 different colors so I

You're right that a bitmap is just a pixmap with depth 1.

> If I could even figure out how to copy out of the bitmap to a pixmap my
> 75x75 square I could then use the gdk_draw_pixmap using the new pixmap to
> create the mask I need and could then use with the origional copy.
> 

1. create a pixmap with depth 1 (i.e. a bitmap - gdk_bitmap_new()).
2. use gdk_draw_pixmap() to copy a region of your large bitmap into 
   the new bitmap.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]