Commit cbd07790 authored by Fessen's avatar Fessen Committed by mrbean-bremen
Browse files

Usage of ms colortranslator class

Fix fill usage by passing Color.Transparent color
parent d9c8c5e4
using System;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Globalization;
......@@ -192,7 +192,7 @@ namespace Svg
if (destinationType == typeof(string))
{
var colour = (Color)value;
return "#" + colour.R.ToString("X2", null) + colour.G.ToString("X2", null) + colour.B.ToString("X2", null);
return ColorTranslator.ToHtml(colour);
}
return base.ConvertTo(context, culture, value, destinationType);
......
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