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 BoxPadding | 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 12 of file BoxPadding.cs.
ImageResizer.Resizing.BoxPadding.BoxPadding |
( |
double |
all | ) |
|
|
inline |
Create a box with all edges the same width.
- Parameters
-
Definition at line 28 of file BoxPadding.cs.
ImageResizer.Resizing.BoxPadding.BoxPadding |
( |
double |
left, |
|
|
double |
top, |
|
|
double |
right, |
|
|
double |
bottom |
|
) |
| |
|
inline |
Create a box, specifying individual widths for each size
- Parameters
-
Definition at line 38 of file BoxPadding.cs.
39 this.top = top; this.left = left; this.bottom = bottom; this.right = right;
ImageResizer.Resizing.BoxPadding.BoxPadding |
( |
BoxPadding |
original | ) |
|
|
inline |
Copies the specified BoxPadding instance
- Parameters
-
Definition at line 45 of file BoxPadding.cs.
46 this.top = original.top;
47 this.bottom = original.bottom;
48 this.right = original.right;
49 this.left = original.left;
float [] ImageResizer.Resizing.BoxPadding.GetEdgeOffsets |
( |
| ) |
|
|
inline |
BoxPadding ImageResizer.Resizing.BoxPadding.SetAll |
( |
double |
all | ) |
|
|
inline |
Sets the width of all edges, returning a new instance
- Parameters
-
- Returns
Definition at line 64 of file BoxPadding.cs.
BoxPadding(double all)
Create a box with all edges the same width.
double ImageResizer.Resizing.BoxPadding.All |
|
get |
Returns an instance with a width of 0
Definition at line 102 of file BoxPadding.cs.
bool ImageResizer.Resizing.BoxPadding.IsEmpty |
|
get |
The documentation for this class was generated from the following file: