Example #1
0
        public ColorPickerDialog()
        {
            ColorPickerPanel = new ColorPickerPanel();

            Title   = "Color Picker";
            Content = ColorPickerPanel;
        }
Example #2
0
        public override void Close()
        {
            base.Close();

            for (var i = 0; i < ColorPickerPanel.UserColors.Length; ++i)
            {
                var colorDisplay = ColorPickerPanel.GetUserColorImage(i);
                var color        = colorDisplay.Color;
                var alpha        = (int)(colorDisplay.Opacity * 255);
                ColorPickerPanel.UserColors[i] = ColorStorage.CreateColor(color.R, color.G, color.B, alpha);
            }
        }