欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
RMagick
来自开放百科 - 灰狐
(版本间的差异)
第12行: | 第12行: | ||
clown = clown.quantize(256, Magick::GRAYColorspace) | clown = clown.quantize(256, Magick::GRAYColorspace) | ||
clown.write('monochrome.jpg') | clown.write('monochrome.jpg') | ||
+ | |||
+ | http://rmagick.rubyforge.org/ |
2006年9月16日 (六) 12:48的版本
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')
分享您的观点