class Prawn::Table::Cell::Image
@private
def draw_content
Draw the image on the page.
def draw_content @pdf.embed_image(@pdf_object, @image_info, @image_options) end
def fit=(f)
def fit=(f) @image_options[:fit] = f end
def image=(file)
def image=(file) @file = file end
def image_height=(h)
def image_height=(h) @image_options[:height] = h end
def image_width=(w)
def image_width=(w) @image_options[:width] = w end
def initialize(pdf, point, options={})
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
def natural_content_height
def natural_content_height @natural_height end
def natural_content_width
def natural_content_width @natural_width end
def position=(p)
def position=(p) @image_options[:position] = p end
def scale=(s)
def scale=(s) @image_options[:scale] = s end
def vposition=(vp)
def vposition=(vp) @image_options[:vposition] = vp end