public static arrayToPalette ( byte data ) : Color[] | ||
data | byte | |
return | Color[] |
public PaletteViewer(File f) { InitializeComponent(); LanguageManager.ApplyToContainer(this, "PaletteViewer"); this.MdiParent = MdiParentForm.instance; this.f = f; this.pal = FilePalette.arrayToPalette(f.getContents()); if (pal.Length < 256) { is4bpp.Checked = true; } updatePalettes(); pictureBox1.Invalidate(); this.Icon = Properties.Resources.nsmbe; }
public PaletteViewer(File f) { InitializeComponent(); this.MdiParent = MdiParentForm.instance; this.f = f; fileLz = new LZFile(f, LZFile.CompressionType.LZ); this.pal = FilePalette.arrayToPalette(ROM.LZ77_Decompress(f.getContents())); if (pal.Length < 256) { is4bpp.Checked = true; } updatePalettes(); pictureBox1.Invalidate(); this.Icon = Properties.Resources.nsmbe; }