Drawing
There are 3 options that you can use to draw on the image.
Figure 1: Draw Buttons
Draw Text
To draw text click the button and the DrawText dialog will be shown. In it you need to provide the text and set various other options.
Figure 2: DrawText Dialog
Drawing text programmatically
The following snippet shows how you can add text using the RadImageEditor API.
Draw Shape
When the Draw Shape button is pressed the DrawShape dialog appears. In this dialog you can specify the type and the size of the shape. You can set its colors as well.
Figure 3: DrawShape Dialog
Once you are ready with the settings you can draw your shape with the mouse.
Figure 4: Drawing Shapes
The currently supported shapes are:
- FreeFlow
- Rectangle
- Square
- Ellipse
- Circle
- Arrow
Draw Shape Programmatically
To draw a shape in the code behind you need to provide a path. The bellow code demonstrates how you ca create a RoundRectShape:
Draw with a Pen
When the Draw button is pressed the Draw dialog appears. In this dialog you can specify the size and the color of the brush. One you are done you can directly star drawing on the image surface.
Figure 1: Draw Dialog