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
c3e44dfc
Commit
c3e44dfc
authored
Apr 20, 2017
by
Emmanuel
Committed by
GitHub
Apr 20, 2017
Browse files
Fix rendering error on 64 bit IIS, ColorBlend position must be between 0.0 and 1.0
parent
42959432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Painting/SvgGradientServer.cs
View file @
c3e44dfc
...
...
@@ -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
++;
...
...
@@ -250,4 +251,4 @@ namespace Svg
return
_gradientUnits
;
}
}
}
\ No newline at end of file
}
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