Méthode | Description | |
---|---|---|
GetScaledImage ( this source, |
Scales an image to within the specified dimensions, disregarding aspect ratio. To preserve aspect ratio, generate the size parameter using the Constrain, Scale, and Expand methods
|
|
GetScaledImage ( this source, int width, int height ) : |
Scales an image to within the specified dimensions, disregarding aspect ratio
|
|
GetSquareImage ( this image ) : |
Crops an image to make it square
|
|
SaveJpegWithCompressionSetting ( this img, |
Saves an Image as a JPEG to the given stream using a 1 - 100 compression level
|
|
SaveJpegWithCompressionSetting ( this img, string fileName, int compression ) : void |
Saves an Image as a JPEG image to the given path using a 1 - 100 compression level
|
Méthode | Description | |
---|---|---|
SetGraphicsDefaults ( this g ) : void |
public static GetScaledImage ( this source, |
||
source | this | |
size | New size to scale to. Consider using the Constrain, Scale, and Expand methods to generate this value | |
Résultat |
public static GetScaledImage ( this source, int width, int height ) : |
||
source | this | |
width | int | |
height | int | |
Résultat |
public static GetSquareImage ( this image ) : |
||
image | this | |
Résultat |
public static SaveJpegWithCompressionSetting ( this img, |
||
img | this | |
outputStream | ||
compression | long | |
Résultat | void |
public static SaveJpegWithCompressionSetting ( this img, string fileName, int compression ) : void | ||
img | this | |
fileName | string | |
compression | int | |
Résultat | void |