android.support.v4.graphics.BitmapCompat Java Examples
The following examples show how to use
android.support.v4.graphics.BitmapCompat.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RoundedBitmapDrawableFactory.java From adt-leanback-support with Apache License 2.0 | 5 votes |
@Override public void setMipMap(boolean mipMap) { if (mBitmap != null) { BitmapCompat.setHasMipMap(mBitmap, mipMap); invalidateSelf(); } }
Example #2
Source File: DefaultImageCache.java From CrossBow with Apache License 2.0 | 5 votes |
/** * @param size - number of byes to use for the cache; */ public DefaultImageCache(int size) { imageCache = new LruCache<String, Bitmap>(size){ @Override protected int sizeOf(String key, Bitmap value) { return BitmapCompat.getAllocationByteCount(value); } }; }
Example #3
Source File: RoundedBitmapDrawableFactory.java From letv with Apache License 2.0 | 4 votes |
public void setMipMap(boolean mipMap) { if (this.mBitmap != null) { BitmapCompat.setHasMipMap(this.mBitmap, mipMap); invalidateSelf(); } }
Example #4
Source File: RoundedBitmapDrawableFactory.java From letv with Apache License 2.0 | 4 votes |
public boolean hasMipMap() { return this.mBitmap != null && BitmapCompat.hasMipMap(this.mBitmap); }
Example #5
Source File: RoundedBitmapDrawableFactory.java From adt-leanback-support with Apache License 2.0 | 4 votes |
@Override public boolean hasMipMap() { return mBitmap != null && BitmapCompat.hasMipMap(mBitmap); }