Preview

image

  • HSV and RGB colors
  • Full color palette
  • Preset color list

Usage

// create ColorDialog and assign a callback method
ColorDialog myColorDialog = new ColorDialog(guiManager, Color.Lavender,
    new ColorDialog.OKClickEventHandler((selectedColor) => { /* OK clicked and selectedColor selected */ }));

// set some properties
// change preset colors list
myColorDialog.ColorsList[0] = Color.Khaki;
myColorDialog.ColorsList[4] = Color.Indigo;

// show ColorDialog
myColorDialog.Show();

Last edited Apr 4, 2012 at 2:38 AM by qisur, version 8

Comments

No comments yet.