Exemplo n.º 1
0
 public static void AreEqual(BitmapFillStyleRGB expected, BitmapFillStyleRGB actual, string message)
 {
     Assert.AreEqual(expected.Mode, actual.Mode, message + ".Mode");
     Assert.AreEqual(expected.Smoothing, actual.Smoothing, message + ".Smoothing");
     Assert.AreEqual(expected.BitmapID, actual.BitmapID, "BitmapID");
     AssertData.AreEqual(expected.BitmapMatrix, actual.BitmapMatrix, "BitmapMatrix");
 }
Exemplo n.º 2
0
 public static void AreEqual(BitmapFillStyleRGB expected, BitmapFillStyleRGB actual, string message)
 {
     Assert.AreEqual(expected.Mode, actual.Mode, message + ".Mode");
     Assert.AreEqual(expected.Smoothing, actual.Smoothing, message + ".Smoothing");
     Assert.AreEqual(expected.BitmapID, actual.BitmapID, "BitmapID");
     AssertData.AreEqual(expected.BitmapMatrix, actual.BitmapMatrix, "BitmapMatrix");
 }
Exemplo n.º 3
0
        public static XElement ToXml(BitmapFillStyleRGB fillStyle)
        {
            var res = new XElement(GetNodeName(fillStyle.Type));

            res.Add(new XAttribute("objectID", fillStyle.BitmapID.ToString()));
            res.Add(new XElement("matrix", XMatrix.ToXml(fillStyle.BitmapMatrix)));
            return(res);
        }
Exemplo n.º 4
0
 public static XElement ToXml(BitmapFillStyleRGB fillStyle)
 {
     var res = new XElement(GetNodeName(fillStyle.Type));
     res.Add(new XAttribute("objectID", fillStyle.BitmapID.ToString()));
     res.Add(new XElement("matrix", XMatrix.ToXml(fillStyle.BitmapMatrix)));
     return res;
 }