Пример #1
0
 public FruaTlbFile(string fullPath)
 {
     _fullPath   = fullPath;
     _header     = new FruaTlbFileHeader();
     _offsets    = new List <uint>();
     _images     = new List <FruaTlbImage>();
     _colorTable = new FruaTlbColorTable();
     Bitmaps     = new List <Bitmap>();
 }
Пример #2
0
 public FruaTlbFile(string fullPath)
 {
     _fullPath = fullPath;
     _header = new FruaTlbFileHeader();
     _offsets = new List<uint>();
     _images = new List<FruaTlbImage>();
     _colorTable = new FruaTlbColorTable();
     Bitmaps = new List<Bitmap>();
 }
Пример #3
0
        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);
             *  }
             * }
             */
        }
Пример #4
0
 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);
         }
     }
      */
 }