aboutsummaryrefslogtreecommitdiff
path: root/src/vec_core.h
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-01-29 23:20:16 +0100
committerjaseg <git@jaseg.de>2021-01-29 23:20:16 +0100
commit52dcceb87f5847dc235f5b5965f57881f327143c (patch)
treef4979228c2b1c85a9628ff892305c8fbdc4aaccb /src/vec_core.h
parenta34efc058a18021143b75e30efdfd8dd0e72df10 (diff)
downloadgerbolyze-52dcceb87f5847dc235f5b5965f57881f327143c.tar.gz
gerbolyze-52dcceb87f5847dc235f5b5965f57881f327143c.tar.bz2
gerbolyze-52dcceb87f5847dc235f5b5965f57881f327143c.zip
Add support for preserveAspectRatio for both SVG and bitmap input
Diffstat (limited to 'src/vec_core.h')
-rw-r--r--src/vec_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vec_core.h b/src/vec_core.h
index adaa241..8267fd1 100644
--- a/src/vec_core.h
+++ b/src/vec_core.h
@@ -53,5 +53,6 @@ namespace gerbolyze {
void parse_img_meta(const pugi::xml_node &node, double &x, double &y, double &width, double &height);
std::string read_img_data(const pugi::xml_node &node);
void draw_bg_rect(cairo_t *cr, double width, double height, ClipperLib::Paths &clip_path, PolygonSink &sink, cairo_matrix_t &viewport_matrix);
+ void handle_aspect_ratio(std::string spec, double &scale_x, double &scale_y, double &off_x, double &off_y, double cols, double rows);
}