Sha256: 0372948cb726607b4829ddc6f99bfcfc30a685d14c1d5541a6d969e8ccc728ea

Contents?: true

Size: 431 Bytes

Versions: 6

Compression:

Stored size: 431 Bytes

Contents

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

include Magick

draw = Draw.new

draw.stroke = 'LightCyan2'
draw.fill 'LightCyan2'
draw.affine(2,0,0,3,50,20)
angle = 15*Math::PI/180
draw.affine(Math.cos(angle),-Math.sin(angle),Math.sin(angle),Math.cos(angle),0,0)

draw.roundrectangle(20,20, 280,180, 8, 8)

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

draw.draw b

b.write('draw_roundrectangle_affine.jpg')

Version data entries

6 entries across 6 versions & 1 rubygems

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