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
stringThe 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
ushortRed component value of this color.
green
ushortGreen component value of this color.
blue
ushortBlue 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
ushortRed component value of this color.
green
ushortGreen component value of this color.
blue
ushortBlue component value of this color.
alpha
ushortAlpha 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
ushortCyan component value of this color.
magenta
ushortMagenta component value of this color.
yellow
ushortYellow component value of this color.
black
ushortBlack component value of this color.
alpha
ushortAlpha component value of this colors.
Returns
- IMagickColor<ushort>
A new ImageMagick.IMagickColor<> instance.