IRectangleShape IOverlayShapeFactory.GetPreviewGrid() { WPFRectangleShape<PreviewGridShape> PreviewRect = new WPFRectangleShape<PreviewGridShape>(canvas1); PreviewRect.TheShape.Stroke = Brushes.Black; return PreviewRect; }
IRectangleShape IOverlayShapeFactory.GetCPCircle() { WPFRectangleShape<Ellipse> e = new WPFRectangleShape<Ellipse>(canvas1); e.TheShape.Width = e.TheShape.Height = 10; e.TheShape.Stroke = Brushes.Red; e.TheShape.Fill = Brushes.Gray; return e; }
IRectangleShape IOverlayShapeFactory.GetPreviewEllipse() { WPFRectangleShape<Ellipse> PreviewEllipse = new WPFRectangleShape<Ellipse>(canvas1); PreviewEllipse.TheShape.Stroke = Brushes.Black; return PreviewEllipse; }
IRectangleShape IOverlayShapeFactory.GetSelectionRect() { WPFRectangleShape<Rectangle> SelectionRect = new WPFRectangleShape<Rectangle>(canvas1); SelectionRect.TheShape.Stroke = Brushes.Blue; SelectionRect.TheShape.StrokeThickness = 1; SelectionRect.TheShape.Visibility = Visibility.Collapsed; SelectionRect.TheShape.Fill = new SolidColorBrush(Color.FromArgb(0x23, 0x00, 0x8A, 0xCA)); SelectionRect.TheShape.Fill.Freeze(); return SelectionRect; }