Lines Matching refs:BitmapFactory
24 import android.graphics.BitmapFactory;
109 BitmapFactory.Options options = new BitmapFactory.Options();
112 BitmapFactory.decodeFileDescriptor(fd, null, options);
123 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options);
241 * of 8 because BitmapFactory only honors sample size this way.
242 * For example, BitmapFactory downsamples an image by 2 even though the
245 private static int computeSampleSize(BitmapFactory.Options options,
263 private static int computeInitialSampleSize(BitmapFactory.Options options,
294 * Clients are allowed to pass their own BitmapFactory.Options used for bitmap decoding. A
295 * new BitmapFactory.Options will be created if options is null.
299 BitmapFactory.Options options) {
304 if (options == null) options = new BitmapFactory.Options();
309 BitmapFactory.decodeFileDescriptor(fd, null, options);
320 b = BitmapFactory.decodeFileDescriptor(fd, null, options);
482 BitmapFactory.Options fullOptions = new BitmapFactory.Options();
483 BitmapFactory.Options exifOptions = new BitmapFactory.Options();
490 BitmapFactory.decodeByteArray(thumbData, 0, thumbData.length, exifOptions);
497 BitmapFactory.decodeFile(filePath, fullOptions);
506 sizedThumbBitmap.mBitmap = BitmapFactory.decodeByteArray(thumbData, 0,
515 sizedThumbBitmap.mBitmap = BitmapFactory.decodeFile(filePath, fullOptions);