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
cbd07790
Commit
cbd07790
authored
Aug 20, 2017
by
Fessen
Committed by
mrbean-bremen
Dec 17, 2018
Browse files
Usage of ms colortranslator class
Fix fill usage by passing Color.Transparent color
parent
d9c8c5e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/Painting/SvgColourConverter.cs
View file @
cbd07790
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
);
...
...
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