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
colorIMagickColor<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
colorstringThe 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
redushortRed component value of this color.
greenushortGreen component value of this color.
blueushortBlue 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
redushortRed component value of this color.
greenushortGreen component value of this color.
blueushortBlue component value of this color.
alphaushortAlpha 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
cyanushortCyan component value of this color.
magentaushortMagenta component value of this color.
yellowushortYellow component value of this color.
blackushortBlack component value of this color.
alphaushortAlpha component value of this colors.
Returns
- IMagickColor<ushort>
A new ImageMagick.IMagickColor<> instance.