private void SetLogitechColorFromCoordinates(Bitmap bitmap, KeyboardNames key, int x, int y)
{
var color = bitmap.GetPixel(x, y);
var rPer = (int) Math.Round(color.R/2.55);
var gPer = (int) Math.Round(color.G/2.55);
var bPer = (int) Math.Round(color.B/2.55);
LogitechGSDK.LogiLedSetLightingForKeyWithKeyName(key, rPer, gPer, bPer);
}
}