Method: Vips::Image#flatten

Defined in:
lib/vips8/methods.rb

#flatten(opts = {}) ⇒ Vips::Image

Flatten alpha out of an image.

Parameters:

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

    Set of options

Options Hash (opts):

  • :background (Array<Double>)

    Background value

  • :max_alpha (Float)

    Maximum value of alpha channel

Returns:

[View source]

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