Beispiel #1
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewArch shape = (matchShape as PreviewArch);

            Width     = shape.Width;
            Height    = shape.Height;
            PixelSize = shape.PixelSize;
            Layout();
        }
        private void SetupArch()
        {
            preview.Data = new VixenPreviewData();
            preview.LoadBackground();
            preview.BackgroundAlpha = 0;
            displayItem = new DisplayItem();
            PreviewArch arch = new PreviewArch(new PreviewPoint(10, 10), null, 1);
            arch.PixelCount = PixelsPerString();
            arch.PixelSize = Data.PixelSize;
            arch.PixelColor = Color.White;
            arch.TopLeft = new Point(10, preview.Height/2);
            arch.BottomRight = new Point((int) (preview.Width - 10), (int) (preview.Height - 10));
            arch.Layout();
            displayItem.Shape = arch;

            preview.AddDisplayItem(displayItem);
        }