Sha256: 987749743f72ca22b27ed3950c9f6848166cae48058a971f2b080ceb3b4f9ff1
Contents?: true
Size: 255 Bytes
Versions: 4
Compression:
Stored size: 255 Bytes
Contents
#!/usr/bin/env ruby -w require 'rmagick' f = Magick::Image.read('../doc/ex/images/Flower_Hat.jpg').first pixels = f.dispatch(0, 0, f.columns, f.rows, 'RGB') image = Magick::Image.constitute(f.columns, f.rows, 'RGB', pixels) image.write('constitute.png')
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rmagick-4.1.0.rc2 | examples/constitute.rb |
rmagick-4.1.0.rc1 | examples/constitute.rb |
rmagick-4.0.0 | examples/constitute.rb |
rmagick-3.2.0 | examples/constitute.rb |