C# Класс RockWeb.ImageUploader

Handles retrieving file data from storage
Наследование: FileUploader
Показать файл Открыть проект

Открытые методы

Метод Описание
GetFileBytes ( HttpContext context, System.Web.HttpPostedFile uploadedFile ) : byte[]

Gets the file bytes.

ValidateFileType ( HttpContext context, System.Web.HttpPostedFile uploadedFile ) : void

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.

Описание методов

GetFileBytes() публичный Метод

Gets the file bytes.
public GetFileBytes ( HttpContext context, System.Web.HttpPostedFile uploadedFile ) : byte[]
context System.Web.HttpContext The context.
uploadedFile System.Web.HttpPostedFile The uploaded file.
Результат byte[]

ValidateFileType() публичный Метод

Validates the type of the file.
Filetype now allowed
public ValidateFileType ( HttpContext context, System.Web.HttpPostedFile uploadedFile ) : void
context System.Web.HttpContext The context.
uploadedFile System.Web.HttpPostedFile The uploaded file.
Результат void