added support to save plots to a file in bitmap format - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-plot.cpp
diff options
context:
space:
mode:
authorfrancesco <francesco.bbt@gmail.com>2010年11月26日 23:16:08 +0100
committerfrancesco <francesco.bbt@gmail.com>2010年11月26日 23:16:08 +0100
commit988961d3651dba3d13c208c852c424f2d97db658 (patch)
tree9ca45dd5669a2027e112c21e17ed13d2e515b459 /agg-plot/lua-plot.cpp
parent8a0a8f276f0ef0e1395f4dcb563dc80dd7c80321 (diff)
downloadgsl-shell-988961d3651dba3d13c208c852c424f2d97db658.tar.gz
added support to save plots to a file in bitmap format
Diffstat (limited to 'agg-plot/lua-plot.cpp')
-rw-r--r--agg-plot/lua-plot.cpp 2
1 files changed, 2 insertions, 0 deletions
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 },
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月13日 03:32:24 +0000

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