Home
last modified time | relevance | path

Searched refs:inSampleSize (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/docs/html/training/displaying-bitmaps/
Dload-bitmap.jd95 android.graphics.BitmapFactory.Options#inSampleSize} to {@code true} in your {@link
97 is decoded with an {@link android.graphics.BitmapFactory.Options#inSampleSize} of 4 produces a
108 int inSampleSize = 1;
116 // Choose the smallest ratio as inSampleSize value, this will guarantee
119 inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;
122 return inSampleSize;
127 android.graphics.BitmapFactory.Options#inSampleSize} values is faster and more efficient for the
134 android.graphics.BitmapFactory.Options#inSampleSize} value and {@link
147 // Calculate inSampleSize
148 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
[all …]
Dmanage-memory.jd288 int width = targetOptions.outWidth / targetOptions.inSampleSize;
289 int height = targetOptions.outHeight / targetOptions.inSampleSize;
/frameworks/base/media/java/android/media/
DThumbnailUtils.java112 options.inSampleSize = 1; in createImageThumbnail()
119 options.inSampleSize = computeSampleSize( in createImageThumbnail()
318 options.inSampleSize = 1; in makeBitmap()
325 options.inSampleSize = computeSampleSize( in makeBitmap()
500 exifOptions.inSampleSize = computeSampleSize(exifOptions, targetSize, maxPixels); in createThumbnailFromEXIF()
501 exifThumbWidth = exifOptions.outWidth / exifOptions.inSampleSize; in createThumbnailFromEXIF()
507 fullOptions.inSampleSize = computeSampleSize(fullOptions, targetSize, maxPixels); in createThumbnailFromEXIF()
508 fullThumbWidth = fullOptions.outWidth / fullOptions.inSampleSize; in createThumbnailFromEXIF()
DMediaScanner.java393 mBitmapOptions.inSampleSize = 1; in MediaScanner()
/frameworks/base/docs/html/training/tv/
Doptimizing-layouts-tv.jd213 …// Calculate the correct inSampleSize/scale value. This helps reduce memory use. It should be a po…
214 int inSampleSize = 1;
218 inSampleSize *= 2;
223 // Decode with inSampleSize
226 options.inSampleSize = inSampleSize;
/frameworks/volley/src/com/android/volley/toolbox/
DImageRequest.java161 decodeOptions.inSampleSize = in doParse()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java112 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize); in createLocalBitmap()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java96 public int inSampleSize; field in BitmapFactory.Options
/frameworks/base/docs/html/training/camera/
Dphotobasics.jd252 bmOptions.inSampleSize = scaleFactor;
/frameworks/base/media/java/android/media/videoeditor/
DMediaImageItem.java979 options.inSampleSize = sampleSize; in scaleImage()
/frameworks/base/api/
Dcurrent.txt8648 field public int inSampleSize;