C# Class ImageResizer.FluentExtensions.MiscExtensions

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

Méthodes publiques

Méthode 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 méthode

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
Résultat ImageUrlBuilder

Cache() public static méthode

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
Résultat ImageUrlBuilder

DPI() public static méthode

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
Résultat ImageUrlBuilder

IgnoreICC() public static méthode

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

Image404() public static méthode

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
Résultat ImageUrlBuilder

Process() public static méthode

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
Résultat ImageUrlBuilder

Watermark() public static méthode

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
Résultat ImageUrlBuilder