Code example for Bitmap

Methods: getHeightgetRowBytes

0
        super(maxSize);
    } 
 
    @Override 
    protected int sizeOf(String key, Bitmap value) {
        int bytes = (value.getRowBytes() * value.getHeight());
        return (bytes / 1024);
    } 
 
    @Override 
    public Bitmap getBitmap(String key) {
        return this.get(key);
    } 
 
    @Override 
    public void putBitmap(String key, Bitmap bitmap) {
        this.put(key, bitmap);
    } 
}