Inheritance: VixenModules.Preview.VixenPreview.Shapes.PreviewBaseShape
Esempio n. 1
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewMultiString shape = (matchShape as PreviewMultiString);

            PixelSize = shape.PixelSize;
            Layout();
        }
Esempio n. 2
0
        public override object Clone()
        {
            PreviewMultiString newMultiString = (PreviewMultiString)this.MemberwiseClone();

            //foreach (PreviewPixel pixel in _pixels)
            //{
            //    newLine.AddPixel(pixel.X, pixel.Y);
            //}
            //Console.WriteLine("Clone");
            return(newMultiString);
        }
Esempio n. 3
0
        public override object Clone()
        {
            PreviewMultiString newMultiString = (PreviewMultiString)this.MemberwiseClone();

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

            newMultiString._points = new List <PreviewPoint>();
            foreach (var previewPoint in _points)
            {
                newMultiString._points.Add(previewPoint.Copy());
            }

            //Console.WriteLine("Clone");
            return(newMultiString);
        }