Table of Contents

Class MagickColorFactory

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

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

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

Constructors

MagickColorFactory()

public MagickColorFactory()

Methods

Create()

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

public IMagickColor<byte> Create()

Returns

IMagickColor<byte>

A new ImageMagick.IMagickColor<> instance.

Create(IMagickColor<byte>)

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

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

Parameters

color IMagickColor<byte>

The color to use.

Returns

IMagickColor<byte>

A new ImageMagick.IMagickColor<> instance.

Create(byte, byte, byte)

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

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

Parameters

red byte

Red component value of this color.

green byte

Green component value of this color.

blue byte

Blue component value of this color.

Returns

IMagickColor<byte>

A new ImageMagick.IMagickColor<> instance.

Create(byte, byte, byte, byte)

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

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

Parameters

red byte

Red component value of this color.

green byte

Green component value of this color.

blue byte

Blue component value of this color.

alpha byte

Alpha component value of this color.

Returns

IMagickColor<byte>

A new ImageMagick.IMagickColor<> instance.

Create(byte, byte, byte, byte, byte)

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

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

Parameters

cyan byte

Cyan component value of this color.

magenta byte

Magenta component value of this color.

yellow byte

Yellow component value of this color.

black byte

Black component value of this color.

alpha byte

Alpha component value of this colors.

Returns

IMagickColor<byte>

A new ImageMagick.IMagickColor<> instance.

Create(string)

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

public IMagickColor<byte> 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<byte>

A new ImageMagick.IMagickColor<> instance.