Re: setting colormap for bitmaps
- From: Ron Steinke <rsteinke w-link net>
- To: otaylor redhat com, rsteinke w-link net
- Cc: gtk-devel-list gnome org
- Subject: Re: setting colormap for bitmaps
- Date: Tue, 17 Jul 2001 11:06:15 -0700
> From: Owen Taylor <otaylor redhat com>
>
> Ron Steinke <rsteinke w-link net> writes:
>
> > setting the foreground color in a GdkGC for a bitmap, since there
> > is no colormap to allocate the color in. This breaks code
> > which, for example, draws a rectangle to a newly created bitmap
> > to clear it.
>
> You cannot make any assumptions about whether black is 0 or 1 in a
> bitmap. So, calling gdk_gc_set_rgb_fg_color() on a GC for a bitmap
> doesn't make sense, since what you care about is 0's vs. 1's.
Then how would you do something line gdk_draw_rectangle() to
initialize a newly created pixmap? Does setting the GdkFunction
in the GdkGC work with all the drawing routines, or just gdk_draw_drawable()?
Ron
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]