コード例 #1
0
        public static BitmapDrawable GetReusableBitmapDrawable
        (
            int bitmapWidth,
            int bitmapHeight
        )
        {
            AndroidCachingBitmapDrawable bitmapDrawable = _bitmapCache.GetReusableBitmapDrawable
                                                          (
                bitmapWidth,
                bitmapHeight
                                                          );

            return(bitmapDrawable);
        }
コード例 #2
0
        public static AndroidCachingBitmapDrawable AddBitmapToCache
        (
            string cacheKey,
            Bitmap cachedBitmap,
            Resources resources
        )
        {
            var bitmapDrawable = new AndroidCachingBitmapDrawable(resources,
                                                                  cachedBitmap);

            _bitmapCache.AddBitmapDrawableToCache
            (
                cacheKey,
                bitmapDrawable
            );

            return(bitmapDrawable);
        }