Lines Matching refs:Bitmap

32  * Creates Bitmap objects from various sources, including files, streams,
59 * <p>You should still always use the returned Bitmap of the decode
64 * but in all cases you should use the Bitmap returned by the decoding
72 * other bitmaps as long as the resulting {@link Bitmap#getByteCount()
74 * Bitmap#getAllocationByteCount() allocated byte count} of the reused
82 * Additionally, the {@link android.graphics.Bitmap.Config
88 * <p>BitmapRegionDecoder will draw its requested content into the Bitmap
90 * than the provided Bitmap. The provided Bitmap's width, height, and
91 * {@link Bitmap.Config} will not be changed.
95 * formats supported by BitmapRegionDecoder support Bitmap reuse via
98 * @see Bitmap#reconfigure(int,int, android.graphics.Bitmap.Config)
100 public Bitmap inBitmap;
103 * If set, decode methods will always return a mutable Bitmap instead of
105 * effects to a Bitmap loaded through BitmapFactory.
136 * Image are loaded with the {@link Bitmap.Config#ARGB_8888} config by
139 public Bitmap.Config inPreferredConfig = Bitmap.Config.ARGB_8888;
159 * @see Bitmap#hasAlpha()
160 * @see Bitmap#isPremultiplied()
177 * {@link Bitmap#setDensity(int) Bitmap.setDensity(int)}). In addition,
192 * @see Bitmap#setDensity(int)
230 * must also used {@link Bitmap#getScaledWidth(int)
231 * Bitmap.getScaledWidth} and {@link Bitmap#getScaledHeight
232 * Bitmap.getScaledHeight} to account for any different between the
397 public static Bitmap decodeFile(String pathName, Options opts) {
398 Bitmap bm = null;
427 public static Bitmap decodeFile(String pathName) {
432 * Decode a new Bitmap from an InputStream. This InputStream was obtained from
435 public static Bitmap decodeResourceStream(Resources res, TypedValue value,
470 public static Bitmap decodeResource(Resources res, int id, Options opts) {
471 Bitmap bm = null;
507 public static Bitmap decodeResource(Resources res, int id) {
524 public static Bitmap decodeByteArray(byte[] data, int offset, int length, Options opts) {
529 Bitmap bm;
555 public static Bitmap decodeByteArray(byte[] data, int offset, int length) {
562 private static void setDensityFromOptions(Bitmap outputBitmap, Options opts) {
580 outputBitmap.setDensity(Bitmap.getDefaultDensity());
607 public static Bitmap decodeStream(InputStream is, Rect outPadding, Options opts) {
614 Bitmap bm = null;
641 private static Bitmap decodeStreamInternal(InputStream is, Rect outPadding, Options opts) {
659 public static Bitmap decodeStream(InputStream is) {
677 public static Bitmap decodeFileDescriptor(FileDescriptor fd, Rect outPadding, Options opts) {
678 Bitmap bm;
714 public static Bitmap decodeFileDescriptor(FileDescriptor fd) {
718 private static native Bitmap nativeDecodeStream(InputStream is, byte[] storage,
720 private static native Bitmap nativeDecodeFileDescriptor(FileDescriptor fd,
722 private static native Bitmap nativeDecodeAsset(long nativeAsset, Rect padding, Options opts);
723 private static native Bitmap nativeDecodeByteArray(byte[] data, int offset,