谷动谷力

 找回密码
 立即注册
查看: 3104|回复: 0
打印 上一主题 下一主题
收起左侧

【平头哥Sipeed LicheeRV 86开发板试用】fbviewer显示图片体验

[复制链接]
跳转到指定楼层
楼主
发表于 2022-4-19 00:35:53 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
【平头哥Sipeed LicheeRV 86开发板试用】fbviewer显示图片体验


概述


本次体验【平头哥Sipeed LicheeRV 86开发板试用】fbviewer显示图片功能。
fbviewer命令认识

不会用的命令,先help 下:


  1. root@MaixLinux:~# fbviewer -help
  2. Usage: fbviewer [options] image1 image2 image3 ...

  3. Available options:
  4.   -h, --help          Show this help
  5.   -a, --alpha         Use the alpha channel (if applicable)
  6.   -c, --dontclear     Do not clear the screen before and after displaying the image
  7.   -u, --donthide      Do not hide the cursor before and after displaying the image
  8.   -i, --noinfo        Supress image information
  9.   -f, --stretch       Strech (using a simple resizing routine) the image to fit onto screen if necessary
  10.   -k, --colorstretch  Strech (using a 'color average' resizing routine) the image to fit onto screen if necessary
  11.   -e, --enlarge       Enlarge the image to fit the whole screen if necessary
  12.   -r, --ignore-aspect Ignore the image aspect while resizing
  13.   -s <delay>, --delay <d>  Slideshow, 'delay' is the slideshow delay in tenths of seconds.

  14. Input keys:
  15. r          : Redraw the image
  16. < or ,     : Previous image
  17. > or .     : Next image
  18. a, d, w, x : Pan the image
  19. f          : Toggle resizing on/off
  20. k          : Toggle resizing quality
  21. e          : Toggle enlarging on/off
  22. i          : Toggle respecting the image aspect on/off
  23. n          : Rotate the image 90 degrees left
  24. m          : Rotate the image 90 degrees right
  25. p          : Disable all transformations
  26. **********************************************
复制代码

明白了,用法,来显示一张图片吧

  1. root@MaixLinux:~# fbviewer haoran.jpg -f
  2. fbv - The Framebuffer Viewer
  3. haoran.jpg
  4. 690 x 920
复制代码
命令解说:haoran.jpg 要显示的图片, -f 适应屏莫显示


显示效果如下:




可以输入命令,控制显示

r          : Redraw the image 重绘图片
< or ,     : Previous image 上一张图片
> or .     : Next image  下一张图片,如果输入参数为1,或显示到最后一张图片,则退出, (按Ctrl+c, 发现是无效的, 不能退出,以为是死机了)
a, d, w, x : Pan the image 移动图片
f          : Toggle resizing on/off  缩放开关
k          : Toggle resizing quality 原比例绽放
e          : Toggle enlarging on/off  放大开关
i          : Toggle respecting the image aspect on/off  拉伸到满屏显示
n          : Rotate the image 90 degrees left 向左转90度
m          : Rotate the image 90 degrees right 向右转90度
p          : Disable all transformations 取消所有参数设置




回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|深圳市光明谷科技有限公司|光明谷商城|Sunshine Silicon Corpporation ( 粤ICP备14060730号|Sitemap

GMT+8, 2024-4-23 23:30 , Processed in 0.133417 second(s), 38 queries .

Powered by Discuz! X3.2 Licensed

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表