HomeSort by relevance Sort by last modified time
    Searched refs:bitmapOptions (Results 1 - 5 of 5) sorted by null

  /development/samples/training/threadsample/src/com/example/android/threadsample/
PhotoDecodeRunnable.java 143 BitmapFactory.Options bitmapOptions = new BitmapFactory.Options();
163 bitmapOptions.inJustDecodeBounds = true;
170 .decodeByteArray(imageBuffer, 0, imageBuffer.length, bitmapOptions);
177 int hScale = bitmapOptions.outHeight / targetHeight;
178 int wScale = bitmapOptions.outWidth / targetWidth;
195 bitmapOptions.inSampleSize = sampleSize;
204 bitmapOptions.inJustDecodeBounds = false;
220 bitmapOptions
  /development/samples/devbytes/graphics/BitmapAllocation/src/com/example/android/bitmapallocation/
BitmapAllocation.java 77 BitmapFactory.Options bitmapOptions = null;
79 // Re-use the bitmap by using BitmapOptions.inBitmap
80 bitmapOptions = mBitmapOptions;
81 bitmapOptions.inBitmap = mCurrentBitmap;
85 imageIDs[mCurrentIndex], bitmapOptions);
  /development/samples/devbytes/graphics/BitmapScaling/src/com/example/android/bitmapscaling/
BitmapScaling.java 28 * This example shows how the use of BitmapOptions affects the resulting size of a loaded
64 BitmapFactory.Options bitmapOptions = new BitmapFactory.Options();
65 bitmapOptions.inSampleSize = sampleSize;
68 R.drawable.jellybean_statue, bitmapOptions);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DrawableLoader.java 183 BitmapFactory.Options bitmapOptions = null;
189 bitmapOptions = new BitmapFactory.Options();
190 bitmapOptions.inJustDecodeBounds = true;
192 bitmapOptions.inPreferredConfig = options.getBitmapConfig();
194 bitmapOptions.inTempStorage = ByteArrayPool.get16KBPool().allocateChunk();
196 BitmapFactory.decodeStream(bufferedStream, null, bitmapOptions);
198 mOriginalWidth = bitmapOptions.outWidth;
199 mOriginalHeight = bitmapOptions.outHeight;
203 heightScale = bitmapOptions.outHeight / height;
209 widthScale = bitmapOptions.outWidth / width
    [all...]
BitmapWorkerTask.java 198 BitmapFactory.Options bitmapOptions = null;
204 bitmapOptions = new BitmapFactory.Options();
205 bitmapOptions.inJustDecodeBounds = true;
207 bitmapOptions.inPreferredConfig = options.getBitmapConfig();
209 bitmapOptions.inTempStorage = ByteArrayPool.get16KBPool().allocateChunk();
211 BitmapFactory.decodeStream(bufferedStream, null, bitmapOptions);
217 heightScale = (float) bitmapOptions.outHeight / height;
225 widthScale = (float) bitmapOptions.outWidth / width;
232 Log.d("BitmapWorkerTask", "Source bitmap: (" + bitmapOptions.outWidth + "x"
233 + bitmapOptions.outHeight + "). Max size: (" + options.getWidth() + "x
    [all...]

Completed in 615 milliseconds