Sha256: 161b0c1b75dab92d3fb325f7281c00c3ddb6cdcc74454f7f6235d4a5e83daba8

Contents?: true

Size: 590 Bytes

Versions: 15

Compression:

Stored size: 590 Bytes

Contents

require 'rvg/rvg'

rvg = Magick::RVG.new(400, 150) do |canvas|
    canvas.desc = "Example OrigCoordSys - Simple transformations: original picture"
    canvas.background_fill = 'white'

    canvas.g.styles(:fill=>'none', :stroke=>'black', :stroke_width=>3) do |grp|
        # Draw the axes of the original coordinate system
        grp.line(0, 1.5, 400, 1.5)
        grp.line(1.5, 0, 1.5, 150)
    end

    canvas.text(30, 30, 'ABC (orig coord system)').styles(:font_size=>20, :font_family=>'Verdana', :font_weight=>'normal', :font_style=>'normal')

end

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

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
rmagick-2.13.4 doc/ex/OrigCoordSys.rb
rmagick-2.13.3 doc/ex/OrigCoordSys.rb
rmagick-2.13.3.rc1 doc/ex/OrigCoordSys.rb
rmagick-2.13.2 doc/ex/OrigCoordSys.rb
rdp-rmagick-0.0.0 doc/ex/OrigCoordSys.rb
rmagick-2.13.1 doc/ex/OrigCoordSys.rb
rmagick-2.12.2 doc/ex/OrigCoordSys.rb
rmagick-2.12.1 doc/ex/OrigCoordSys.rb
rmagick-2.12.0 doc/ex/OrigCoordSys.rb
rmagick-2.11.1 doc/ex/OrigCoordSys.rb
rmagick-2.10.0 doc/ex/OrigCoordSys.rb
rmagick-2.11.0 doc/ex/OrigCoordSys.rb
rmagick-2.9.0 doc/ex/OrigCoordSys.rb
rmagick-2.9.1 doc/ex/OrigCoordSys.rb
rmagick-2.9.2 doc/ex/OrigCoordSys.rb