Lines Matching refs:Options
102 public static int computeSampleSize(BitmapFactory.Options options,
104 int initialSize = computeInitialSampleSize(options, minSideLength,
120 private static int computeInitialSampleSize(BitmapFactory.Options options,
122 double w = options.outWidth;
123 double h = options.outHeight;
280 BitmapFactory.Options options = null;
282 options = createNativeAllocOptions();
285 options);
295 BitmapFactory.Options options = null;
297 options = createNativeAllocOptions();
300 options);
305 BitmapFactory.Options options) {
309 if (options == null) options = new BitmapFactory.Options();
312 options.inJustDecodeBounds = true;
313 BitmapManager.instance().decodeFileDescriptor(fd, options);
314 if (options.mCancel || options.outWidth == -1
315 || options.outHeight == -1) {
318 options.inSampleSize = computeSampleSize(
319 options, minSideLength, maxNumOfPixels);
320 options.inJustDecodeBounds = false;
322 options.inDither = false;
323 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
324 return BitmapManager.instance().decodeFileDescriptor(fd, options);
432 // Returns Options that set the puregeable flag for Bitmap decode.
433 public static BitmapFactory.Options createNativeAllocOptions() {
434 return new BitmapFactory.Options();