Searched refs:outputOptions (Results 1 – 2 of 2) sorted by relevance
127 BitmapWorkerOptions outputOptions) throws IOException { in getBitmapFromResource() argument135 return decodeBitmap((InputStream)drawable, outputOptions); in getBitmapFromResource()137 return createIconBitmap((Drawable) drawable, outputOptions); in getBitmapFromResource()158 private Bitmap scaleBitmapIfNecessary(BitmapWorkerOptions outputOptions, Bitmap bitmap) { in scaleBitmapIfNecessary() argument165 if (bitmap.getHeight() > outputOptions.getHeight()) { in scaleBitmapIfNecessary()166 heightScale = (float) outputOptions.getHeight() / (float) bitmap.getHeight(); in scaleBitmapIfNecessary()172 if (bitmap.getWidth() > outputOptions.getWidth()) { in scaleBitmapIfNecessary()173 widthScale = (float) outputOptions.getWidth() / (float) bitmap.getWidth(); in scaleBitmapIfNecessary()183 Log.d(TAG, "Scaling bitmap " + ((outputOptions.getResourceUri() != null) in scaleBitmapIfNecessary()184 ? outputOptions.getResourceUri().toString() in scaleBitmapIfNecessary()[all …]
153 BitmapWorkerOptions outputOptions) throws IOException { in getBitmapFromResource() argument158 Object drawable = loadDrawable(outputOptions.getContext(), iconResource); in getBitmapFromResource()161 return decodeBitmap((InputStream)drawable, outputOptions); in getBitmapFromResource()