C# Class ImageResizer.FluentExtensions.MiscExtensions

Various plugin extensions that don't really belong in their own expressions
Show file Open project: benfoster/ImageResizer.FluentExtensions

Public Methods

Method Description
ApplyPresets ( this builder, string presets ) : ImageUrlBuilder

Allows you to define sets of settings in Web.config and reference them by name.

Cache ( this builder, CacheOptions cacheOption = CacheOptions.Default ) : ImageUrlBuilder

Always forces the image to be cached even if it wasn't modified by the resizing module. No disables caching even if it was.

DPI ( this builder, DPIOptions dpiOption ) : ImageUrlBuilder

The DPI at which the image should be printed. Ignored by all browsers, most operating systems, and most printers.

IgnoreICC ( this builder ) : ImageUrlBuilder

Ignores the ICC profile embedded in the source image

Image404 ( this builder, string fallbackImagePathOrPresetName ) : ImageUrlBuilder

The path to the fallback image, or a named preset if the image is not found. For more information see http://imageresizing.net/docs/reference

Process ( this builder, ProcessOptions processOption = ProcessOptions.Default ) : ImageUrlBuilder

Always forces the image to be re-encoded even if it wasn't modified. No prevents the image from being modified.

Watermark ( this builder, string watermarkNames ) : ImageUrlBuilder

The name of one or more watermark layers (or layer groups) to render. For more information see http://imageresizing.net/plugins/watermark

Method Details

ApplyPresets() public static method

Allows you to define sets of settings in Web.config and reference them by name.
public static ApplyPresets ( this builder, string presets ) : ImageUrlBuilder
builder this
presets string A list of preset settings groups to apply. preset1,preset2,preset3
return ImageUrlBuilder

Cache() public static method

Always forces the image to be cached even if it wasn't modified by the resizing module. No disables caching even if it was.
public static Cache ( this builder, CacheOptions cacheOption = CacheOptions.Default ) : ImageUrlBuilder
builder this
cacheOption CacheOptions
return ImageUrlBuilder

DPI() public static method

The DPI at which the image should be printed. Ignored by all browsers, most operating systems, and most printers.
public static DPI ( this builder, DPIOptions dpiOption ) : ImageUrlBuilder
builder this
dpiOption DPIOptions
return ImageUrlBuilder

IgnoreICC() public static method

Ignores the ICC profile embedded in the source image
public static IgnoreICC ( this builder ) : ImageUrlBuilder
builder this
return ImageUrlBuilder

Image404() public static method

The path to the fallback image, or a named preset if the image is not found. For more information see http://imageresizing.net/docs/reference
public static Image404 ( this builder, string fallbackImagePathOrPresetName ) : ImageUrlBuilder
builder this
fallbackImagePathOrPresetName string
return ImageUrlBuilder

Process() public static method

Always forces the image to be re-encoded even if it wasn't modified. No prevents the image from being modified.
public static Process ( this builder, ProcessOptions processOption = ProcessOptions.Default ) : ImageUrlBuilder
builder this
processOption ProcessOptions
return ImageUrlBuilder

Watermark() public static method

The name of one or more watermark layers (or layer groups) to render. For more information see http://imageresizing.net/plugins/watermark
public static Watermark ( this builder, string watermarkNames ) : ImageUrlBuilder
builder this
watermarkNames string
return ImageUrlBuilder