Sha256: d084bc396b6fed0efb96df8771cfc4e9570a2c189b06740a9217d4a53e0ff2a8

Contents?: true

Size: 254 Bytes

Versions: 13

Compression:

Stored size: 254 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.miff')

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
rmagick-windows-2.16.5 examples/constitute.rb
rmagick-windows-2.16.4 examples/constitute.rb
rmagick-windows-2.16.3 examples/constitute.rb
rmagick-windows-2.16.2 examples/constitute.rb
rmagick-windows-2.16.1 examples/constitute.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/rmagick-2.16.0/examples/constitute.rb
rmagick-2.16.0 examples/constitute.rb
rmagick-2.15.4 examples/constitute.rb
rmagick-2.15.3 examples/constitute.rb
rmagick-2.15.2 examples/constitute.rb
rmagick-2.15.1 examples/constitute.rb
rmagick-2.15.0 examples/constitute.rb
rmagick-2.14.0 examples/constitute.rb