private void loadBitmaps(int daxBlockId, string fileName, List <Bitmap> bitmaps8x8)
        {
            // load 8x8 bitmaps from daxBlockId in fileName into the list bitmaps8x8 to simulate the order the bitmaps would be in memory in the game
            var file = DaxImageCache.GetDaxImageFile(string.Format(fileName));

            bitmaps8x8.AddRange(file.GetBitmapDictionary().Where(k => k.Key == daxBlockId).SelectMany(k => k.Value));
        }
        private int getBitmapCount(int daxBlockId, string fileName)
        {
            // load 8x8 bitmaps from daxBlockId in fileName into the list bitmaps8x8 to simulate the order the bitmaps would be in memory in the game
            if (File.Exists(fileName) == false)
            {
                return(0);
            }

            var file = DaxImageCache.GetDaxImageFile(string.Format(fileName));
            IReadOnlyList <Bitmap> bitmaps;

            int count = file.GetBitmapDictionary().Where(k => k.Key == daxBlockId).Sum(k => k.Value.Count);

            return(count);
        }