Draw rectangle on the specified image.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
C# |
---|
public static void Rectangle( UnmanagedImage image, Rectangle rectangle, Color color ) |
Parameters
- image
- Type: AForge.Imaging..::.UnmanagedImage
Source image to draw on.
- rectangle
- Type: System.Drawing..::.Rectangle
Rectangle's coordinates to draw.
- color
- Type: System.Drawing..::.Color
Rectangle's color.
Exceptions
Exception | Condition |
---|---|
AForge.Imaging..::.UnsupportedImageFormatException | The source image has incorrect pixel format. |