C# 클래스 Imazen.LightResize.ResizeJob

Encapsulates a resizing operation. Very limited compared to ImageResizer, absolutely no ASP.NET support.
파일 보기 프로젝트 열기: imazen/lightresize

공개 메소드들

메소드 설명
Build ( Stream s, Stream target, JobOptions options ) : void

Resizes from one stream to another. Warning - ensure that the first stream you open will be safely closed if the second stream fails to open! This means a using() or try/finally clause.

Build ( Stream s, string destPath, JobOptions options ) : void

Reads from Stream s and writes to the given physical path

Build ( string sourcePath, Stream target, JobOptions options ) : void

Reads from filename, writes to stream

Build ( string sourcePath, string destPath, JobOptions options ) : void

Resizes from one filename to another

ResizeJob ( ) : System

Creates a empty Job, with Mode=Max, ScalingRules=Down, JpegQuality=90, IgnoreIccProfile=false, and Format=Jpg

보호된 메소드들

메소드 설명
Build ( Stream s, BitmapConsumer consumer, JobOptions options ) : void

Loads the bitmap from stream, processes, and renders, sending the result Bitmap to the 'consumer' callback for encoding or usage.

Encode ( Stream target ) : void

Dest is encoded.

Layout ( ) : void

Layout: size and cropping constraints are calculated here

Render ( ) : void

All rendering occurs here; see layout for the math part of things. Neither 'Dest' nor 'Source' are disposed here!

메소드 상세

Build() 보호된 메소드

Loads the bitmap from stream, processes, and renders, sending the result Bitmap to the 'consumer' callback for encoding or usage.
protected Build ( Stream s, BitmapConsumer consumer, JobOptions options ) : void
s Stream
consumer BitmapConsumer
options JobOptions
리턴 void

Build() 공개 메소드

Resizes from one stream to another. Warning - ensure that the first stream you open will be safely closed if the second stream fails to open! This means a using() or try/finally clause.
public Build ( Stream s, Stream target, JobOptions options ) : void
s Stream
target Stream
options JobOptions
리턴 void

Build() 공개 메소드

Reads from Stream s and writes to the given physical path
public Build ( Stream s, string destPath, JobOptions options ) : void
s Stream
destPath string
options JobOptions
리턴 void

Build() 공개 메소드

Reads from filename, writes to stream
public Build ( string sourcePath, Stream target, JobOptions options ) : void
sourcePath string
target Stream
options JobOptions
리턴 void

Build() 공개 메소드

Resizes from one filename to another
public Build ( string sourcePath, string destPath, JobOptions options ) : void
sourcePath string
destPath string
options JobOptions
리턴 void

Encode() 보호된 메소드

Dest is encoded.
protected Encode ( Stream target ) : void
target Stream
리턴 void

Layout() 보호된 메소드

Layout: size and cropping constraints are calculated here
protected Layout ( ) : void
리턴 void

Render() 보호된 메소드

All rendering occurs here; see layout for the math part of things. Neither 'Dest' nor 'Source' are disposed here!
protected Render ( ) : void
리턴 void

ResizeJob() 공개 메소드

Creates a empty Job, with Mode=Max, ScalingRules=Down, JpegQuality=90, IgnoreIccProfile=false, and Format=Jpg
public ResizeJob ( ) : System
리턴 System