Sha256: 34a93556791b903df45ebc5c2d4afe41a8def310fc477b835d61ebb7dfd2c113

Contents?: true

Size: 498 Bytes

Versions: 59

Compression:

Stored size: 498 Bytes

Contents

require 'rvg/rvg'

Magick::RVG.dpi = 90

rvg = Magick::RVG.new(10.cm, 3.cm).viewbox(0, 0, 100, 30) do |canvas|
    canvas.background_fill = 'white'
    canvas.desc = "Example Use03 - 'use' with a 'transform' attribute"

    myrect = Magick::RVG::Group.new do |grp|
                 grp.rect(60, 10)
             end
    canvas.rect(99.6, 29.6, 0.1, 0.1).styles(:fill=>'none', :stroke=>'blue', :stroke_width=>0.2)
    canvas.use(myrect).translate(20,2.5).rotate(10)
end

rvg.draw.write('Use03.gif')

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
rmagick-1.15.0 doc/ex/Use03.rb
rmagick-1.14.1 doc/ex/Use03.rb
rmagick-1.14.0 doc/ex/Use03.rb
rmagick-1.15.13 doc/ex/Use03.rb
rmagick-1.15.15 doc/ex/Use03.rb
rmagick-1.15.12 doc/ex/Use03.rb
rmagick-1.15.11 doc/ex/Use03.rb
rmagick-1.15.14 doc/ex/Use03.rb
rmagick-1.15.2 doc/ex/Use03.rb
rmagick-1.15.16 doc/ex/Use03.rb
rmagick-1.15.17 doc/ex/Use03.rb
rmagick-1.15.3 doc/ex/Use03.rb
rmagick-1.15.4 doc/ex/Use03.rb
rmagick-1.15.6 doc/ex/Use03.rb
rmagick-1.15.5 doc/ex/Use03.rb
rmagick-1.15.7 doc/ex/Use03.rb
rmagick-1.15.8 doc/ex/Use03.rb
rmagick-1.15.9 doc/ex/Use03.rb
rmagick-1.9.1 doc/ex/Use03.rb
rmagick-1.9.0 doc/ex/Use03.rb