Share via


Drawing Lines or Closed Figures (Image Editor for Icons)

The Image editor tools for drawing lines and closed figures all work in the same way: you place the insertion point at one point and drag to another. For lines, these points are the endpoints. For closed figures, these points are opposite corners of a rectangle bounding the figure.

Lines are drawn in a width determined by the current brush selection, and framed figures are drawn in a width determined by the current width selection. Lines and all figures, both framed and filled, are drawn in the current foreground color if you press the left mouse button, or in the current background color if you press the right mouse button.

To draw a line

  1. On the Image Editor toolbar (or from the Image menu, Tools command), click the Line tool.

  2. If necessary, select colors and a brush:

    • In the Colors palette, click the left mouse button to select a foreground color or the right mouse button to select a background color.

    • In the Options selector, click a shape representing the brush you want to use.

  3. Place the pointer at the line's starting point.

  4. Drag to the line's endpoint.

To draw a closed figure

  1. On the Image Editor toolbar (or from the Image menu, Tools command), click a Closed-Figure Drawing tool.

    The Closed-Figure Drawing tools create figures as indicated on their respective buttons.

  2. If necessary, select colors and a line width.

  3. Move the pointer to one corner of the rectangular area in which you want to draw the figure.

  4. Drag the pointer to the diagonally opposite corner.

For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.

Requirements

None

See Also

Reference

Accelerator Keys (Image Editor for Icons)

Editing Graphical Resources (Image Editor for Icons)

Image Editor for Icons

Working with Color (Image Editor for Icons)