Commit c3e44dfc authored by Emmanuel's avatar Emmanuel Committed by GitHub
Browse files

Fix rendering error on 64 bit IIS, ColorBlend position must be between 0.0 and 1.0

parent 42959432
......@@ -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
}
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