Bitmap desBitmap = Bitmap.createBitmap(600, 600, Config.ARGB_8888);
Canvas canvas = new Canvas();
canvas.setBitmap(desBitmap);
Paint paint = new Paint();
paint.setColor(0xff000000);
paint.setStyle(Style.FILL);
canvas.drawRect(0, 0, 600, 600, paint);
iView.setDrawingCacheEnabled(true);
canvas.drawBitmap(iView.getDrawingCache(), 0, 0, paint);
iView.setImageBitmap(desBitmap);