[9181] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: drawing pixel ??
daemon@ATHENA.MIT.EDU (Brandon Long)
Sun Oct 11 04:39:59 1998
Date: Sun, 11 Oct 1998 01:39:44 -0700
From: Brandon Long <blong@fiction.net>
To: gtk-list@redhat.com
Reply-To: blong@fiction.net
Mail-Followup-To: gtk-list@redhat.com
In-Reply-To: <Pine.LNX.3.96.981010063800.1825A-100000@localhost>; from Francisco Cespedes Moreno on Sat, Oct 10, 1998 at 06:48:52AM +0200
Resent-From: gtk-list@redhat.com
On 10/10/98 Francisco Cespedes Moreno uttered the following other thing:
> Hi Brandon, could I abuse of your amability?
>
> I had moditecated the scribble-simple program.
>
> And I made this:
> In function where draw a small box (draw_brush) I add that:
>
> etc...
>
> GdkGC *color;
> color = GetPen (100,0,0)
>
> etc....
>
> gdk_draw_point (pixmap,color,update_rect.x, update_rect.y );
>
> gtk_widget_draw (widget, &update_rect);
>
>
> But it continua drawing a BLACK pixel. I couldn't change his color? Why
> please?
Its not quite a black pixel. The color values are on the range of 0 to
65535, and 100 isn't very far from 0. Try using 30000, you should
definitely see red.
Brandon
--
Brandon Long MD6 Crash Test Dummy Intel Corporation
"Every program has at least one bug and can be shortened by at least one
instruction -- from which, by induction, one can deduce that every
program can be reduced to one instruction which doesn't work."
I'm too low on the totem pole to speak for Intel.
http://www.fiction.net/blong/
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null