/// <summary> /// Initializes a new instance of the <see cref="Pen"/> class. /// </summary> /// <param name="parameters">The parameters.</param> public Pen(byte[] parameters) { this.Style = EmfConverter.ReadInt16(parameters, 0); this.Width = EmfConverter.ReadInt16(parameters, 2); this.Color = EmfConverter.ReadColor(parameters, 4); }
/// <summary> /// Initializes a new instance of the <see cref="Brush"/> class. /// </summary> /// <param name="parameters">The parameters.</param> public Brush(byte[] parameters) { this.Style = EmfConverter.ReadInt16(parameters, 0); this.Color = EmfConverter.ReadColor(parameters, 2); this.Hatch = EmfConverter.ReadInt16(parameters, 6); }