VixenModules.Preview.VixenPreview.Shapes.PreviewLine.Clone C# (CSharp) 메소드

Clone() 공개 메소드

public Clone ( ) : object
리턴 object
        public override object Clone()
        {
            PreviewLine newLine = (PreviewLine) this.MemberwiseClone();

            newLine._pixels = new List<PreviewPixel>();

            foreach (PreviewPixel pixel in _pixels) {
                newLine.AddPixel(pixel.X, pixel.Y);
            }
            return newLine;
        }