Метод | Описание | |
---|---|---|
GetFileBytes ( |
Gets the file bytes.
|
|
ValidateFileType ( |
Validates the type of the file.
|
Метод | Описание | |
---|---|---|
ContentTypeToImageFormat ( string contentType ) : ImageFormat |
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, Size size ) : Image |
Resizes the image.
|
|
RoughResize ( Bitmap input, int maxWidth, int maxHeight ) : Bitmap |
Roughes the resize.
|
public GetFileBytes ( |
||
context | The context. | |
uploadedFile | System.Web.HttpPostedFile | The uploaded file. |
Результат | byte[] |
public ValidateFileType ( |
||
context | The context. | |
uploadedFile | System.Web.HttpPostedFile | The uploaded file. |
Результат | void |