I am trying to port Java code to android code. source code is here : screenshot:java
here
RawImage raw=device.getScreenshot();
which captures screenshot of android screen and save it as RawImage
.
this RawImage is defined in "ddmlib.RawImage" (ddms ) which is further converted into BufferImage. Now the problem is - android doesnt support java.awt.image.BufferedImage.
So, how this RawImage
can be coverted in Bitmap or any other android supported image format.
Alternatively , is there any way through which RawImage
can be used directly either to display or to save in external storage ?