Namespace: Stemmer.Cvb
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
The Rect type exposes the following members.
| Name | Description | |
|---|---|---|
| Rect(Point2D, Size2D) |
Constructor for Cvb rectangles.
| |
| Rect(Int32, Int32, Int32, Int32) |
Constructor for Cvb rectangles.
|
| Name | Description | |
|---|---|---|
| Area |
Area of the rectangle.
| |
| Bottom |
Bottom row of the rectangle (still inside the rectangle).
| |
| CoordinateSystem |
Indicates the coordinate system in which this object is being measured
(when used as an area of interest).
| |
| Height |
Height of the rectangle.
| |
| IsEmpty |
True if width and height are both zero, false otherwise.
| |
| Left |
First column of the rectangle.
| |
| Location |
Location of the top left corner of the rectangle.
| |
| Right |
Rightmost column of the rectangle (still inside the rectangle).
| |
| Size |
Size of the rectangle.
| |
| Top |
First row of the rectangle.
| |
| Width |
Width of the rectangle.
|
| Name | Description | |
|---|---|---|
| Ceiling |
Converts the given rect to a Rect
structure by rounding the values of the RectD structure
to the next higher integer number.
| |
| Contains(Point2D) |
Check if a point is located inside this Rect.
| |
| Contains(Point2Dd) |
Check if a point is located inside this Rect.
| |
| Contains(Int32, Int32) |
Determines if the specified point is contained with this
Rect.
| |
| Contains(Point2Dd, Double) |
Check if a point is located inside this Rect.
| |
| CropExtent |
Assuming that a Rect structure contains the extent of
something relative to a position inside an image, this function crops
the Rect so that the whole content is inside the image.
| |
| Equals |
Tests whether obj is a Rect structure
with the same/ location and size as this Rect structure.
(Overrides ValueTypeEquals(Object).) | |
| FromLTRB |
Creates a Rect structure with the specified edge
locations.
| |
| GetHashCode |
Returns the hash code for this Rect.
(Overrides ValueTypeGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Intersect(Rect) |
Replaces this rectangle with the intersection of itself and the
specified rectangle.
| |
| Intersect(Rect, Rect) |
Returns a Rect structure that represents the
intersection of the two input rectangles. If there is no intersection,
an empty Rect is returned.
| |
| IntersectsWith |
Test if this rectangle intersects with rect.
| |
| Round |
Converts the given rect to a Rect
structure by rounding the values of the RectD structure
mathematically.
| |
| ToString |
String conversion.
(Overrides ValueTypeToString.) | |
| Truncate |
Converts the given rect to a Rect
structure by rounding the values of the RectD structure
to the next lower integer number.
| |
| TruncateCeiling | ||
| Union |
Gets a Rect structure that contains the union of two
Rect structures.
|
| Name | Description | |
|---|---|---|
| Equality |
Comparison operator for Rect structures.
| |
| (RectD to Rect) |
Explicit conversion operator (truncates the values).
| |
| Inequality |
Comparison operator for Rect structures.
|
| Name | Description | |
|---|---|---|
| Empty |
Null-element.
|
| Name | Description | |
|---|---|---|
| Contains |
Check if a point is located inside this Rect.
(Defined by RectExtensions.) | |
| ToRectangle |
Convert a Rect to a Rectangle.
(Defined by ImageExtensions.) | |
| ToWindowsRect |
Creates a Rect from this rectangle.
(Defined by RectExtensions.) |
Unlike System.Drawing.Rectangle, which upholds the convention that Right and Bottom are not part of the rectangle (in other words: Width = Left - Right and Height = Bottom - Top), Common Vision Blox always uses rectangles (or rectangular shaped areas of interest represented by integer parameters left, top, right and bottom) in such a way that right and bottom are still part of the area to be investigated (i.e. Width = Right - Left + 1 and Height = Bottom - Top + 1).
To model this difference correctly we decided to give CVB.Net a rectangle of its own which behaves according to the conventions used in Common Vision Blox.