Hi,
 
While "studying scribble-simple.c" given in the demos, I saw sth like
 
  /*    gdk_draw_rectangle (pixmap,    widget->style->black_gc,                
TRUE,        update_rect.x, update_rect.y,        update_rect.width, 
update_rect.height); */
 
Here, widget->style->black_gc  can only draw black color. Then,how can I draw 
with other colors?
 
As it is mentioned in the tutorial that it's better to draw on a pixmap first, 
then
copy this backing pixmap to the drawing area.
 
whether a pixmap only has black and white color?
Does it mean that I should draw directly on the drawing area but not using a 
pixmap?
 
Thanks very much!
 
Zeng
 
_________________________________________________________________
Windows Live Photo gallery 数码相机的超级伴侣,轻松管理和编辑照片,还能制作全景美图!
http://get.live.cn/product/photo.html
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to