From 492e32b4b3d3240aa8202c843df911e521e600c5 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 25 Jul 2016 23:21:08 +0200 Subject: [PATCH] [DEBUG] SVG interface is bad --- egami/wrapperSVG.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/egami/wrapperSVG.cpp b/egami/wrapperSVG.cpp index d6f4f19..5629d58 100644 --- a/egami/wrapperSVG.cpp +++ b/egami/wrapperSVG.cpp @@ -22,9 +22,11 @@ egami::Image egami::loadSVG(const std::string& _fileName, const ivec2& _size) { ivec2 imageSize = _size; #if 0 std::vector> svgImage = svgDocument.renderImageFloatRGBA(imageSize); + out.configure(imageSize, egami::colorType::RGBAf); out.set(svgImage, imageSize); #else std::vector> svgImage = svgDocument.renderImageU8RGBA(imageSize); + out.configure(imageSize, egami::colorType::RGBA8); out.set(svgImage, imageSize); #endif return out;