From 7686af3b7b48207e885485a2b2a561d3d56b3c6b Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 26 Jan 2011 01:27:16 +0000 Subject: [PATCH] no need for fancy transforms --- utils/svg2png/svg2png.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/svg2png/svg2png.cpp b/utils/svg2png/svg2png.cpp index c429ac0fb..8a5237755 100644 --- a/utils/svg2png/svg2png.cpp +++ b/utils/svg2png/svg2png.cpp @@ -135,7 +135,7 @@ int main (int argc,char** argv) (*marker.get_vector_data())->attributes()); agg::trans_affine tr; - boost::array matrix_; + /*boost::array matrix_; matrix_[0] = 1.0; matrix_[1] = 0.0; matrix_[2] = 0.0; @@ -143,12 +143,13 @@ int main (int argc,char** argv) matrix_[4] = 0.0; matrix_[5] = 0.0; tr.load_from(&matrix_[0]); + */ agg::trans_affine mtx = recenter * tr; double scale_factor_ = 1; double opacity = 1; mtx *= agg::trans_affine_scaling(scale_factor_); - mtx *= agg::trans_affine_translation(width_/2, height_/2); + //mtx *= agg::trans_affine_translation(width_/2, height_/2); svg_renderer_this.render(ras_ptr, sl, renb, mtx, opacity, bbox);