Method: Vips::Image.rawload

Defined in:
lib/vips8/methods.rb

.rawload(filename, width, height, bands, opts = {}) ⇒ Vips::Image, Hash<Symbol => Object>

Load raw data from a file.

Parameters:

  • filename (String)

    Filename to load from

  • width (Integer)

    Image width in pixels

  • height (Integer)

    Image height in pixels

  • bands (Integer)

    Number of bands in image

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

    Set of options

Options Hash (opts):

  • :disc (Boolean)

    Open to disc

  • :access (Vips::Access)

    Required access pattern for this file

  • :offset (Integer)

    Offset in bytes from start of file

  • :flags (Vips::ForeignFlags)

    Output -- Flags for this file

Returns:

  • (Vips::Image, Hash<Symbol => Object>)

    Output image, Hash of optional output items

[View source]

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