Commit 7ce4de62 authored by Tebjan Halm's avatar Tebjan Halm Committed by GitHub
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
......@@ -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++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment