拍摄嵌入式Linux Framebuffer的屏幕截图 [英] Taking a Screen Shot of an Embedded Linux Framebuffer

查看:415
本文介绍了拍摄嵌入式Linux Framebuffer的屏幕截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在评估套件(Zoom OMAP35x Torpedo Development Kit)上运行嵌入式Linux。该板有一个液晶显示器,我希望能够拍摄屏幕截图将它们转换为gif或png。我可以通过执行以下操作获取原始数据:cp / dev / fb0 screen.raw,但我对如何将图像转换为gif或png格式感到困惑。

I'm running Embedded Linux on an evaluation kit (Zoom OMAP35x Torpedo Development Kit). The board has an LCD and I would like to be able to take screen shots convert them into a gif or png. I can get the raw data by doing the following: "cp /dev/fb0 screen.raw", but I am stumped on how to convert the image into a gif or png format.

我玩过ImageMagick转换(例如:convert -depth 8 -size 240x320 rgb:./ screen.raw -swap 0,2 -separate -combine screen.png),但一直无法获得一个看起来正确的图像。

I played around with convert from ImageMagick (example: "convert -depth 8 -size 240x320 rgb:./screen.raw -swap 0,2 -separate -combine screen.png"), but have been unable to get an image that looks right.

有没有人知道我可以试用的其他任何工具?或者有没有人有使用ImageMagick的提示?

Does anyone know of any other tools that I could try out? Or does anyone have tips for using ImageMagick?

推荐答案

看看 fbgrab ,这样做的应用程序(它将帧缓冲内容保存为png)。

Take a look at fbgrab, an application that does just that (it saves the framebuffer content as a png).

这篇关于拍摄嵌入式Linux Framebuffer的屏幕截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆