Sha256: 4e520cb158c12f0ed1344ff58bda362e1f49efc32bca6dcf28ef8ea322ec04a5

Contents?: true

Size: 540 Bytes

Versions: 44

Compression:

Stored size: 540 Bytes

Contents

require 'rvg/rvg'

Magick::RVG.dpi = 90

rvg = Magick::RVG.new(10.cm, 3.cm).viewbox(0,0,1000,300) do |canvas|
    canvas.background_fill = 'white'
    canvas.desc = "Example text01 - 'Hello, out there' in blue"
    canvas.text(250, 150, "Hello, out there").
                styles(:font_family=>'Verdana', :font_size=>55, :fill=>'blue')
    canvas.circle(5, 250, 150).styles(:fill=>'red')

    # Show outline of canvas using 'rect' element
    canvas.rect(997, 297).styles(:fill=>'none', :stroke=>'blue')
end

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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
rmagick-1.10.0 doc/ex/text01.rb
rmagick-1.10.1 doc/ex/text01.rb
rmagick-1.11.0 doc/ex/text01.rb
rmagick-1.12.0 doc/ex/text01.rb
rmagick-1.11.1 doc/ex/text01.rb
rmagick-1.13.0 doc/ex/text01.rb
rmagick-1.14.0 doc/ex/text01.rb
rmagick-1.15.1 doc/ex/text01.rb
rmagick-1.14.1 doc/ex/text01.rb
rmagick-1.15.10 doc/ex/text01.rb
rmagick-1.15.0 doc/ex/text01.rb
rmagick-1.15.13 doc/ex/text01.rb
rmagick-1.15.12 doc/ex/text01.rb
rmagick-1.15.14 doc/ex/text01.rb
rmagick-1.15.15 doc/ex/text01.rb
rmagick-1.15.11 doc/ex/text01.rb
rmagick-1.15.3 doc/ex/text01.rb
rmagick-1.15.2 doc/ex/text01.rb
rmagick-1.15.17 doc/ex/text01.rb
rmagick-1.15.16 doc/ex/text01.rb