コード例 #1
0
 private void YUVValueChanged(object sender, System.EventArgs e)
 {
     if (!this.updating)
     {
         this.updating = true;
         UpdateRGB(ColorSpaceHelper.YUVtoRGB((double)this.yUD.Value / 100.0, (-0.436 + ((double)this.uUD.Value / 100.0)), (-0.615 + ((double)this.vUD.Value / 100.0))));
         UpdateCMYK(ColorSpaceHelper.RGBtoCMYK((int)redUD.Value, (int)greenUD.Value, (int)blueUD.Value));
         UpdateHSL(ColorSpaceHelper.RGBtoHSL((int)redUD.Value, (int)greenUD.Value, (int)blueUD.Value));
         UpdateHSB(ColorSpaceHelper.RGBtoHSB((int)redUD.Value, (int)greenUD.Value, (int)blueUD.Value));
         this.updating = false;
     }
 }