diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-02 11:13:29 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-02 11:13:29 +0100 |
| commit | e09e8bcea8a18c5ae7e8032c071fa050171507ea (patch) | |
| tree | 66226b9ab8ad7d63fa131e60cf29bceae1c5c766 | |
| parent | 4af2d6a0f4d5f5c8c39ad053a3ddadfa0402a92b (diff) | |
removed ixmlserializable from color, not functionnal
| -rw-r--r-- | src/Colors.cs | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/Colors.cs b/src/Colors.cs index de41514a..61f9208f 100644 --- a/src/Colors.cs +++ b/src/Colors.cs @@ -10,7 +10,7 @@ using System.Diagnostics; namespace Crow
{
- public struct Color : IXmlSerializable
+ public struct Color
{
#region CTOR
public Color(double _R, double _G, double _B, double _A)
@@ -1018,25 +1018,6 @@ namespace Crow public static readonly Color Zaffre = new Color(0,0.0784313725490196,0.658823529411765,1.0,"Zaffre");
public static readonly Color ZinnwalditeBrown = new Color(0.172549019607843,0.0862745098039216,0.0313725490196078,1.0,"ZinnwalditeBrown");
#endregion
-
- #region IXmlSerializable
- public void ReadXml(System.Xml.XmlReader reader)
- {
- string[] c = reader["Color"].Split(new char[] { ';' });
- R = double.Parse(c[0]);
- G = double.Parse(c[1]);
- B = double.Parse(c[2]);
- A = double.Parse(c[3]);
- }
- public void WriteXml(System.Xml.XmlWriter writer)
- {
- writer.WriteAttributeString("Color", this.ToString());
- }
- public System.Xml.Schema.XmlSchema GetSchema()
- {
- return null;
- }
- #endregion
public override string ToString()
{
|