Accord.Controls.ColorSlider.ColorSlider C# (CSharp) Method

ColorSlider() public method

Initializes a new instance of the ColorSlider class.
public ColorSlider ( ) : System
return System
        public ColorSlider()
        {
            InitializeComponent();

            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw |
                ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true);

            // load arrow bitmap
            Assembly assembly = this.GetType().Assembly;
            arrow = new Bitmap(assembly.GetManifestResourceStream("Accord.Controls.Resources.arrow.bmp"));
            arrow.MakeTransparent(Color.FromArgb(255, 255, 255));
        }