Hi,
i've googled a bit and tested some cairo code...since this are vector-graphics and the graphics are antialiased (graphics are diffused) i don't want to use them.
there are some drawing routines like here
http://www.gtk.org/tutorial1.2/gtk_tut-23.html.
these are using a offscreen-pixmap, so i want to use this, if thís is supported in further future (tutorial is for gtk+1.2).
my application schould export to bitmap/pixmap and print.
later i want to draw animations, so i want to use an offscreen-bitmap for reducing flicker
i'm currently experimenting with the normal drawing routines and have some problems with the colors...
Code:
pixmap = gdk_pixmap_new(widget->window,
widget->allocation.width,
widget->allocation.height,
24);
GdkGC *gc=gdk_gc_new(pixmap);
GdkColor color;
gdk_color_parse ("blue", &color);
gdk_gc_set_foreground(gc, &color);
gdk_draw_arc (pixmap,
gc,
TRUE,
0, 0,
widget->allocation.width,
widget->allocation.height,
0,64*360);
color-problem fixed...
as the documentation says
http://developer.gnome.org/gdk/stable/g ... foreground, i have to use gdk_gc_set_rgb_fg_color()
can i use the "old functions" or should i use cairo, but how to make clear images on a offscreen-bitmap
regards Frank