public RectangleShape(RectangleShape rectangle) : base(rectangle) { }
private RectangleShape CreateFrame(Shape shape) { RectangleF rect = shape.Rectangle; byte frameOffset = 5; float frameMargin = shape.LineWidth / 2 + frameOffset; rect.Inflate(frameMargin, frameMargin); RectangleShape frame = new RectangleShape(rect); frame.LineWidth = 2; frame.LineColor = Color.Black; frame.Transparency = 0; return frame; }
private void rectangleToolStripMenuItem_Click(object sender, EventArgs e) { ShapeToDraw = new RectangleShape(); shapeButton.Image = rectangleButton.Image; }
public GroupShape(RectangleShape rectangle) : base(rectangle) { }
public ElipseShape(RectangleShape rectangle) : base(rectangle) { }