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