Method: Axlsx::Drawing#add_image
- Defined in:
- lib/axlsx/drawing/drawing.rb
#add_image(options = {}) ⇒ Pic
Note:
The recommended way to manage images is to use Worksheet.add_image. Please refer to that method for documentation.
Adds an image to the chart If th end_at option is specified we create a two cell anchor. By default we use a one cell anchor.
85 86 87 88 89 90 91 92 |
# File 'lib/axlsx/drawing/drawing.rb', line 85 def add_image(={}) if [:end_at] TwoCellAnchor.new(self, ).add_pic() else OneCellAnchor.new(self, ) end @anchors.last.object end |