Method: Vips::Image#cast

Defined in:
lib/vips8/methods.rb

#cast(format, opts = {}) ⇒ Vips::Image

Cast an image.

Parameters:

  • format (Vips::BandFormat)

    Format to cast to

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

    Set of options

Options Hash (opts):

  • :shift (Boolean)

    Shift integer values up and down

Returns:

[View source]

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