Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
f062078c
Commit
f062078c
authored
Dec 06, 2014
by
Tebjan Halm
Browse files
Merge pull request #112 from EricOuellet2/master
SvgDocument.Draw support different bitmap size as svg default size
parents
4cd65121
9336c763
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/SvgDocument.cs
View file @
f062078c
...
...
@@ -468,6 +468,13 @@ namespace Svg
using
(
var
renderer
=
SvgRenderer
.
FromImage
(
bitmap
))
{
renderer
.
SetBoundable
(
new
GenericBoundable
(
0
,
0
,
bitmap
.
Width
,
bitmap
.
Height
));
//EO, 2014-12-05: Requested to ensure proper zooming (draw the svg in the bitmap size, ==> proper scaling)
renderer
.
ScaleTransform
(
bitmap
.
Width
/
this
.
Width
,
bitmap
.
Height
/
this
.
Height
);
//EO, 2014-12-05: Requested to ensure proper zooming out, reduce size. Otherwise it clip the image.
this
.
Overflow
=
SvgOverflow
.
auto
;
this
.
Render
(
renderer
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment