Method: Axlsx::Worksheet#add_image

Defined in:
lib/axlsx/workbook/worksheet/worksheet.rb

#add_image(options = {}) {|image| ... } ⇒ Object

Adds a media item to the worksheets drawing

Yields:

  • (image)


441
442
443
444
445
# File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 441

def add_image(options={})
  image = worksheet_drawing.add_image(options)
  yield image if block_given?
  image
end