2012-03-13 51 views

回答

2
require 'rubygems' 
require 'RMagick' 

img = Magick::Image.new(300, 50) do 
    self.background_color = '#FFFF00' 
end 
img.write('test.jpg') { self.interlace = Magick::PlaneInterlace } 

#check the interlace property 
puts img.interlace # PlaneInterlace