Example #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>();
 }
Example #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>();
 }
Example #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);
             *  }
             * }
             */
        }
Example #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);
         }
     }
      */
 }