欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2/Agda, C++/Lisp/Haskell
RMagick
来自开放百科 - 灰狐
(版本间的差异)
| 第14行: | 第14行: | ||
http://rmagick.rubyforge.org/ | http://rmagick.rubyforge.org/ | ||
| + | |||
| + | ==Install== | ||
| + | *[http://hi.baidu.com/rainchen/blog/item/089ef7364497de320a55a9a3.html 在CentOS 5 中安装Rmagick] | ||
2008年4月14日 (一) 16:15的版本
RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries.
require 'RMagick'
clown = Magick::ImageList.new("clown.jpg")
clown = clown.wave(10, 200)
clown.write('wave.jpg')
require 'RMagick'
clown = Magick::ImageList.new("clown.jpg")
clown = clown.quantize(256, Magick::GRAYColorspace)
clown.write('monochrome.jpg')
Install
分享您的观点