New method to manage the Y coordinate flip for SVG output - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/canvas_svg.cpp
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年01月24日 18:19:41 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年01月30日 21:26:02 +0100
commit336b7b2386f8021a3dc569addf2e2876b10d711b (patch)
tree9abffd4b383ce85c64352d2dd26c7df99fde8bb8 /agg-plot/canvas_svg.cpp
parent17a0c5fb5ebaed9a694b8f48e14eb085ffcb9ab1 (diff)
downloadgsl-shell-336b7b2386f8021a3dc569addf2e2876b10d711b.tar.gz
New method to manage the Y coordinate flip for SVG output
Diffstat (limited to 'agg-plot/canvas_svg.cpp')
-rw-r--r--agg-plot/canvas_svg.cpp 4
1 files changed, 2 insertions, 2 deletions
diff --git a/agg-plot/canvas_svg.cpp b/agg-plot/canvas_svg.cpp
index 9cb97e1b..fc5a859e 100644
--- a/agg-plot/canvas_svg.cpp
+++ b/agg-plot/canvas_svg.cpp
@@ -6,7 +6,7 @@ template <>
void canvas_svg::draw<sg_object>(sg_object& vs, agg::rgba8 c)
{
int id = m_current_id ++;
- str s = vs.write_svg(id, c);
+ str s = vs.write_svg(id, c, m_height);
canvas_svg::writeln(m_output, s, " ");
}
@@ -15,7 +15,7 @@ void canvas_svg::draw_outline<sg_object>(sg_object& vs, agg::rgba8 c)
{
int id = m_current_id ++;
str path;
- svg_property_list* ls = vs.svg_path(path);
+ svg_property_list* ls = vs.svg_path(path, m_height);
str s = svg_stroke_path(path, canvas_svg::default_stroke_width, id, c, ls);
list::free(ls);
canvas_svg::writeln(m_output, s, " ");
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月12日 14:31:54 +0000

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