public Palette(string name) { Bitmap b = new Bitmap(1,1,PixelFormat.Format8bppIndexed); cp = b.Palette; b.Dispose(); this.name=name; }