Метод | Описание | |
---|---|---|
GetFileContentStream ( System.Web.HttpPostedFile uploadedFile, bool enableResize, bool errorIfNotImage = false ) : 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 enableResize, bool errorIfNotImage = false ) : Stream | ||
uploadedFile | System.Web.HttpPostedFile | The uploaded file. |
enableResize | bool | |
errorIfNotImage | bool | |
Результат | Stream |