equal
deleted
inserted
replaced
37 |
37 |
38 public void save(View parent, OutputStream os) |
38 public void save(View parent, OutputStream os) |
39 { |
39 { |
40 Log.v("log_tag", "Width: " + parent.getWidth()); |
40 Log.v("log_tag", "Width: " + parent.getWidth()); |
41 Log.v("log_tag", "Height: " + parent.getHeight()); |
41 Log.v("log_tag", "Height: " + parent.getHeight()); |
42 Bitmap bm = Bitmap.createBitmap(parent.getWidth(), parent.getHeight(), Bitmap.Config.RGB_565);; |
42 Bitmap bm = Bitmap.createBitmap(parent.getWidth(), parent.getHeight(), |
|
43 Bitmap.Config.RGB_565);; |
43 Canvas canvas = new Canvas(bm); |
44 Canvas canvas = new Canvas(bm); |
44 parent.draw(canvas); |
45 parent.draw(canvas); |
45 bm.compress(Bitmap.CompressFormat.PNG, 90, os); |
46 bm.compress(Bitmap.CompressFormat.PNG, 90, os); |
46 } |
47 } |
47 |
48 |