Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何打开原始图像文件?_Android_Framebuffer_Rooted Device - Fatal编程技术网

Android 如何打开原始图像文件?

Android 如何打开原始图像文件?,android,framebuffer,rooted-device,Android,Framebuffer,Rooted Device,在我的应用程序中,我可以读取帧缓冲区数据,但我无法打开图像文件,我不知道为什么,但通过搜索我知道它是原始格式的。 有人能告诉我如何将这种原始格式的数据打开为人类可读的图像格式吗 我获取原始图像文件的代码如下 Process sh = Runtime.getRuntime().exec("su", null,null); OutputStream os = sh.getOutputStream(); os.write(("/system/bin/screencap -p " + ss.get

在我的应用程序中,我可以读取帧缓冲区数据,但我无法打开图像文件,我不知道为什么,但通过搜索我知道它是原始格式的。 有人能告诉我如何将这种原始格式的数据打开为人类可读的图像格式吗 我获取原始图像文件的代码如下

Process sh = Runtime.getRuntime().exec("su", null,null);

OutputStream  os = sh.getOutputStream();

os.write(("/system/bin/screencap -p " + ss.getAbsolutePath()).getBytes("ASCII"));

os.flush();

os.close();

sh.waitFor();

提前感谢

如果我收到您的问题,请尝试以下方法:-

myIageView.setImageResource(R.raw.imageName);

我获取原始图像的代码是你的“问题”无法回答。什么帧缓冲区?缓冲区是如何填充的?您使用什么代码尝试读取缓冲区?等等。你的问题是“我怎样才能抓拍屏幕”@Simon,是的,你在写。但是我有人拍摄了屏幕截图,但我无法打开它。你能告诉我为什么以及如何打开它吗???