protected void sliderControlHSL_Scroll(object sender, System.EventArgs e) { m_dontRefresh = DONT_REFRESH.COLOR_SLIDER; RGB = AdobeColors.HSB2RGB(sliderControlHSL.HSL); // Handle special cases where saturation is 0 (shades of gray) and it's not possible to devise a hue // Simply use the hue dictated by the color slider... if (sliderControlHSL.HSL.y < 1e-4f) { float3 TempHSL = AdobeColors.RGB2HSB((float3)m_RGB); TempHSL.x = sliderControlHSL.HSL.x; colorBoxControl.HSL = TempHSL; } }
// protected void m_cmd_OK_Click(object sender, System.EventArgs e) { // this.DialogResult = DialogResult.OK; // this.Close(); // } // // // protected void m_cmd_Cancel_Click(object sender, System.EventArgs e) { // this.DialogResult = DialogResult.Cancel; // this.Close(); // } #endregion protected void colorBoxControl_Scroll(object sender, System.EventArgs e) { m_dontRefresh = DONT_REFRESH.COLOR_BOX; RGB = AdobeColors.HSB2RGB(colorBoxControl.HSL); }