public RGBd(byte[] bytes)
{
int startIndex = 0;
red = BitConverter.ToDouble(bytes, startIndex + 0);
green = BitConverter.ToDouble(bytes, startIndex + (1 * sizeof(double)));
blue = BitConverter.ToDouble(bytes, startIndex + (2 * sizeof(double)));
}
#endregion