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
caae2cce
Commit
caae2cce
authored
9 years ago
by
ubbn
Browse files
Options
Download
Email Patches
Plain Diff
Remove unnecessary call to get SVG dimension
parent
34e252b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/SvgDocument.cs
+4
-2
Source/SvgDocument.cs
with
4 additions
and
2 deletions
+4
-2
Source/SvgDocument.cs
+
4
-
2
View file @
caae2cce
...
...
@@ -473,8 +473,10 @@ namespace Svg
//EO, 2014-12-05: Requested to ensure proper zooming (draw the svg in the bitmap size, ==> proper scaling)
//EO, 2015-01-09, Added GetDimensions to use its returned size instead of this.Width and this.Height (request of Icarrere).
SizeF
size
=
this
.
GetDimensions
();
renderer
.
ScaleTransform
(
bitmap
.
Width
/
size
.
Width
,
bitmap
.
Height
/
size
.
Height
);
//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);
//EO, 2014-12-05: Requested to ensure proper zooming out (reduce size). Otherwise it clip the image.
this
.
Overflow
=
SvgOverflow
.
Auto
;
...
...
This diff is collapsed.
Click to expand it.
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