public VerticalColorSlider() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize Colors m_hsl = new GraphUtil.HSL(); m_hsl.H = 1.0; m_hsl.S = 1.0; m_hsl.L = 1.0; m_rgb = GraphUtil.HSL_to_RGB(m_hsl); m_eDrawStyle = eDrawStyle.Hue; }
/// <summary> /// Constructor</summary> public ColorBox() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize Colors m_hsl = new AdobeColors.HSL(); m_hsl.H = 1.0; m_hsl.S = 1.0; m_hsl.L = 1.0; m_rgb = AdobeColors.HSL_to_RGB(m_hsl); m_eDrawStyle = eDrawStyle.Hue; }
/// <summary> /// Constructor</summary> public VerticalColorSlider() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize Colors m_hsl = new AdobeColors.HSL(); m_hsl.A = 1.0; m_hsl.H = 1.0; m_hsl.S = 1.0; m_hsl.L = 1.0; m_rgb = AdobeColors.HSL_to_RGB(m_hsl); m_eDrawStyle = eDrawStyle.Hue; }
public ColorBox() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize Colors _hsl = new HSL { H = 1.0, S = 1.0, L = 1.0 }; _rgb = ColorManager.HSL_to_RGB(_hsl); _drawStyle = eDrawStyle.Hue; }
public ColorPanel() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize Colors m_hsl = new GraphUtil.HSL(); m_hsl.H = 1.0; m_hsl.S = 1.0; m_hsl.L = 1.0; m_rgb = GraphUtil.HSL_to_RGB(m_hsl); m_eDrawStyle = eDrawStyle.Hue; this.DoubleBuffered = false; }
public VerticalColorSlider() { bufferGC = BufferedGraphicsManager.Current; bufferG = bufferGC.Allocate(this.CreateGraphics(), new Rectangle(8, 2, 40 - 16, 260 - 4)); // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize Colors m_hsl = new AdobeColors.HSL(); m_hsl.H = 1.0; m_hsl.S = 1.0; m_hsl.L = 1.0; m_rgb = AdobeColors.HSL_to_RGB(m_hsl); m_eDrawStyle = eDrawStyle.Hue; }
public ColorBox() { bufferGC = BufferedGraphicsManager.Current; bufferG = bufferGC.Allocate(this.CreateGraphics(), new Rectangle(2, 2, this.Width - 9, this.Height - 9)); // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Initialize Colors m_hsl = new AdobeColors.HSL(); m_hsl.H = 1.0; m_hsl.S = 1.0; m_hsl.L = 1.0; m_rgb = AdobeColors.HSL_to_RGB(m_hsl); m_eDrawStyle = eDrawStyle.Hue; }
public ZeroitAdobeVerticalColorSlider() { SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw | ControlStyles.UserPaint | ControlStyles.DoubleBuffer | ControlStyles.SupportsTransparentBackColor, true); // Initialize Colors m_hsl = new ColorConverters.HSL(); m_hsl.H = 1.0; m_hsl.S = 1.0; m_hsl.L = 1.0; m_rgb = ColorConverters.HSL_to_RGB(m_hsl); m_eDrawStyle = eDrawStyle.Hue; Invalidate(); mouseLocation = new Point(MousePosition.X, MousePosition.Y); }
private void ChangeDrawStyle( eDrawStyle style ) { try { ColorWell.DrawStyle = style; Slider.DrawStyle = style; } catch { } }