public ColorF(ColorD color)
 {
     red   = (float)color.Red;
     green = (float)color.Green;
     blue  = (float)color.Blue;
     alpha = (float)color.Alpha;
 }
 public ColorB(ColorD color)
 {
     red   = (byte)(255.0 * color.Red + 0.5);
     green = (byte)(255.0 * color.Green + 0.5);
     blue  = (byte)(255.0 * color.Blue + 0.5);
     alpha = (byte)(255.0 * color.Alpha + 0.5);
 }