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
7ce4de62
Commit
7ce4de62
authored
May 02, 2017
by
Tebjan Halm
Committed by
GitHub
May 02, 2017
Browse files
Merge pull request #314 from epuig-ssinergie/master
Fix rendering error on 64 bit IIS, ColorBlend position must be betwee…
parents
42959432
c3e44dfc
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/Painting/SvgGradientServer.cs
View file @
7ce4de62
...
...
@@ -185,6 +185,7 @@ namespace Svg
radial
?
1
-
(
currentStop
.
Offset
.
ToDeviceValue
(
renderer
,
UnitRenderingType
.
Horizontal
,
this
)
/
boundWidth
)
:
(
currentStop
.
Offset
.
ToDeviceValue
(
renderer
,
UnitRenderingType
.
Horizontal
,
this
)
/
boundWidth
);
position
=
(
float
)
Math
.
Round
(
position
,
1
,
MidpointRounding
.
AwayFromZero
);
colour
=
System
.
Drawing
.
Color
.
FromArgb
((
int
)
Math
.
Round
(
mergedOpacity
*
255
),
currentStop
.
GetColor
(
this
));
actualStops
++;
...
...
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