init

public abstract Point init(Context context, Uri uri)

Initialise the decoder. 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

Return

Dimensions of the image.

Parameters

context

Application context. A reference may be held, but must be cleared on recycle.

uri

URI of the image.

Throws

Exception

if initialisation fails.