Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 7 lines (6 sloc) 0.257 kb
1 2 3 4 5 6 7
#! /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")
Something went wrong with that request. Please try again.