Lets say you have a drawable you want to use?
the image
object – can be ImageView:
Bitmap bitImg = BitmapFactory.decodeResource(getResources(),
R.drawable.YOUR_DRAWABLE_NAME);
image.setImageBitmap(getCroppedBitmap(bitImg));
solved Applying a bitmap transformation on an ImageView [closed]