First time here? Check out the FAQ!
I had the same problem.
Try this:
Bitmap scale = Bitmap.createBitmap(gry.width(), gry.height(), Bitmap.Config.ARGB_8888);