An open API service indexing awesome lists of open source software.

https://github.com/kjunichi/mruby-imgtype

mrbgem for libimgtype(display image on cmd.exe)
https://github.com/kjunichi/mruby-imgtype

cmd image-viewer mruby windows

Last synced: 12 months ago
JSON representation

mrbgem for libimgtype(display image on cmd.exe)

Awesome Lists containing this project

README

          

# mruby-imgtype [![Build status](https://ci.appveyor.com/api/projects/status/0oopa04ylvw4tj2p?svg=true)](https://ci.appveyor.com/project/kjunichi/mruby-imgtype)

Imgtype class

## install by mrbgems

- add conf.gem line to `build_config.rb`

```ruby
MRuby::Build.new do |conf|

# ... (snip) ...

conf.gem :github => 'kjunichi/mruby-imgtype'
end
```
## example

You need to install mruby-webcam.

```ruby
Imgtype.init

cam = Webcam.new
cam.setFmt "ppm"
cam.capture {|img|
Imgtype.imgtype img
}
while true
cam.snap
Sleep::usleep(1000)
if Imgtype.get_key == "ESC" then
break
end
end
Imgtype.close
```

## License
under the MIT License:
- see LICENSE file