Exemplo n.º 1
0
 public RectangleShape(RectangleShape rectangle)
     : base(rectangle)
 {
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 private void rectangleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ShapeToDraw       = new RectangleShape();
     shapeButton.Image = rectangleButton.Image;
 }
Exemplo n.º 4
0
 public GroupShape(RectangleShape rectangle) : base(rectangle)
 {
 }
Exemplo n.º 5
0
 public RectangleShape(RectangleShape rectangle)
     : base(rectangle)
 {
 }
Exemplo n.º 6
0
 public ElipseShape(RectangleShape rectangle) : base(rectangle)
 {
 }