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需要用参考文档中的链接进行图片转换。

     

  • 相关阅读:
    tomcat部署https
    Java程序内存的简单分析
    接口设计原则
    英语常用口语
    洛谷 P3956 棋盘
    洛谷 P1101 单词方阵
    二分查找模板(准确找定值)
    洛谷 P1892 [BOI2003]团伙
    浅谈二分的边界问题
    deque简单解析
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/7909067.html
Copyright © 2011-2022 走看看