Features
* One header file
* Direct2D drawing
* Alpha
* HSL and RGB support
* Can use the system dialog
* Supports a picker
To use, simply:
COLORPICK cp;
D2D1_COLOR_F red = {1.0f,0,0,1.0f};
HRESULT hr = cp.Show(hParent,red);
if (hr == S_OK)
{
// Color is set
}
Optionally you can configure parameters by passing this structure:
struct COLORPICKOPT
{
bool Alpha = 1;
int Mode = 1;
bool Dlg = 1;
bool LUpdate = 0;
bool AlsoUseSystem = 1;
bool UsePicker = 1;
float Resolution = 0.1f;
};