Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (6 sloc) 0.257 kB
#! /usr/local/bin/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")
Jump to Line
Something went wrong with that request. Please try again.