public FruaTlbFile(string fullPath) { _fullPath = fullPath; _header = new FruaTlbFileHeader(); _offsets = new List <uint>(); _images = new List <FruaTlbImage>(); _colorTable = new FruaTlbColorTable(); Bitmaps = new List <Bitmap>(); }
public FruaTlbFile(string fullPath) { _fullPath = fullPath; _header = new FruaTlbFileHeader(); _offsets = new List<uint>(); _images = new List<FruaTlbImage>(); _colorTable = new FruaTlbColorTable(); Bitmaps = new List<Bitmap>(); }
private void LoadExternalColorTable(string p) { // string filename = Path.GetDirectoryName(_fullPath) + "\\" + p; string filename = p; var dungcom = new FruaTlbFile(filename); dungcom.LoadBitmaps(); _colorTable = dungcom._colorTable; /* * using (var stream = new FileStream(filename, FileMode.Open)) * { * using (var reader = new BinaryReader(stream)) * { * _colorDataOffset = 0; * //ReadColorTable(reader, 194); * ReadColorTable(reader, 198); * } * } */ }
private void LoadExternalColorTable(string p) { // string filename = Path.GetDirectoryName(_fullPath) + "\\" + p; string filename = p; var dungcom = new FruaTlbFile(filename); dungcom.LoadBitmaps(); _colorTable = dungcom._colorTable; /* using (var stream = new FileStream(filename, FileMode.Open)) { using (var reader = new BinaryReader(stream)) { _colorDataOffset = 0; //ReadColorTable(reader, 194); ReadColorTable(reader, 198); } } */ }