Table of Contents

Class MagickColorFactory

Namespace
ImageMagick
Assembly
Magick.NET-Q16-AnyCPU.dll

Class that can be used to create ImageMagick.IMagickColor<> instances.

public sealed class MagickColorFactory : IMagickColorFactory<ushort>
Inheritance
MagickColorFactory
Implements
IMagickColorFactory<ushort>
Inherited Members

Constructors

MagickColorFactory()

public MagickColorFactory()

Methods

Create()

Initializes a new instance that implements ImageMagick.IMagickColor<>.

public IMagickColor<ushort> Create()

Returns

IMagickColor<ushort>

A new ImageMagick.IMagickColor<> instance.

Create(IMagickColor<ushort>)

Initializes a new instance that implements ImageMagick.IMagickColor<>.

public IMagickColor<ushort> Create(IMagickColor<ushort> color)

Parameters

color IMagickColor<ushort>

The color to use.

Returns

IMagickColor<ushort>

A new ImageMagick.IMagickColor<> instance.

Create(string)

Initializes a new instance that implements ImageMagick.IMagickColor<>.

public IMagickColor<ushort> Create(string color)

Parameters

color string

The RGBA/CMYK hex string or name of the color (http://www.imagemagick.org/script/color.php). For example: #F000, #FF000000, #FFFF000000000000.

Returns

IMagickColor<ushort>

A new ImageMagick.IMagickColor<> instance.

Create(ushort, ushort, ushort)

Initializes a new instance that implements ImageMagick.IMagickColor<>.

public IMagickColor<ushort> Create(ushort red, ushort green, ushort blue)

Parameters

red ushort

Red component value of this color.

green ushort

Green component value of this color.

blue ushort

Blue component value of this color.

Returns

IMagickColor<ushort>

A new ImageMagick.IMagickColor<> instance.

Create(ushort, ushort, ushort, ushort)

Initializes a new instance that implements ImageMagick.IMagickColor<>.

public IMagickColor<ushort> Create(ushort red, ushort green, ushort blue, ushort alpha)

Parameters

red ushort

Red component value of this color.

green ushort

Green component value of this color.

blue ushort

Blue component value of this color.

alpha ushort

Alpha component value of this color.

Returns

IMagickColor<ushort>

A new ImageMagick.IMagickColor<> instance.

Create(ushort, ushort, ushort, ushort, ushort)

Initializes a new instance that implements ImageMagick.IMagickColor<>.

public IMagickColor<ushort> Create(ushort cyan, ushort magenta, ushort yellow, ushort black, ushort alpha)

Parameters

cyan ushort

Cyan component value of this color.

magenta ushort

Magenta component value of this color.

yellow ushort

Yellow component value of this color.

black ushort

Black component value of this color.

alpha ushort

Alpha component value of this colors.

Returns

IMagickColor<ushort>

A new ImageMagick.IMagickColor<> instance.