Home | History | Annotate | Download | only in media

Lines Matching full:bitmap

24 import android.graphics.Bitmap;
47 // Rotates the bitmap by the specified degree.
48 // If a new bitmap is created, the original bitmap is recycled.
49 public static Bitmap rotate(Bitmap b, int degrees) {
54 Bitmap b2 = Bitmap.createBitmap(b, 0, 0, b.getWidth(), b.getHeight(), m, true);
60 // We have no memory to rotate. Return the original bitmap.
66 public static Bitmap transform(Matrix scaler, Bitmap source, int targetWidth, int targetHeight, boolean scaleUp) {
71 * In this case the bitmap is smaller, at least in one dimension,
76 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, Bitmap.Config.ARGB_8888);
111 Bitmap b1;
114 b1 = Bitmap.createBitmap(source, 0, 0, source.getWidth(), source.getHeight(), scaler, true);
122 Bitmap b2 = Bitmap.createBitmap(b1, dx1 / 2, dy1 / 2, targetWidth, targetHeight);
132 * Creates a centered bitmap of the desired size. Recycles the input.
136 public static Bitmap extractMiniThumb(Bitmap source, int width, int height) {
140 public static Bitmap extractMiniThumb(Bitmap source, int width, int height, boolean recycle) {
153 Bitmap miniThumbnail = transform(matrix, source, width, height, false);