Re: [gtk-list] Re: drawing pixel ??




Brandon, to much thanks for your help, and sorry for my English, I'm
Spanish.

Well, now I can draw pixels, but how can I define his color?

I must do for my University a program who read a pic, and apply to it
filters. I think that I could do it draw pixel to pixel in a window. But I
don know how to change this:
> 
> da = gtk_drawing_area_new ();
> gtk_drawing_area_size (GTK_DRAWING_AREA (da), 50, 50);
> gtk_container_add (GTK_CONTAINER (window), da);
> gtk_realize_widget (da);
> gdk_draw_point (da->window, da->style->black_gc, 10, 10);
				^
				|
			 THAT IS THIS
> 
How can I change this option, because I think that the color, doesn't it?

Well, too much thanks.
__________________________________________________________________________
Enrique Fco. Céspedes Sánchez
fullpull@larural.es
from Almería (Andalucía), Spain
__________________________________________________________________________
Politics is the ability to foretell what is going to happen tomorrow, next
week, next month and next year.  And to have the ability afterwards to
explain why it didn't happen.
                -- Winston Churchil



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