//This function save Mark Damage Vehile screen as an image private void saveMarkDamageScreen(FrameLayout fmarkDamage, String path) { fmarkDamage.DrawingCacheEnabled = true; fmarkDamage.BuildDrawingCache(); Bitmap cache = fmarkDamage.GetDrawingCache(true); try { //imgVehicle.SetImageBitmap(cache); //ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ////FileOutputStream fileOutputStream = new FileOutputStream(path); var stream = new System.IO.FileStream(path, System.IO.FileMode.Create); cache.Compress(Bitmap.CompressFormat.Png, 100, stream); stream.Flush(); stream.Close(); } catch (Exception ex) { // TODO: handle exception } finally { fmarkDamage.DestroyDrawingCache(); } }