Back to project page ion.
The source code is released under:
Apache License
If you think the Android project ion listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.koushikdutta.ion.bitmap; /* w ww .j a v a 2 s . c o m*/ import android.graphics.Bitmap; import android.graphics.BitmapRegionDecoder; import android.graphics.Point; import com.koushikdutta.async.util.UntypedHashtable; import com.koushikdutta.ion.gif.GifDecoder; import java.io.File; import java.nio.ByteBuffer; /** * Created by koush on 6/12/13. */ public class BitmapInfo { public BitmapInfo(String key, String mimeType, Bitmap bitmap, Point originalSize) { this.originalSize = originalSize; this.bitmap = bitmap; this.key = key; this.mimeType = mimeType; } final public Point originalSize; public long loadTime = System.currentTimeMillis(); public long drawTime; final public String key; public int loadedFrom; final public Bitmap bitmap; public Exception exception; public GifDecoder gifDecoder; public BitmapRegionDecoder decoder; public File decoderFile; public final String mimeType; public final UntypedHashtable extras = new UntypedHashtable(); public int sizeOf() { if (bitmap != null) return bitmap.getRowBytes() * bitmap.getHeight(); if (gifDecoder != null) return gifDecoder.getGifDataLength(); return 0; } }