efficient drawing of rectangles
- From: "Cornelius Weig" <bitte keine werbung einwerfen googlemail com>
- To: gtk-app-devel-list gnome org
- Subject: efficient drawing of rectangles
- Date: Wed, 1 Nov 2006 03:02:47 +0000
I am writing a program, that involves drawing of an 2dim array of up to
300x300 squares. I use a pixmap to do offscreen drawing, afterwards the
pixmap is flushed to a GtkDrawingArea. For drawing to the pixmap I use
gdk_draw_rectangle, but the performance of this approach is somewhat
disappointing. It takes up to half a second for a whole drawing step which
is far less than what I would expect.
Is there a better way to do this in gtk? Does cairo perform better under
these circumstances?
Thanks
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]