Table of Contents

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

y double

Y component value of this color.

u double

U component value of this color.

v double

V 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

double

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

double

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

double

Methods

FromMagickColor(IMagickColor<ushort>)

Converts the specified ImageMagick.IMagickColor<> to an instance of this type.

public static ColorYUV? FromMagickColor(IMagickColor<ushort> color)

Parameters

color IMagickColor<ushort>

The color to use.

Returns

ColorYUV

A ColorYUV instance.

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

color MagickColor

The color to use.

Returns

ColorYUV

A ColorYUV instance.