rmagick-temp / rmagick

An interface to the ImageMagick and GraphicsMagick image processing libraries.
http://rmagick.rubyforge.org/
MIT License
790 stars 102 forks source link

uninitialized constant Magick::Hatchfill (NameError) #17

Open jadiaz opened 13 years ago

jadiaz commented 13 years ago

Having installed and verified ImageMagick I downloaded the latest gem for RMagick. I wanted to make sure that the RMagick installed correctly so I ran the following script:

require 'rubygems' require 'rmagick'

canvas = Magick::Image.new(240, 300, Magick::Hatchfill.new('white', 'lightcyan2')) gc = Magick::Draw.new

gc.fill('red') gc.stroke('blue') gc.stroke_width(2) gc.path('M120, 150 h-75 a75, 75 0 1, 0 75, -75 z') gc.fill('yellow') gc.path('M108.5,138.5 v-75 a75,75 0 0,0 -75, 75 z') gc.draw(canvas)

canvas.write('path.png')

No matter what I do (uninstall gem, install via tarball) I get the Hatchfill error.

gerred commented 13 years ago

This is working correctly.

The method is actually:

Magick::HatchFill

linduxed commented 10 years ago

Candidate for closing, @mmaiza.