Drawing Lines or Closed Figures (Image Editor for Icons)
The latest version of this topic can be found at 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
On the Image Editor toolbar (or from the Image menu, Tools command), click the Line tool.
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.
Place the pointer at the line's starting point.
Drag to the line's endpoint.
To draw a closed figure
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.
If necessary, select colors and a line width.
Move the pointer to one corner of the rectangular area in which you want to draw the figure.
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
Accelerator Keys
Editing Graphical Resources
Image Editor for Icons
Working with Color