Méthode | Description | |
---|---|---|
GetFileBytes ( |
Gets the file bytes.
|
|
ValidateFileType ( |
Validates the type of the file.
|
Méthode | Description | |
---|---|---|
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. |
Résultat | byte[] |
public ValidateFileType ( |
||
context | The context. | |
uploadedFile | System.Web.HttpPostedFile | The uploaded file. |
Résultat | void |