Example usage for Java android.graphics ImageDecoder fields, constructors, methods, implement or subclass
The text is from its open source code.
Source | createSource(@NonNull Resources res, int resId) Create a new Source Source from a resource. |
Source | createSource(@NonNull ContentResolver cr, @NonNull Uri uri) Create a new Source Source from a android.net.Uri . |
Source | createSource(@NonNull AssetManager assets, @NonNull String fileName) Create a new Source Source from a file in the "assets" directory. |
Source | createSource(Resources res, InputStream is) Internal API used to generate bitmaps for use by Drawables (i.e. |
Bitmap | decodeBitmap(@NonNull Source src, @NonNull OnHeaderDecodedListener listener) Create a Bitmap from a Source . |
void | setCrop(@Nullable Rect subset) Crop the output to subset of the (possibly) scaled image. |
ImageDecoder | setResize(int width, int height) |