convert your drawable into a bitmap.
Bitmap androidImage = BitmapFactory .decodeResource(getResources(), R.drawable.mascot_1);