Draws a line on all planes of the given image.
Namespace: Stemmer.Cvb
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
public static void DrawLine( Image image, OverlayBitDrawMode mode, int thickness, int x1, int y1, int x2, int y2 )
Parameters
- image
- Type: Stemmer.CvbImage
Image to draw on. - mode
- Type: Stemmer.CvbOverlayBitDrawMode
Either Set or Erase the overlay bits. - thickness
- Type: SystemInt32
Line thickness in pixels. - x1
- Type: SystemInt32
X component of start point. - y1
- Type: SystemInt32
Y component of start point. - x2
- Type: SystemInt32
X component of end point. - y2
- Type: SystemInt32
Y component of end point.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | image is null (Nothing in Visual Basic). |
ObjectDisposedException | Image of given image was disposed. |
ArgumentException | The thickness is smaller than one. |
See Also