C# Класс Imazen.LightResize.ResizeJob

Encapsulates a resizing operation. Very limited compared to ImageResizer, absolutely no ASP.NET support.
Показать файл Открыть проект

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

Метод Описание
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