getting color from pixmap
- From: Joakim Elofsson <joakimelofsson telia com>
- To: gtk-app-devel-list gnome org
- Subject: getting color from pixmap
- Date: Mon, 18 Dec 2000 20:38:48 +0100
Hi,
I need to set a color from a specific point in a GdkPixmap (or
GdkWindow)
I have a
GtkPixmap *pixmap
and I do
gdk_window_set_back_pixmap(drwarea->window, pixmap, 0);
and then I want to do, like
gdk_gc_set_foreground(gc, &color);
where i get the color from one point(pixel) in 'pixmap' (or the
GdkWindow in drwarea)
and in the end I want to use the gdk_draw_* thingys with this color I
got...
How do I do this?
/Joakim Elofsson
__ Joakim Elofsson __/ icq: 9810545
| www: http://hem.passagen.se/joakime/index.html
| email: joakime hem passagen se
|_______ basemetal linux nu _________
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]