Sha256: 8a5798575af8602c6d9b14ff1e381380a820b11346a689e49be5230c9b3510d2

Contents?: true

Size: 335 Bytes

Versions: 3

Compression:

Stored size: 335 Bytes

Contents

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

include Magick

draw = Draw.new

draw.stroke = 'green'
draw.rectangle(200,20, 200,180)

draw.stroke = 'blue'
draw.rectangle(200,180, 80,180)

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

draw.draw b

b.write('draw_rectangle_narrow.jpg')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rmagick4j-0.4.0-java test/eyetests/tests/draw_rectangle_narrow.rb
rmagick4j-0.3.9-java test/eyetests/tests/draw_rectangle_narrow.rb
rmagick4j-0.3.8 test/eyetests/tests/draw_rectangle_narrow.rb