Метод | Описание | |
---|---|---|
GetFileContentStream ( System.Web.HttpPostedFile uploadedFile, bool resizeIfImage = true ) : Stream |
Gets the file bytes.
|
Метод | Описание | |
---|---|---|
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 |
Результат | Stream |