y + height must be <= bitmap.height() in android

view story

http://stackoverflow.com – I want to create a bitmap form another but for each try it's a crash, this the error message java.lang.IllegalArgumentException: y + height must be <= bitmap.height() at android.graphics.Bitmap.createBitmap(Bitmap.java:557) at android.graphics.Bitmap.createBitmap(Bitmap.java:522) saveBitmap(GesturesActivity.java:166) This is where i try the creation : public void saveBitmap(){ Bitmap bitmapToSave = Bitmap.createBitmap(view.getWidth(),view.getHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmapToSave); view.draw(ca (HowTos)