C# 클래스 N2.Web.Drawing.ImageResizer

파일 보기 프로젝트 열기: bherila/n2cms 1 사용 예제들

공개 메소드들

메소드 설명
GetFillDestinationRectangle ( Size original, Size resized ) : Rectangle
GetResizedBytes ( Stream imageStream, ImageResizeParameters parameters ) : byte[]
Resize ( Stream inputStream, ImageResizeParameters parameters, Stream outputStream ) : bool

보호된 메소드들

메소드 설명
TransferBetweenStreams ( Stream inputStream, Stream outputStream ) : void

비공개 메소드들

메소드 설명
CreateGraphics ( Bitmap original, Bitmap &resized ) : Graphics
GetEncoderInfo ( System.Guid formatID ) : System.Drawing.Imaging.ImageCodecInfo
GetResizeRatio ( Bitmap original, double width, double height ) : double
GetResizedBitmap ( Bitmap &resized, PixelFormat format ) : Graphics
GetResizedBytes ( Stream imageStream, string extension, double maxWidth, double maxHeight, ImageResizeMode mode ) : byte[]
Resize ( Stream inputStream, string extension, double maxWidth, double maxHeight, ImageResizeMode mode, Stream outputStream ) : bool
Resize ( Bitmap original, ImageResizeParameters parameters, Stream output ) : void
Resize ( Stream inputStream, string extension, double maxWidth, double maxHeight, Stream outputStream ) : void

메소드 상세

GetFillDestinationRectangle() 공개 정적인 메소드

public static GetFillDestinationRectangle ( Size original, Size resized ) : Rectangle
original System.Drawing.Size
resized System.Drawing.Size
리턴 System.Drawing.Rectangle

GetResizedBytes() 공개 메소드

public GetResizedBytes ( Stream imageStream, ImageResizeParameters parameters ) : byte[]
imageStream Stream
parameters ImageResizeParameters
리턴 byte[]

Resize() 공개 메소드

public Resize ( Stream inputStream, ImageResizeParameters parameters, Stream outputStream ) : bool
inputStream Stream
parameters ImageResizeParameters
outputStream Stream
리턴 bool

TransferBetweenStreams() 보호된 메소드

protected TransferBetweenStreams ( Stream inputStream, Stream outputStream ) : void
inputStream Stream
outputStream Stream
리턴 void