|
MuPDFCore 1.8.0
Multiplatform .NET bindings for MuPDF
|
Represents a rectangle. More...
Public Member Functions | |
| Rectangle (float x0, float y0, float x1, float y1) | |
| Create a new Rectangle from the specified coordinates. More... | |
| Rectangle (double x0, double y0, double x1, double y1) | |
| Create a new Rectangle from the specified coordinates. More... | |
| RoundedRectangle | Round () |
| Round the rectangle's coordinates to the closest integers. More... | |
| RoundedRectangle | Round (double zoom) |
| Round the rectangle's coordinates to the closest integers, applying the specified zoom factor. More... | |
| Rectangle[] | Split (int divisions) |
| Split the rectangle into the specified number of Rectangles. More... | |
| Rectangle | Intersect (Rectangle other) |
| Compute the intersection between this Rectangle and another one. More... | |
| bool | Contains (Rectangle other) |
| Checks whether this Rectangle contains another Rectangle. More... | |
| bool | Contains (PointF point) |
| Checks whether this Rectangle contains a PointF. More... | |
| Quad | ToQuad () |
| Converts the Rectangle to a Quad. More... | |
Public Attributes | |
| float | X0 |
| The left coordinate of the rectangle. More... | |
| float | Y0 |
| The top coordinate of the rectangle. More... | |
| float | X1 |
| The right coordinate of the rectangle. More... | |
| float | Y1 |
| The bottom coordinate of the rectangle. More... | |
Properties | |
| float | Width [get] |
| The width of the rectangle. More... | |
| float | Height [get] |
| The height of the rectangle. More... | |
Represents a rectangle.
Definition at line 326 of file Rectangles.cs.
| MuPDFCore.Rectangle.Rectangle | ( | float | x0, |
| float | y0, | ||
| float | x1, | ||
| float | y1 | ||
| ) |
Create a new Rectangle from the specified coordinates.
| x0 | The left coordinate of the rectangle. |
| y0 | The top coordinate of the rectangle. |
| x1 | The right coordinate of the rectangle. |
| y1 | The bottom coordinate of the rectangle. |
Definition at line 365 of file Rectangles.cs.
| MuPDFCore.Rectangle.Rectangle | ( | double | x0, |
| double | y0, | ||
| double | x1, | ||
| double | y1 | ||
| ) |
Create a new Rectangle from the specified coordinates.
| x0 | The left coordinate of the rectangle. |
| y0 | The top coordinate of the rectangle. |
| x1 | The right coordinate of the rectangle. |
| y1 | The bottom coordinate of the rectangle. |
Definition at line 380 of file Rectangles.cs.
| bool MuPDFCore.Rectangle.Contains | ( | PointF | point | ) |
| bool MuPDFCore.Rectangle.Contains | ( | Rectangle | other | ) |
Compute the intersection between this Rectangle and another one.
| other | The other Rectangle to intersect with this instance. |
Definition at line 443 of file Rectangles.cs.
| RoundedRectangle MuPDFCore.Rectangle.Round | ( | ) |
Round the rectangle's coordinates to the closest integers.
Definition at line 392 of file Rectangles.cs.
| RoundedRectangle MuPDFCore.Rectangle.Round | ( | double | zoom | ) |
Round the rectangle's coordinates to the closest integers, applying the specified zoom factor.
| zoom | The zoom factor to apply. |
Definition at line 407 of file Rectangles.cs.
| Rectangle[] MuPDFCore.Rectangle.Split | ( | int | divisions | ) |
Split the rectangle into the specified number of Rectangles.
| divisions | The number of rectangles in which the rectangle should be split. This must be factorisable using only powers of 2, 3, 5 or 7. Otherwise, the biggest number smaller than divisions that satisfies this condition is used. |
Definition at line 422 of file Rectangles.cs.
| Quad MuPDFCore.Rectangle.ToQuad | ( | ) |
| float MuPDFCore.Rectangle.X0 |
The left coordinate of the rectangle.
Definition at line 331 of file Rectangles.cs.
| float MuPDFCore.Rectangle.X1 |
The right coordinate of the rectangle.
Definition at line 341 of file Rectangles.cs.
| float MuPDFCore.Rectangle.Y0 |
The top coordinate of the rectangle.
Definition at line 336 of file Rectangles.cs.
| float MuPDFCore.Rectangle.Y1 |
The bottom coordinate of the rectangle.
Definition at line 346 of file Rectangles.cs.
|
get |
The height of the rectangle.
Definition at line 356 of file Rectangles.cs.
|
get |
The width of the rectangle.
Definition at line 351 of file Rectangles.cs.