summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-07-12 22:29:56 +0100
committerRandy Morgan <[email protected]>2013-07-12 22:29:56 +0100
commit058aa68249878a878c30f9c7fa88c7b39ec07901 (patch)
tree195f93d1f0c23e15f45fc54fbe3c09e2322b3ba3 /examples
parentd14e4de443222d938e6e5870cbd21f65218399ee (diff)
downloadcaxlsx-058aa68249878a878c30f9c7fa88c7b39ec07901.tar.gz
caxlsx-058aa68249878a878c30f9c7fa88c7b39ec07901.zip
WIP single/dual anchors for images
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/example.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/example.rb b/examples/example.rb
index 04e49d8f..218237a6 100755
--- a/examples/example.rb
+++ b/examples/example.rb
@@ -278,11 +278,12 @@ if examples.include? :images
img = File.expand_path('../image1.jpeg', __FILE__)
# specifying the :hyperlink option will add a hyper link to your image.
# @note - Numbers does not support this part of the specification.
- sheet.add_image(:image_src => img, :noSelect => true, :noMove => true, :hyperlink=>"http://axlsx.blogspot.com") do |image|
+ sheet.add_image(:image_src => img, :noSelect => true, end_at: true, :noMove => true, :hyperlink=>"http://axlsx.blogspot.com") do |image|
image.width=720
image.height=666
image.hyperlink.tooltip = "Labeled Link"
image.start_at 2, 2
+ image.end_at 200, 200
end
end
end