private int getWin32Color(Color color, int shift)
{
int R = 0; int G = 0; int B = 0;
if (shift != 0)
{
R = color.R + shift;
if (R < 0) { R = 0; } else if (R > 255) { R = 255; }
G = color.G + shift;
if (G < 0) { G = 0; } else if (G > 255) { G = 255; }
B = color.B + shift;
if (B < 0) { B = 0; } else if (B > 255) { B = 255; }
}
return System.Drawing.ColorTranslator.ToWin32(Color.FromArgb(R, G, B));
}