Package io.rong.imkit.picture.widget.longimage

## Interface ImageDecoder

- All Implemented Interfaces:

      public interface ImageDecoder

  Interface for image decoding classes, allowing the default based on the Skia library to be replaced with a custom class.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract Bitmap` | `decode(Context context, Uri uri)` | Decode an image.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### decode

           abstract Bitmap decode(Context context, Uri uri)

      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

      Parameters:
        `context` - Application context.
        `uri` - URI of the image.
      Returns:

        Dimensions of the image.