public Bitmap GetImage(int index) { try { if (hasPlt == true) { return(TextureConverter.DecodeREFTIndexed((byte *)Header + 0x20, Width, Height, Palette, index + 1, _format)); } else { return(TextureConverter.Decode((byte *)Header + 0x20, Width, Height, index + 1, _format)); } } catch { return(null); } }