Lines Matching refs:Bitmap
20 import android.graphics.Bitmap;
54 * {@link #extractThumbnail(Bitmap, int, int, int)} unless the output is the input.
80 * @return Bitmap, or null on failures
84 public static Bitmap createImageThumbnail(String filePath, int kind) {
93 Bitmap bitmap = null;
119 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
153 public static Bitmap createVideoThumbnail(String filePath, int kind) {
154 Bitmap bitmap = null;
182 bitmap = Bitmap.createScaledBitmap(bitmap, w, h, true);
200 public static Bitmap extractThumbnail(
201 Bitmap source, int width, int height) {
213 public static Bitmap extractThumbnail(
214 Bitmap source, int width, int height, int options) {
227 Bitmap thumbnail = transform(matrix, source, width, height,
303 private static Bitmap makeBitmap(int minSideLength, int maxNumOfPixels,
306 Bitmap b = null;
325 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
355 * Transform source Bitmap to targeted width and height.
357 private static Bitmap transform(Matrix scaler,
358 Bitmap source,
374 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight,
375 Bitmap.Config.ARGB_8888);
421 Bitmap b1;
424 b1 = Bitmap.createBitmap(source, 0, 0,
437 Bitmap b2 = Bitmap.createBitmap(
463 public Bitmap mBitmap;