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
byteRed component value of this color.
green
byteGreen component value of this color.
blue
byteBlue 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
byteRed component value of this color.
green
byteGreen component value of this color.
blue
byteBlue component value of this color.
alpha
byteAlpha 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
byteCyan component value of this color.
magenta
byteMagenta component value of this color.
yellow
byteYellow component value of this color.
black
byteBlack component value of this color.
alpha
byteAlpha 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
stringThe 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.