Beispiel #1
0
 public static LineStyleRGB ReadLineStyleRGB(this ISwfStreamReader reader)
 {
     var lineStyle = new LineStyleRGB {
         Width = reader.ReadUInt16(),
         Color = reader.ReadRGB()
     };
     return lineStyle;
 }
Beispiel #2
0
 public static void WriteLineStyleRGB(this ISwfStreamWriter writer, LineStyleRGB lineStyle)
 {
     writer.WriteUInt16(lineStyle.Width);
     writer.WriteRGB(ref lineStyle.Color);
 }
Beispiel #3
0
 public static XElement ToXml(LineStyleRGB lineStyle)
 {
     return new XElement("LineStyle",
         new XAttribute("width", lineStyle.Width),
         new XElement("color", XColorRGB.ToXml(lineStyle.Color)));
 }