From 988961d3651dba3d13c208c852c424f2d97db658 Mon Sep 17 00:00:00 2001 From: francesco Date: 2010年11月26日 23:16:08 +0100 Subject: added support to save plots to a file in bitmap format --- agg-plot/lua-plot.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'agg-plot/lua-plot.cpp') diff --git a/agg-plot/lua-plot.cpp b/agg-plot/lua-plot.cpp index af130527..12971bb7 100644 --- a/agg-plot/lua-plot.cpp +++ b/agg-plot/lua-plot.cpp @@ -25,6 +25,7 @@ extern "C" { #include "lua-plot.h" #include "lua-plot-cpp.h" +#include "bitmap-plot.h" #include "window.h" #include "gs-types.h" #include "lua-utils.h" @@ -83,6 +84,7 @@ static const struct luaL_Reg plot_methods[] = { {"pushlayer", plot_push_layer }, {"poplayer", plot_pop_layer }, {"clear", plot_clear }, + {"save", bitmap_save_image }, {"__index", plot_index }, {"__newindex", plot_newindex }, {"__gc", plot_free }, -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /