Rectangle-tool

The rectangle-tool is used to draw filled and outlined rectangles to the image. It is used by pressing down the mouse-button and dragging the mouse around. A preview of the rectangle is rendered on the screen and when the mouse-button is released, the actual rectangle is drawn.

Settings

Figure 1 shows the contents of the tool-setup-window when it is displaying the setup for the rectangle-tool.
Figure 1: Setup view for the rectangle-tool.

Fill Rectangle
When this option is enabled, the rectangle will be filled with the foreground-color. Otherwise only the outline of the rectangle will be drawn.
Corner To Corner
When this option is selected, the first click will set one corner of the rectangle and releasing the mouse-button will set the opposite corner.
Center To Corner
When this option is selected, the first click will set the center for the rectangle and releasing the mouse-button will set one of the corners.
Enable Rotation
When this option is set, the rectangle can be rotated after its size has been set. The rotation can be done by moving the mouse around and then pressing the mouse-button to finish the rotation.
Enable Anti-Aliasing
When this option is enabled, the edges of the rectangle will be antialiased to avoid a step-like effect. Currently this option has only meaning if Enable Rotation is also selected.

Keyboard Modifiers

  • Pressing down left control while setting the size of the rectangle forces the rectangle to be a square.
  • Pressing down left control while rotating the rectangle constrains the rotation to 5 degree steps.