Adds crisp shape rendering for svg file format

This commit is contained in:
Dan Prince 2020-06-02 00:33:39 +01:00 committed by GitHub
parent 6bfdada9ac
commit 4b0d527505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ bool SvgFormat::onSave(FileOp* fop)
fprintf(f, "/>\n"); fprintf(f, "/>\n");
}; };
fprintf(f, "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"); fprintf(f, "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
fprintf(f, "<svg version=\"1.1\" width=\"%d\" height=\"%d\" xmlns=\"http://www.w3.org/2000/svg\">\n", fprintf(f, "<svg version=\"1.1\" width=\"%d\" height=\"%d\" xmlns=\"http://www.w3.org/2000/svg\" shape-rendering=\"crispEdges\">\n",
image->width()*pixelScaleValue, image->height()*pixelScaleValue); image->width()*pixelScaleValue, image->height()*pixelScaleValue);
switch (image->pixelFormat()) { switch (image->pixelFormat()) {