--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Add an image from a file to the current page at position <tt>(x, y)</tt> (the upper left-hand corner of the image). The image will be scaled to <tt>width</tt> by <tt>height</tt> units. The image may be a PNG or JPEG image.
- !ruby/struct:SM::Flow::P 
  body: "The <tt>image</tt> parameter may be a filename or an object that returns the full image data when #read is called with no parameters (such as an IO object). If 'open-uri' is loaded, then the image name may be an URI."
- !ruby/struct:SM::Flow::P 
  body: "In PDF::Writer 1.1 or later, the new <tt>link</tt> parameter is a hash with two keys:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:type</tt>:"
    body: The type of link, either <tt>:internal</tt> or <tt>:external</tt>.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:target</tt>:"
    body: The destination of the link. For an <tt>:internal</tt> link, this is an internal cross-reference destination. For an <tt>:external</tt> link, this is an URI.
  type: :NOTE
- !ruby/struct:SM::Flow::P 
  body: This will automatically make the image a clickable link if set.
full_name: PDF::Writer::Graphics#add_image_from_file
is_singleton: false
name: add_image_from_file
params: (image, x, y, width = nil, height = nil, link = nil)
visibility: public
