|
| static Rect | TruncateCeiling (RectD rect) |
| | Converts the given rect to a Rect structure by truncating Left and Top and rounding Right and Bottom to the next higher integer number. More...
|
| |
| static Rect | Ceiling (RectD rect) |
| | Converts the given rect to a Rect structure by rounding the values of the RectD structure to the next higher integer number. More...
|
| |
| static Rect | Round (RectD rect) |
| | Converts the given rect to a Rect structure by rounding the values of the RectD structure mathematically. More...
|
| |
| static Rect | Truncate (RectD rect) |
| | Converts the given rect to a Rect structure by rounding the values of the RectD structure to the next lower integer number. More...
|
| |
| static Rect | Intersect (Rect a, Rect b) |
| | Returns a Rect structure that represents the intersection of the two input rectangles. If there is no intersection, an empty Rect is returned. More...
|
| |
| static Rect | Union (Rect a, Rect b) |
| | Gets a Rect structure that contains the union of two Rect structures. More...
|
| |
| static Rect | FromLTRB (int left, int top, int right, int bottom) |
| | Creates a Rect structure with the specified edge locations. More...
|
| |
| static Rect | CropExtent (Rect ext, Point2D pos, Size2D imageSize) |
| | 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. More...
|
| |
| static bool | operator!= (Rect lhs, Rect rhs) |
| | Comparison operator for Rect structures. More...
|
| |
| static bool | operator== (Rect lhs, Rect rhs) |
| | Comparison operator for Rect structures. More...
|
| |
| static | operator Rect (RectD rect) |
| | Explicit conversion operator (truncates the values). More...
|
| |
|
|
int | Left [get, set] |
| | First column of the rectangle.
|
| |
|
int | Top [get, set] |
| | First row of the rectangle.
|
| |
|
int | Right [get, set] |
| | Rightmost column of the rectangle (still inside the rectangle).
|
| |
|
int | Bottom [get, set] |
| | Bottom row of the rectangle (still inside the rectangle).
|
| |
|
int | Width [get, set] |
| | Width of the rectangle.
|
| |
|
int | Height [get, set] |
| | Height of the rectangle.
|
| |
|
Point2D | Location [get, set] |
| | Location of the top left corner of the rectangle.
|
| |
|
bool | IsEmpty [get] |
| | True if width and height are both zero, false otherwise.
|
| |
|
Size2D | Size [get, set] |
| | Size of the rectangle.
|
| |
|
CoordinateSystemType | CoordinateSystem [get] |
| | Indicates the coordinate system in which this object is being measured (when used as an area of interest).
|
| |
|
double | Area [get] |
| | Area of the rectangle.
|
| |
|
CoordinateSystemType | CoordinateSystem [get] |
| | Implementers of this interface should specify here inside which coordinate system their Area of interest is to operate.
|
| |
|
double | Area [get] |
| | Size (in pixels) of the Area of interest
|
| |
Cvb Rectangle structure.
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
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.