Draw with a Canvas over an Image in Android/Java
问题 I try to draw on a Canvas, where the background is an loaded Image in Android. It works just fine without the backgroundimage: background = (ImageView)view.findViewById(R.id.Background); Bitmap bitmap = Bitmap.createBitmap(canvasSize,canvasSize,Bitmap.Config.ARGB_8888); canvas = new Canvas(bitmap); background.setImageBitmap(bitmap); Im passing that canvas to another class and draw on it. That works fine. But when I do this: background = (ImageView)view.findViewById(R.id.Background); Bitmap