Linux Framebuffer save as picture

2022-11-18,,,

/*********************************************************************************
* Linux Framebuffer save as picture
* 说明:
* 系统调试的,有时候需要处理Framebuffer中的内容。
*
* 2017-11-28 深圳 南山平山村 曾剑锋
********************************************************************************/ 一、参考文档:
. Upload PPM file to convert
https://www.coolutils.com/online/PPM-to-PNG# 二、fbdump help
# fbdump --help
fbdump 0.4. (c) Richard Drummond - Dumps the contents of the framebuffer to stdout as a PPM file.
Usage:
-fb <string> Path to the framebuffer device to dump is <string>
-vt <n> Bring virtual terminal no. <n> to the foreground before dumping
-delay <n> Wait <n> seconds before dumping
--help Show this help
# 三、截屏:
. fbdump -fb /dev/fb0 > screenshot_fb0.ppm
. Windows看不了ppm图片,Linux可以直接看;
. Windows需要用参考文档中的链接进行图片转换。

Linux Framebuffer save as picture的相关教程结束。

《Linux Framebuffer save as picture.doc》

下载本文的Word格式文档,以方便收藏与打印。