@private
# File lib/prawn/table/cell/image.rb, line 14 def initialize(pdf, point, options={}) @image_options = {} super @pdf_object, @image_info = @pdf.build_image_object(@file) @natural_width, @natural_height = @image_info.calc_image_dimensions( @image_options) end
Draw the image on the page.
# File lib/prawn/table/cell/image.rb, line 61 def draw_content @pdf.embed_image(@pdf_object, @image_info, @image_options) end
# File lib/prawn/table/cell/image.rb, line 31 def fit=(f) @image_options[:fit] = f end
# File lib/prawn/table/cell/image.rb, line 23 def image=(file) @file = file end
# File lib/prawn/table/cell/image.rb, line 35 def image_height=(h) @image_options[:height] = h end
# File lib/prawn/table/cell/image.rb, line 39 def image_width=(w) @image_options[:width] = w end
# File lib/prawn/table/cell/image.rb, line 55 def natural_content_height @natural_height end
# File lib/prawn/table/cell/image.rb, line 51 def natural_content_width @natural_width end
# File lib/prawn/table/cell/image.rb, line 43 def position=(p) @image_options[:position] = p end
Generated with the Darkfish Rdoc Generator 2.