Method: Vips::Image#+

Defined in:
lib/vips8/image.rb

#+(other) ⇒ Image

Add an image, constant or array.

Parameters:

  • other (Image, Real, Array<Real>)

    Thing to add to self

Returns:

  • (Image)

    result of addition

[View source]

729
730
731
# File 'lib/vips8/image.rb', line 729

def +(other)
    other.is_a?(Vips::Image) ? add(other) : linear(1, other)
end