Method | Description | |
---|---|---|
CropToAspect ( this sourceSize, float aspect ) : |
Returns a Size that is a sub-section of the given source size and conforms to the specified aspect
|
|
Expand ( this sourceSize, int width, int height, ScaleMethod method ) : |
Scales an image Size, but only up
|
|
Scale ( this sourceSize, float scalePercent ) : |
Calculates a scaled image size, changing the size by a percentage
|
|
Scale ( this sourceSize, int width, int height, ScaleMethod method, ScaleType type ) : |
Scales an image size, preserving aspect ratio.
|
|
Shrink ( this sourceSize, int width, int height, ScaleMethod method ) : |
Scales an image Size, but only down
|
public static CropToAspect ( this sourceSize, float aspect ) : |
||
sourceSize | this | |
aspect | float | |
return |
public static Expand ( this sourceSize, int width, int height, ScaleMethod method ) : |
||
sourceSize | this | |
width | int | |
height | int | |
method | ScaleMethod | |
return |
public static Scale ( this sourceSize, float scalePercent ) : |
||
sourceSize | this | |
scalePercent | float | Scale percentage. 1 = 100% which yields no change /// .5 = 50% which would reduce the height and width by half. |
return |
public static Scale ( this sourceSize, int width, int height, ScaleMethod method, ScaleType type ) : |
||
sourceSize | this | |
width | int | Min or max allowed width. Min/Max controlled by the method parameter |
height | int | Min or max allowed height. Min/Max controlled by the method parameter |
method | ScaleMethod | |
type | ScaleType | |
return |
public static Shrink ( this sourceSize, int width, int height, ScaleMethod method ) : |
||
sourceSize | this | |
width | int | |
height | int | |
method | ScaleMethod | |
return |