has noone an idea, how to get this faster done? i also tried without close_path, but nothing changes.
my current try is to draw as tiled pixmap:
for (int i=1;i<fWidth;i++)
for (int j=1;j<fHeight;j++)
GdkPixmap *pm_tmp = gdk_pixmap_new(DrawingArea->window,
//draw a single circle as pattern
//draw this pattern starting at position fHoleRadius
where DrawTiledBitmap is defined like this:
void TCanvas::DrawTiledPixmap(GdkPixmap *pixmap,int x,int y,int w,int h)
gdk_cairo_set_source_pixmap (cr, pixmap, 0, 0);
cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_REPEAT);
cairo_rectangle (cr, x, y, w, h);
this draws faster, but i cannot get my circles aligned the right way.
cairo starts not with a full pattern in the upper left corner...how to get this solved?
i've solved the incorrect alignment:
gdk_cairo_set_source_pixmap (cr, pixmap, 0-x, 0-y);
but maybe it exists a possibility to draw circles faster with cairo...pls post some suggestions