author | Francesco Abbate <francesco.bbt@gmail.com> | 2010年08月19日 00:19:58 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2010年08月19日 00:19:58 +0200 |
commit | bef124c9c9e081062a457f6d0b2ab1eda6283a3e (patch) | |
tree | 5a757e1c2a84900feb642a9790dad5d61f870509 /agg-plot/canvas.h | |
parent | 7cdb95a74e7f352620cd500940b73bf221f9e91a (diff) | |
download | gsl-shell-bef124c9c9e081062a457f6d0b2ab1eda6283a3e.tar.gz |
-rw-r--r-- | agg-plot/canvas.h | 6 |
diff --git a/agg-plot/canvas.h b/agg-plot/canvas.h index 25a1e258..f5304bec 100644 --- a/agg-plot/canvas.h +++ b/agg-plot/canvas.h @@ -75,6 +75,12 @@ public: void clear() { rb.clear(bg_color); }; + void clear_box(int x1, int y1, int width, int height) + { + for (int y = y1; y < y1 + height; y++) + rb.copy_hline (x1, y, x1 + width, bg_color); + }; + template<class VertexSource> void draw(VertexSource& vs, agg::rgba8 c) { |