// Y = Blue 255 -> 0 protected override void DrawBlue() { using (Graphics g = Graphics.FromImage(bmp)) { RGBA color = new RGBA(SelectedColor.RGBA.Red, SelectedColor.RGBA.Green, 0, SelectedColor.RGBA.Alpha); for (int y = 0; y < ClientHeight; y++) { color.Blue = 255 - Round(255 * (double)y / (ClientHeight - 1)); using (Pen pen = new Pen(color)) { g.DrawLine(pen, 0, y, ClientWidth, y); } } } }
public void CMYKUpdate() { RGBA = CMYK; HSB = CMYK; }
public MyColor(Color color) { RGBA = color; HSB = color; CMYK = color; }
public void HSBUpdate() { RGBA = HSB; CMYK = HSB; }