Table of Contents

Method ClipLine

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ClipLine(Size, ref Point, ref Point)

Clips the line against the image rectangle

public static bool ClipLine(Size imgSize, ref Point pt1, ref Point pt2)

Parameters

imgSize Size

The image size

pt1 Point

The first line point

pt2 Point

The second line point

Returns

bool

ClipLine(Rect, ref Point, ref Point)

Clips the line against the image rectangle

public static bool ClipLine(Rect imgRect, ref Point pt1, ref Point pt2)

Parameters

imgRect Rect

sThe image rectangle

pt1 Point

The first line point

pt2 Point

The second line point

Returns

bool