Method: Vips::Image#subsample

Defined in:
lib/vips8/methods.rb

#subsample(xfac, yfac, opts = {}) ⇒ Vips::Image

Subsample an image.

Parameters:

  • xfac (Integer)

    Horizontal subsample factor

  • yfac (Integer)

    Vertical subsample factor

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

    Set of options

Options Hash (opts):

  • :point (Boolean)

    Point sample

Returns:

[View source]

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