C# 클래스 Rock.Utility.FileUtilities

파일 보기 프로젝트 열기: NewSpring/Rock

공개 메소드들

메소드 설명
GetFileContentStream ( System.Web.HttpPostedFile uploadedFile, bool resizeIfImage = true ) : Stream

Gets the file bytes.

비공개 메소드들

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

메소드 상세

GetFileContentStream() 공개 정적인 메소드

Gets the file bytes.
public static GetFileContentStream ( System.Web.HttpPostedFile uploadedFile, bool resizeIfImage = true ) : Stream
uploadedFile System.Web.HttpPostedFile The uploaded file.
resizeIfImage bool if set to true [resize if image].
리턴 Stream