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
a935f4ee
Commit
a935f4ee
authored
Jan 03, 2016
by
Tebjan Halm
Browse files
Merge pull request #211 from OperatorOverload/master
Update to fix Draw(Height,Width) overload
parents
a1ff72df
1a0635de
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/SvgDocument.cs
View file @
a935f4ee
...
...
@@ -487,8 +487,9 @@ namespace Svg
//EO, 2015-01-09, Added GetDimensions to use its returned size instead of this.Width and this.Height (request of Icarrere).
//BBN, 2015-07-29, it is unnecassary to call again GetDimensions and transform to 1x1
//SizeF size = this.GetDimensions();
//renderer.ScaleTransform(bitmap.Width / size.Width, bitmap.Height / size.Height);
//JA, 2015-12-18, this is actually necessary to correctly render the Draw(rasterHeight, rasterWidth) overload, otherwise the rendered graphic doesn't scale correctly
SizeF
size
=
this
.
GetDimensions
();
renderer
.
ScaleTransform
(
bitmap
.
Width
/
size
.
Width
,
bitmap
.
Height
/
size
.
Height
);
//EO, 2014-12-05: Requested to ensure proper zooming out (reduce size). Otherwise it clip the image.
this
.
Overflow
=
SvgOverflow
.
Auto
;
...
...
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