lib/vips/image.rb
# Composite a set of images with a set of blend modes.
#
# @param other [Image, Array<Image>, Real, Array<Real>] bands to append
# @return [Image] many band image
Composite a set of images with a set of blend modes.
Composite a set of images with a set of blend modes .
def composite other, mode, opts = {}
            unless other.is_a? Array
                other = [other]
            end
            unless mode.is_a? Array
                mode = [mode]
            end
            mode = mode.map do |x|
                GObject::GValue.from_nick Vips::BLEND_MODE_TYPE, x
            end
            Vips::Image.composite([self] + other, mode, opts)
        end
def composite other , mode , opts = { } unless other . is_a? Array other = [ other ] end unless mode . is_a? Array mode = [ mode ] end mode = mode . map do | x | GObject :: GValue . from_nick Vips :: BLEND_MODE_TYPE , x end Vips :: Image . composite ( [ self ] + other , mode , opts ) end
Composite a set of images with a set of blend modes.
Composite a set of images with a set of blend modes .
many band image
many band image
Image
other
bands to append
bands to append
mode
<not_specific>
opts
<not_specific>