Ejemplo n.º 1
0
 protected PathControlPoint(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     _path  = BinarySerializer.DeserializePath((byte[])info.GetValue(SerializationNames.Path, typeof(byte[])));
     _pen   = BinarySerializer.DeserializePen((byte[])info.GetValue(SerializationNames.Pen, typeof(byte[])));
     _brush = BinarySerializer.DeserializeBrush((byte[])info.GetValue(SerializationNames.Brush, typeof(byte[])));
     _size  = (System.Drawing.Size)info.GetValue(SerializationNames.ControlPointSize, typeof(System.Drawing.Size));
 }
Ejemplo n.º 2
0
        protected PathVObject(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
            : base(info, context)
        {
            if (info == null)
            {
                throw new System.ArgumentNullException("info");
            }

            _brushMatrices = new System.Collections.Stack();

            _matrix = BinarySerializer.DeserializeMatrix((byte[])info.GetValue(SerializationNames.Matrix, typeof(byte[])));
            _pen    = BinarySerializer.DeserializePen((byte[])info.GetValue(SerializationNames.Pen, typeof(byte[])));
            _brush  = BinarySerializer.DeserializeBrush((byte[])info.GetValue(SerializationNames.Brush, typeof(byte[])));
        }