コード例 #1
0
 private void CMYKValueChanged(object sender, System.EventArgs e)
 {
     if (!this.updating)
     {
         this.updating = true;
         UpdateRGB(ColorSpaceHelper.CMYKtoRGB((double)this.cyanUD.Value / 100.0, (double)this.magentaUD.Value / 100.0, (double)this.yellowUD.Value / 100.0, (double)this.blackUD.Value / 100.0));
         UpdateHSL(ColorSpaceHelper.RGBtoHSL((int)redUD.Value, (int)greenUD.Value, (int)blueUD.Value));
         UpdateHSB(ColorSpaceHelper.RGBtoHSB((int)redUD.Value, (int)greenUD.Value, (int)blueUD.Value));
         UpdateYUV(ColorSpaceHelper.RGBtoYUV((int)redUD.Value, (int)greenUD.Value, (int)blueUD.Value));
         this.updating = false;
     }
 }