/release/picobsd/tinyware/view/README

https://bitbucket.org/freebsd/freebsd-head/ · #! · 86 lines · 59 code · 27 blank · 0 comment · 0 complexity · 9ba3e4a073e30e4c649fe8610373593d MD5 · raw file

  1. Warsaw, 1998.08.18
  2. VIEW - small PNG viewer
  3. -----------------------
  4. This program is intended to serve as a simple console viewer for PNG
  5. graphics. It also features some scripting abilities, which allow you to
  6. build simple presentation.
  7. In fact, using even this initial version I was able to build a nice
  8. presentation of PicoBSD abilities which I used in real-life situation (you
  9. can see for yourself one of the presentation's screens, fbsd.png).
  10. The audience was impressed :-), especially when I asked them politely what
  11. are requirements and cost to make that kind of presentation using M$
  12. products...
  13. Simple Viewing
  14. --------------
  15. Usage is as follows:
  16. view [-g nnn.nnn] [-r x] filename.png
  17. where
  18. -g nnn.nnn screen gamma (you can adjust how bright is the
  19. picture)
  20. -r x resolution:
  21. 0 - 640x480x16
  22. 1 - 640x200x256
  23. 2 - 320x240x256
  24. Under right mouse button you can find a simple menu, which tells you also
  25. the hotkeys. You can shift, rotate and zoom the picture.
  26. Presentation
  27. ------------
  28. Usage is as above, but the file you give as argument is a (unix) text file
  29. of the following format:
  30. 1 VIEW SCRIPT
  31. 2 5
  32. 3 welcome.png
  33. 4 /home/clipart/logo.png
  34. 5 /home/present/title.png
  35. 6 /home/present/outline.png
  36. 7 /home/present/end.png
  37. (of course without the line numbering or the leading space!). The line number
  38. 1 is magic, and must be present in order to recognize the file properly.
  39. The second line tells how many pictures consist the presentation. The
  40. following lines tell the file names containing the images themselves.
  41. See the example in file picobsd.vu.
  42. Command line arguments (gamma and resolution) are as above. You can also use
  43. the pop-up menu to adjust image parameters, as well as go forward or
  44. backward in the presentation.
  45. Bugs, caveats, missing features
  46. -------------------------------
  47. * there are some bugs in libvgl which require strange workarounds, and even
  48. then it doesn't work quite right. See the source for the 'XXX' comments...
  49. * I didn't have time to add gamma adjustment to the pop-up menu. It's
  50. simple, though, and I leave it as an exercise for the reader :-))
  51. * it would be great if someone would add GIF and jpeg support.
  52. * the error checking is probably weak. A bad PNG file or script file will
  53. probably cause a coredump.
  54. * pop-up menu facilities need more abstraction to be usable in other cases.
  55. Anyway, as it is even now it's quite usable.
  56. Have fun!
  57. Andrzej Bialecki
  58. <abial@freebsd.org>
  59. $FreeBSD$