예제 #1
0
  public Bitmap fullSizeBitmap(
      int minSideLength, int maxNumberOfPixels, boolean rotateAsNeeded, boolean useNative) {
    Uri url = mContainer.contentUri(mId);
    if (url == null) return null;

    Bitmap b = Util.makeBitmap(minSideLength, maxNumberOfPixels, url, mContentResolver, useNative);

    if (b != null && rotateAsNeeded) {
      b = Util.rotate(b, getDegreesRotated());
    }

    return b;
  }
예제 #2
0
 public Bitmap miniThumbBitmap() {
   Bitmap b = null;
   try {
     long id = mId;
     b =
         BitmapManager.instance()
             .getThumbnail(mContentResolver, id, Images.Thumbnails.MICRO_KIND, null, false);
   } catch (Throwable ex) {
     Log.e(TAG, "miniThumbBitmap got exception", ex);
     return null;
   }
   if (b != null) {
     b = Util.rotate(b, getDegreesRotated());
   }
   return b;
 }