Home | History | Annotate | Download | only in photos

Lines Matching full:bitmap

21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.Config;
78 mOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;
83 // Although this is the same size as the Bitmap that is likely already
85 // thread. Thus to simplify, this source will decode its own bitmap.
86 Bitmap preview = decodePreview(path, previewSize);
125 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) {
134 if (bitmap == null) {
135 bitmap = Bitmap.createBitmap(tileSize, tileSize, Bitmap.Config.ARGB_8888);
139 mOptions.inBitmap = bitmap;
142 bitmap = mDecoder.decodeRegion(mWantRegion, mOptions);
144 if (mOptions.inBitmap != bitmap && mOptions.inBitmap != null) {
149 if (bitmap == null) {
152 return bitmap;
155 private Bitmap getTileWithoutReusingBitmap(
164 Bitmap bitmap = mDecoder.decodeRegion(mOverlapRegion, mOptions);
166 if (bitmap == null) {
171 return bitmap;
174 Bitmap result = Bitmap.createBitmap(tileSize, tileSize, Config.ARGB_8888);
179 mCanvas.drawBitmap(bitmap,
187 * Note that the returned bitmap may have a long edge that's longer
190 private Bitmap decodePreview(String file, int targetSize) {
195 Bitmap result = BitmapFactory.decodeFile(file, mOptions);
210 private static Bitmap ensureGLCompatibleBitmap(Bitmap bitmap) {
211 if (bitmap == null || bitmap.getConfig() != null) {
212 return bitmap;
214 Bitmap newBitmap = bitmap.copy(Config.ARGB_8888, false);
215 bitmap.recycle();