private void m_opacitySlider_SelectedValueChanged(object sender, EventArgs e) { m_opacity = Math.Max(0, m_opacitySlider.Percent); m_opacity = Math.Min(1, m_opacitySlider.Percent); m_colorSample.Refresh(); UpdateInfo(); }
private void m_colorWheel_SelectedColorChanged(object sender, EventArgs e) { Color selcol = m_colorWheel.SelectedColor; if (selcol != m_selectedColor) { m_selectedColor = selcol; m_colorSample.Refresh(); if (lockColorTable == false && selcol != m_colorTable.SelectedItem) { m_colorTable.SetCustomColor(selcol); } } m_colorBar.SelectedHSLColor = m_colorWheel.SelectedHSLColor; UpdateInfo(); }