ImageResizer
3.4.0
|
A provider (or selector) of IEncoder instances. More...
Public Member Functions | |
IEncoder | GetEncoder (ResizeSettings settings, object original) |
Returns an encoder based on the provided settings and the source object More... | |
A provider (or selector) of IEncoder instances.
Definition at line 10 of file IEncoderProvider.cs.
IEncoder ImageResizer.Encoding.IEncoderProvider.GetEncoder | ( | ResizeSettings | settings, |
object | original | ||
) |
Returns an encoder based on the provided settings and the source object
settings | Request settings, like format, quality, colors, dither, etc. |
original | May be a Drawing.Image instance, a path, or null. To provide both, set Image.tag to the path. Helps the encoder detect the original format if the format was not specified. |
Implemented in ImageResizer.Configuration.PluginConfig.