Sha256: 2ecea23ca1639921b5dc99ee52b52a2bd9bc4f1f11cb2a5ba542156b0140b09c
Contents?: true
Size: 550 Bytes
Versions: 4
Compression:
Stored size: 550 Bytes
Contents
require 'rvg/rvg' include Magick rvg = 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') end rvg.draw.write('OrigCoordSys.gif')
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rmagick-1.8.0 | doc/ex/OrigCoordSys.rb |
rmagick-1.8.1 | doc/ex/OrigCoordSys.rb |
rmagick-1.8.2 | doc/ex/OrigCoordSys.rb |
rmagick-1.8.3 | doc/ex/OrigCoordSys.rb |