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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Add an image from a loaded image (JPEG or PNG) resource at position <tt>(x, y)</tt> (the lower left-hand corner of the image) and scaled to <tt>width</tt> by <tt>height</tt> units. If provided, <tt>image_info</tt> is a PDF::Writer::Graphics::ImageInfo object.
- !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
is_singleton: false
name: add_image
params: (image, x, y, width = nil, height = nil, image_info = nil, link = nil)
visibility: public
