Sha256: 39eb9f10d8e9d44b12ac8fb0dea373a07de83810c9d490cf6c0c737a0d37694e

Contents?: true

Size: 412 Bytes

Versions: 6

Compression:

Stored size: 412 Bytes

Contents

require File.join(File.dirname(__FILE__), 'new_image.rb')

include Magick

draw = Draw.new

draw.stroke = 'blue'
draw.stroke_width 5.0
draw.affine(1,0,0,1,-60,100)

points = [350,75,379,161,469,161,397,215,423,301,350,250,277,301,303,215,231,161,321,161].collect { |x| x/2.round }

draw.polyline(*points)

b = Image.new(300, 300, HatchFill.new('white', 'black'))

draw.draw b

b.write('draw_polyline_affine.jpg')

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rmagick4j-0.4.0-java test/eyetests/tests/draw_polyline_affine.rb
rmagick4j-0.3.9-java test/eyetests/tests/draw_polyline_affine.rb
rmagick4j-0.3.8 test/eyetests/tests/draw_polyline_affine.rb
rmagick4j-0.3.5 test/eyetests/tests/draw_polyline_affine.rb
rmagick4j-0.3.7 test/eyetests/tests/draw_polyline_affine.rb
rmagick4j-0.3.6 test/eyetests/tests/draw_polyline_affine.rb