From 52dcceb87f5847dc235f5b5965f57881f327143c Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 29 Jan 2021 23:20:16 +0100 Subject: Add support for preserveAspectRatio for both SVG and bitmap input --- src/vec_core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vec_core.h') 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); } -- cgit