Sha256: 3f96106494d80865da3b164353b86c96ee3563d95d011b2730e60eefeced7f85

Contents?: true

Size: 638 Bytes

Versions: 21

Compression:

Stored size: 638 Bytes

Contents

# encoding: utf-8
#
# Demonstrates vertical and horizontal positioning of images.
#
require "#{File.dirname(__FILE__)}/../example_helper.rb"
   
Prawn::Document.generate("image_position.pdf", :page_layout => :landscape) do

  dice = "#{Prawn::BASEDIR}/data/images/dice.png"

  image dice, :scale => 0.2, :position => :left,   :vposition => :top
  image dice, :scale => 0.2, :position => :right,  :vposition => :top
  image dice, :scale => 0.2, :position => :center, :vposition => :top
  image dice, :scale => 0.2, :position => :center, :vposition => :center
  image dice, :scale => 0.2, :position => :center, :vposition => :bottom
  
end

Version data entries

21 entries across 21 versions & 7 rubygems

Version Path
piglop-prawn-0.10.2.3 examples/graphics/image_position.rb
piglop-prawn-0.10.2.2 examples/graphics/image_position.rb
piglop-prawn-0.10.2.1 examples/graphics/image_position.rb
prawn-0.11.1.pre examples/graphics/image_position.rb
goodwill-prawn-edge-0.10.0 examples/graphics/image_position.rb
alphasights-prawn-0.10.4 examples/graphics/image_position.rb
alphasights-prawn-0.10.3 examples/graphics/image_position.rb
alphasights-prawn-0.10.2 examples/graphics/image_position.rb
alphasights-prawn-0.10.1 examples/graphics/image_position.rb
alphasights-prawn-0.10.0 examples/graphics/image_position.rb
prawn-core-0.8.4 examples/graphics/image_position.rb
prawn-graph-0.0.2 vendor/prawn-core/examples/graphics/image_position.rb
prawn-graph-0.0.1 vendor/prawn-core/examples/graphics/image_position.rb
prawn-core-0.7.2 examples/graphics/image_position.rb
prawn-core-0.7.1 examples/graphics/image_position.rb
prawn-layout-0.3.2 vendor/prawn-core/examples/graphics/image_position.rb
prawn-core-0.6.3 examples/graphics/image_position.rb
prawn-core-0.6.2 examples/graphics/image_position.rb
prawn-layout-0.3.1 vendor/prawn-core/examples/graphics/image_position.rb
prawn-core-0.6.1 examples/graphics/image_position.rb