Méthode | Description | |
---|---|---|
GetFileContentStream ( System.Web.HttpPostedFile uploadedFile, bool resizeIfImage = true ) : Stream |
Gets the file bytes.
|
Méthode | Description | |
---|---|---|
ContentTypeToImageFormat ( string contentType ) : |
Returns the ImageFormat for the given ContentType string. Throws NotSupportedException if given an unknown/unsupported content type.
|
|
OrientationToFlipType ( string orientation ) : RotateFlipType |
Orientations the type of to flip.
|
|
ResizeImage ( Image imgToResize, |
Resizes the image.
|
|
RoughResize ( |
Roughes the resize.
|
public static GetFileContentStream ( System.Web.HttpPostedFile uploadedFile, bool resizeIfImage = true ) : Stream | ||
uploadedFile | System.Web.HttpPostedFile | The uploaded file. |
resizeIfImage | bool | if set to |
Résultat | Stream |