BitmapFactory

Class of android.graphics · BitmapFactory.java · Android's reference

public class BitmapFactory

Bitmaps from encoded images (PNG, JPEG, WebP, GIF, BMP), decoded by the runtime's codec (snx.android.hwui.Image). A PNG's nine-patch chunk (npTc, which aapt writes) becomes the bitmap's, and its padding the decode's.

Nested types

Constructors

public BitmapFactory() empty body source

Methods

public static Bitmap decodeFile(String pathName) source
public static Bitmap decodeFile(String pathName, Options opts) source
public static Bitmap decodeResource(Resources res, int id) source
public static Bitmap decodeResource(Resources res, int id, Options opts) source
public static Bitmap decodeResourceStream(Resources res, TypedValue value, InputStream is, Rect pad, Options opts) source
public static Bitmap decodeByteArray(byte[] data, int offset, int length) source
public static Bitmap decodeByteArray(byte[] data, int offset, int length, Options opts) source
public static Bitmap decodeFileDescriptor(FileDescriptor fd) source
public static Bitmap decodeFileDescriptor(FileDescriptor fd, Rect outPadding, Options opts) source
public static Bitmap decodeStream(InputStream is) source
public static Bitmap decodeStream(InputStream is, Rect outPadding, Options opts) source

Made 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.