C# 클래스 RockWeb.ImageUploader

Handles retrieving file data from storage
상속: FileUploader
파일 보기 프로젝트 열기: CentralAZ/Rockit-CentralAZ

공개 메소드들

메소드 설명
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