How to take screen shot on Framlayout?

All your problems with Audio, Video and Images.

How to take screen shot on Framlayout?

Postby wildwinds » Fri Jun 18, 2010 8:18 am

my app has framelayout on camera preview and overlay view.

i want get an image which is captured that camera preview and overlay view is operated over the framelayout

such like screen capture in the function of DDMS

in my source code

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. ...
  2. frame.addView(cameraview, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
  3. frame.addView(overlayview, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
  4. ...
  5. framelayout.getRootView().setDrawingCacheEnabled(true);
  6. framelayout.getRootView().buildDrawingCache();
  7. Bitmap bm = framelayout.getRootView().getDrawingCache();
  8.  
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


but it is possible to get an overlay view but camera view is not
wildwinds
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Jun 18, 2010 7:54 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Exabot [Bot] and 9 guests