Windows forms has the handy ControlPaint.DrawImageDisabled to paint a color image in a grayed-out, disabled state. Is there a way to determine, for a given color, what the disabled color would be (as if it were drawn by DrawImageDisabled)?
Windows forms has the handy ControlPaint.DrawImageDisabled to paint a color image in a grayed-out,
Share
Reflector tells us that this is the code that creates the ColorMatrix that gets used: