Beginners questions about drawing



Hi!

I just want to write a little application, where some pixeldata is
modified and later is saved in a file.

I could use
* some kind of Pixmap, render the pixmap to a GtkDrawingArea or
* use gdk-pixbuf, render the pixbuf to a GtkDrawingArea.

Does one of them have any advantages?

I would like to use some drawing primitives, of the form
 put_pixel (PaintDevice, x, y, color)
where do I find them? "gdk_draw_*" looks very complicated and not usable
with gdk-pixbuf. Or do I have to convert between drawables and pixbuf
all the time?

It looks as if drawing with GTK+ is not that easy.

(I'm not a beginner with GTK+, but with gtk-drawing)

Gnushi



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