Class ColorYUV
- Namespace
- ImageMagick
- Assembly
- Magick.NET-Q16-AnyCPU.dll
Class that represents a YUV color.
public sealed class ColorYUV : ColorBase, IEquatable<ColorBase?>, IComparable<ColorBase?>
- Inheritance
-
ColorYUV
- Implements
- Inherited Members
Constructors
ColorYUV(double, double, double)
Initializes a new instance of the ColorYUV class.
public ColorYUV(double y, double u, double v)
Parameters
ydoubleY component value of this color.
udoubleU component value of this color.
vdoubleV component value of this color.
Properties
U
Gets or sets the U component value of this color. (value beteeen -0.5 and 0.5).
public double U { get; set; }
Property Value
V
Gets or sets the V component value of this color. (value beteeen -0.5 and 0.5).
public double V { get; set; }
Property Value
Y
Gets or sets the Y component value of this color. (value beteeen 0.0 and 1.0).
public double Y { get; set; }
Property Value
Methods
FromMagickColor(IMagickColor<ushort>)
Converts the specified ImageMagick.IMagickColor<> to an instance of this type.
public static ColorYUV? FromMagickColor(IMagickColor<ushort> color)
Parameters
colorIMagickColor<ushort>The color to use.
Returns
UpdateColor()
Updates the color value in an inherited class.
protected override void UpdateColor()
Operators
explicit operator ColorYUV?(MagickColor)
Converts the specified MagickColor to an instance of this type.
public static explicit operator ColorYUV?(MagickColor color)
Parameters
colorMagickColorThe color to use.