Méthode | Description | |
---|---|---|
Constrain ( ) : |
Sets the resizing method to contstrain
|
|
Crop ( ) : |
Sets the resizing method to crop
|
|
Dispose ( ) : void |
Disposes the used resources
|
|
Distort ( ) : |
Sets the resizing method to distort
|
|
Pad ( |
||
Pad ( Color color ) : |
Sets the resizing method to pad
|
|
Pad ( string htmlColor ) : |
Sets the resizing method to pad
|
|
ResizeImage ( |
Initiates a new Resize from a bitmap
|
|
ResizeImage ( Stream fileStream ) : System |
Initiates a new Resize from a stream
|
|
ResizeImage ( string filePath ) : System |
Initialize a new Image Resize from a location on disk
|
|
Save ( ) : |
Resizes the image with the set configuration and returns the bitmap of the resized image
|
|
SaveJpeg ( Stream stream, uint quality = 95 ) : Stream |
Saves the image as an jpg to the provided stream
|
|
SaveJpeg ( string path, uint quality = 95, bool overwrite = false ) : string |
Resizes the image and saves it to the specified path as an jpeg. Applies the provided quality
|
|
SavePng ( Stream stream ) : Stream |
Saves the resized image as a png to the provided stream
|
|
SavePng ( string path, bool overwrite = false ) : string |
Saves the image as a png to the specified path
|
|
ToSize ( |
Sets the targeted size of the resize
|
|
ToSize ( int width, int height ) : |
Sets the targeted size to the provided width and height
|
Méthode | Description | |
---|---|---|
MakeResize ( ) : |
Makes the resize of the image depeding on the provided methods
|
|
ResizeImage ( ) : System |
Internal constructor that sets default values
|
public Pad ( |
||
brush | ||
Résultat |
public Pad ( string htmlColor ) : |
||
htmlColor | string | |
Résultat |
public ResizeImage ( |
||
bitmap | ||
Résultat | System |
public ResizeImage ( Stream fileStream ) : System | ||
fileStream | Stream | |
Résultat | System |
public ResizeImage ( string filePath ) : System | ||
filePath | string | |
Résultat | System |
public SaveJpeg ( Stream stream, uint quality = 95 ) : Stream | ||
stream | Stream | the stream to save to |
quality | uint | the quality of the jpg |
Résultat | Stream |
public SaveJpeg ( string path, uint quality = 95, bool overwrite = false ) : string | ||
path | string | the absolut path to save the image to |
quality | uint | Quality of the image, 1 to 100 |
overwrite | bool | |
Résultat | string |
public SavePng ( string path, bool overwrite = false ) : string | ||
path | string | the target path |
overwrite | bool | |
Résultat | string |
public ToSize ( |
||
size | ||
Résultat |
public ToSize ( int width, int height ) : |
||
width | int | |
height | int | |
Résultat |