Method: Vips::Image#draw_image

Defined in:
lib/vips8/methods.rb

#draw_image(sub, x, y, opts = {}) ⇒ Vips::Image

Paint an image into another image.

Parameters:

  • sub (Vips::Image)

    Sub-image to insert into main image

  • x (Integer)

    Draw image here

  • y (Integer)

    Draw image here

  • opts (Hash) (defaults to: {})

    Set of options

Options Hash (opts):

  • :mode (Vips::CombineMode)

    Combining mode

Returns:

[View source]

# File 'lib/vips8/methods.rb', line 1711