Ejemplo n.º 1
0
        /// <summary>
        /// Allows the creation of a shallow copy of this Bytescout.PDF.ColorICC.
        /// </summary>
        /// <returns cref="object" href="http://msdn.microsoft.com/en-us/library/system.object.aspx">Returns a shallow copy of this Bytescout.PDF.ColorICC.</returns>
        public override object Clone()
        {
            ColorICC p = this.MemberwiseClone() as ColorICC;

            p._colorspace = _colorspace.Clone() as ICCBasedColorspace;
            p._color      = _color.Clone() as DeviceColor;
            return(p);
        }
Ejemplo n.º 2
0
        public override object Clone()
        {
            UncoloredTilingPatternColorspace p = this.MemberwiseClone() as UncoloredTilingPatternColorspace;

            p._color = _color.Clone() as DeviceColor;
            p._canvas.Resources.Dictionary.AddRange(_canvas.Resources.Dictionary);
            byte[] buf = new byte[_canvas.Stream.Length];
            _canvas.Stream.Position = 0;
            _canvas.Stream.Read(buf, 0, buf.Length);
            p._canvas.Stream.Position = 0;
            p._canvas.Stream.Write(buf, 0, buf.Length);
            return(p);
        }