Represents the widths of edges of a box.
More...
|
double | Top [get] |
|
double | Left [get] |
|
double | Right [get] |
|
double | Bottom [get] |
|
double | All [get] |
| Returns double.NaN unless all edges are the same width, in which case that width is returned More...
|
|
double | all [get, set] |
|
static BoxEdges | Empty [get] |
| Returns an instance with a width of 0 More...
|
|
bool | IsEmpty [get] |
| Returns true if th More...
|
|
Represents the widths of edges of a box.
Definition at line 11 of file BoxEdges.cs.
ImageResizer.BoxEdges.BoxEdges |
( |
double |
all | ) |
|
|
inline |
ImageResizer.BoxEdges.BoxEdges |
( |
double |
left, |
|
|
double |
top, |
|
|
double |
right, |
|
|
double |
bottom |
|
) |
| |
|
inline |
Create a box, specifying individual widths for each size
- Parameters
-
Definition at line 37 of file BoxEdges.cs.
38 this.top = top; this.left = left; this.bottom = bottom; this.right = right;
ImageResizer.BoxEdges.BoxEdges |
( |
BoxEdges |
original | ) |
|
|
inline |
Copies the specified BoxEdges instance
- Parameters
-
Definition at line 44 of file BoxEdges.cs.
45 this.top = original.top;
46 this.bottom = original.bottom;
47 this.right = original.right;
48 this.left = original.left;
float [] ImageResizer.BoxEdges.GetEdgeOffsets |
( |
| ) |
|
|
inline |
Gets edge offsets as a clockwise array, starting with Top.
- Returns
Definition at line 110 of file BoxEdges.cs.
111 return new float[4] { (float)top, (
float)right, (float)bottom, (
float)left };
BoxEdges ImageResizer.BoxEdges.SetAll |
( |
double |
all | ) |
|
|
inline |
Sets the width of all edges, returning a new instance
- Parameters
-
- Returns
Definition at line 63 of file BoxEdges.cs.
BoxEdges(double all)
Create a box with all edges the same width.
double ImageResizer.BoxEdges.All |
|
get |
Returns double.NaN unless all edges are the same width, in which case that width is returned
Definition at line 87 of file BoxEdges.cs.
Returns an instance with a width of 0
Definition at line 101 of file BoxEdges.cs.
bool ImageResizer.BoxEdges.IsEmpty |
|
get |
The documentation for this class was generated from the following file: