Open jadiaz opened 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.
This is working correctly.
The method is actually:
Magick::HatchFill
Candidate for closing, @mmaiza.
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.