コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: ColorBox.cs プロジェクト: sbambach/ATF
        /// <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;
        }
コード例 #3
0
        /// <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;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
        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;
        }
コード例 #6
0
        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;
        }
コード例 #7
0
ファイル: VerticalColorSlider.cs プロジェクト: ysmood/Archer
        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;
        }
コード例 #8
0
ファイル: ColorBox.cs プロジェクト: ewin66/Archer
        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;
        }
コード例 #9
0
ファイル: VerticalColorSlider.cs プロジェクト: ewin66/Archer
        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 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);
        }
コード例 #11
0
ファイル: ColorBox.cs プロジェクト: ysmood/Archer
        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;
        }
コード例 #12
0
 private void ChangeDrawStyle( eDrawStyle style )
 {
     try
     {
         ColorWell.DrawStyle = style;
         Slider.DrawStyle    = style;
     }
     catch
     {
     }
 }