C# Class Imgix_Dotnet.Imgix

The Imgix url builder.
Exibir arquivo Open project: estei/Imgix-Dotnet

Public Methods

Method Description
CreateImage ( IImgixOptions options, string path ) : ImgixImage

Creates a new imgix image from a supplied options object

CreateImage ( string path, string host, bool useHttps = true ) : ImgixImage

Creates a new unsigned imgix image from a supplied sourceName and path

Imgix ( IImgixOptions options ) : System

The base constructor. Sets up the Imgix url builder base options.

NewImage ( string path ) : ImgixImage

Creates a new imgix image from with the options in this Imgix Caution: Will only ever grab the first source. If you have multiple sources it is receommended to use the overload with sourceName

NewImage ( string sourceName, string path ) : ImgixImage

Creates a new imgix image from with the options in this Imgix

Method Details

CreateImage() public static method

Creates a new imgix image from a supplied options object
public static CreateImage ( IImgixOptions options, string path ) : ImgixImage
options IImgixOptions The base options
path string The path to the image
return ImgixImage

CreateImage() public static method

Creates a new unsigned imgix image from a supplied sourceName and path
public static CreateImage ( string path, string host, bool useHttps = true ) : ImgixImage
path string The path to the image
host string The host of the source
useHttps bool Is the source https. Default: true
return ImgixImage

Imgix() public method

The base constructor. Sets up the Imgix url builder base options.
is null is empty
public Imgix ( IImgixOptions options ) : System
options IImgixOptions
return System

NewImage() public method

Creates a new imgix image from with the options in this Imgix Caution: Will only ever grab the first source. If you have multiple sources it is receommended to use the overload with sourceName
is null or whitespace.
public NewImage ( string path ) : ImgixImage
path string The path to the image
return ImgixImage

NewImage() public method

Creates a new imgix image from with the options in this Imgix
/// is null or whitespace. /// - or - /// is null or whitespace. /// There is no source with name in
public NewImage ( string sourceName, string path ) : ImgixImage
sourceName string The name of the source to use
path string The path to the image
return ImgixImage