C# Class Imgix_Dotnet.Operations.Palette.PaletteExtensions

Extensions for extracting color palettes out of images
Exibir arquivo Open project: estei/Imgix-Dotnet

Public Methods

Method Description
CSSPrefix ( this image, string value ) : ImgixImage

The prefix to use with css classes generated when palette set to css

Colors ( this image, int value ) : ImgixImage

The number of colors that should be returned when extracting the palette

Palette ( this image, string value ) : ImgixImage

The format you want the palette in.

Method Details

CSSPrefix() public static method

The prefix to use with css classes generated when palette set to css
public static CSSPrefix ( this image, string value ) : ImgixImage
image this The image to transform
value string /// The prefix value /// Ex. [prefix]-fg-1 ///
return ImgixImage

Colors() public static method

The number of colors that should be returned when extracting the palette
public static Colors ( this image, int value ) : ImgixImage
image this The image to transform
value int /// Values: 0-16 ///
return ImgixImage

Palette() public static method

The format you want the palette in.
public static Palette ( this image, string value ) : ImgixImage
image this The image to transform
value string /// Values: css or json ///
return ImgixImage