示例#1
0
        public ImageInformation GetInfo(string key)
        {
            if (_reusableBitmaps.TryGetValue(key, out Tuple <ImageSource, ImageInformation> cacheEntry))
            {
                return(cacheEntry.Item2);
            }

            return(null);
        }
示例#2
0
        public ImageInformation GetInfo(string key)
        {
            Tuple <WriteableBitmap, ImageInformation> cacheEntry;

            if (_reusableBitmaps.TryGetValue(key, out cacheEntry))
            {
                return(cacheEntry.Item2);
            }

            return(null);
        }