public Bitmap GetImage(int index, PLT0Node plt) { try { if (plt != null) { return(TextureConverter.DecodeIndexed(Header, plt.Palette, index + 1)); } else { return(TextureConverter.Decode(Header, index + 1)); } } catch { return(null); } }
public Bitmap GetImage(int index) { try { if (HasPlt == true) { return(TextureConverter.DecodeIndexed((byte *)Header + 0x20, Width, Height, Palette, index + 1, _format)); } else { return(TextureConverter.Decode((byte *)Header + 0x20, Width, Height, index + 1, _format)); } } catch { return(null); } }
public Bitmap GetImage(int index, PLT0Node plt) { try { if (WorkingUncompressed != DataSource.Empty) { if (plt != null) { return(TextureConverter.DecodeIndexed(Header1, plt.Palette, index + 1)); } else { return(TextureConverter.Decode(Header1, index + 1)); } } else { return(null); } } catch { return(null); } }
public Bitmap GetImage(int index, PLT0Node plt) { try { if (WorkingUncompressed != DataSource.Empty) { if (plt != null) { return(TextureConverter.DecodeIndexed( (VoidPtr)CommonHeader + 0x40, _width, _height, plt.Palette, index + 1, _format)); } else { return(TextureConverter.Decode( (VoidPtr)CommonHeader + 0x40, _width, _height, index + 1, _format)); } } else { return(null); } } catch { return(null); } }