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