Method: Vips::Image#&

Defined in:
lib/vips8/image.rb

#&(other) ⇒ Image

Integer bitwise AND with an image, constant or array.

Parameters:

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

    bitwise AND with this

Returns:

  • (Image)

    result of bitwise AND

[View source]

808
809
810
811
# File 'lib/vips8/image.rb', line 808

def &(other)
    other.is_a?(Vips::Image) ? 
        boolean(other, :and) : boolean_const(other, :and)
end