Class of android.graphics · ImageDecoder.java · Android's reference
public final class ImageDecoder implements AutoCloseable
Decodes images into bitmaps and drawables, through BitmapFactory and the runtime's codec.
public static final int ALLOCATOR_DEFAULT = 0 sourcepublic static final int ALLOCATOR_SOFTWARE = 1 sourcepublic static final int ALLOCATOR_SHARED_MEMORY = 2 sourcepublic static final int ALLOCATOR_HARDWARE = 3 sourcepublic static final int MEMORY_POLICY_DEFAULT = 1 sourcepublic static final int MEMORY_POLICY_LOW_RAM = 0 sourcepublic static Source createSource(ContentResolver cr, Uri uri) sourcepublic static Source createSource(Resources res, int resId) sourcepublic static Source createSource(File file) sourcepublic static Source createSource(byte[] data) sourcepublic static Source createSource(byte[] data, int offset, int length) sourcepublic void setTargetSize(int width, int height) sourcepublic void setTargetSampleSize(int sampleSize) sourcepublic void setAllocator(int allocator) sourcepublic int getAllocator() sourcepublic void setMutableRequired(boolean mutable) sourcepublic boolean isMutableRequired() sourcepublic void close() empty body sourcepublic static Bitmap decodeBitmap(Source src) throws IOException sourcepublic static Bitmap decodeBitmap(Source src, OnHeaderDecodedListener listener) throws IOException sourcepublic static Drawable decodeDrawable(Source src) throws IOException sourcepublic static Drawable decodeDrawable(Source src, OnHeaderDecodedListener listener) throws IOException sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.