Android Bitmap Create getBitmapFromImageView(ImageView theImage)

Here you can find the source of getBitmapFromImageView(ImageView theImage)

Description

get Bitmap From Image View

License

Apache License

Declaration

public static Bitmap getBitmapFromImageView(ImageView theImage) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;

import android.widget.ImageView;

public class Main {
    public static Bitmap getBitmapFromImageView(ImageView theImage) {
        return ((BitmapDrawable) theImage.getDrawable()).getBitmap();
    }/*from w  ww .ja  va 2 s  .  c o  m*/
}

Related

  1. getImage(String absPath)
  2. createCompatibleImage(int width, int height)
  3. createCompatibleImage(BufferedImage image, int width, int height)
  4. getBitMapFromStream(String filename)
  5. getBitmap(int resId, Context ctx)
  6. getBitmapFromResource(Resources resources, int resourceId, int reqWidth, int reqHeight)
  7. getBitmapFromURI(Context context, Uri uri)
  8. getBackground(int bgcolor)
  9. makeBitmap(int minSideLength, int maxNumOfPixels, Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, BitmapFactory.Options options)