public ColorResolution(int repert, ColorResolutionStruct[] colorResolutions)
 {
     if (colorResolutions as object == null)
     {
         return;
     }
     Colors           = Parette(repert, colorResolutions);
     ColorResolutions = new ColorResolutionStruct[colorResolutions.GetLength(0)];
     colorResolutions.CopyTo(ColorResolutions, 0);
 }
 public ColorResolution(ColorResolution parette)
 {
     if (parette as object == null || parette.Colors == null)
     {
         return;
     }
     Colors = new Color[parette.Colors.GetLength(0)];
     parette.Colors.CopyTo(Colors, 0);
     ColorResolutions = new ColorResolutionStruct[parette.ColorResolutions.GetLength(0)];
     parette.ColorResolutions.CopyTo(ColorResolutions, 0);
 }