Last update Sun May 11 01:02:34 2014


zlib (See accompanying LICENSE file)

Mike Wey

class ColorYUV: dmagick.Color.Color;

The YUV color format describes a color by using the color components luminance and chrominance. The luminance component (Y) represents the brightness information of a color, the chrominance components (U and V) contain the color differences.

The YUV color format was developed for analog TV transmissions to provide compatibility between black-and-white television and color television: The luminance component is sufficient for black-and-white TV sets, whereas color TV sets need the additional chrominance information.


this(double y, double u, double v, double opacity = 0);

Create a YUV Color from the specified doubles.


double y The luminance as a value between 0.0 and 1.0
double u The U chrominance component as a value between -0.5 and 0.5
double v The V chrominance component as a value between -0.5 and 0.5

this(string color);

Create a Color from a X11 color specification string

void y(double y);
double y();

The value for the luminance in the range [0.0 .. 1.0]

void u(double u);
double u();

The value for U chrominance component in the range [-0.5 .. 0.5]

void v(double v);
double v();

The value for V chrominance component in the range [-0.5 .. 0.5]