decode
android.graphics.Bitmap decode(android.content.Context context,
android.net.Uri uri)
throws java.lang.Exception
Decode an image. When possible, initial setup work once in this method. This method
must return the dimensions of the image. The URI can be in one of the following formats:
File: file:///scard/picture.jpg
Asset: file:///android_asset/picture.png
Resource: android.resource://com.example.app/drawable/picture
- 参数:
context
- Application context. A reference may be held, but must be cleared on recycle.
uri
- URI of the image.
- 返回:
- Dimensions of the image.
- 抛出:
java.lang.Exception
- if initialisation fails.