zoukankan      html  css  js  c++  java
  • Linux Framebuffer save as picture

    /*********************************************************************************
     *                     Linux Framebuffer save as picture
     * 说明:
     *     系统调试的,有时候需要处理Framebuffer中的内容。
     *
     *                                              2017-11-28 深圳 南山平山村 曾剑锋
     ********************************************************************************/
        
    一、参考文档:
        1. Upload PPM file to convert    
            https://www.coolutils.com/online/PPM-to-PNG#
    
    二、fbdump help
        # fbdump --help
        fbdump 0.4.2
        
        (c) Richard Drummond 2001-2007
        
        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
        #
    
    
    三、截屏:
        1. fbdump -fb /dev/fb0 > screenshot_fb0.ppm
        2. Windows看不了ppm图片,Linux可以直接看;
        3. Windows需要用参考文档中的链接进行图片转换。

     

  • 相关阅读:
    MySQL 第四天
    MySQL 第三天
    MySQL第二天
    MySQL第一天
    Day27-28 基础加强
    Day24-26 项目练习(图书商城)
    Day23 ajax
    Day22 文件上传下载和javaMail
    Day21 过滤器(Filter)
    小轮播图
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/7909067.html
Copyright © 2011-2022 走看看