Sha256: e70296c7594822766a1042b7df59b2b2979ee5f962cc296a0784204e68b5daa3
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
Contents
module Vips # An interpolator. One of these can be given to operations like # {Image#affine} or {Image#mapim} to select the type of pixel interpolation # to use. # # To see all interpolators supported by your # libvips, try # # ``` # $ vips -l interpolate # ``` # # But at least these should be available: # # * `:nearest` Nearest-neighbour interpolation. # * `:bilinear` Bilinear interpolation. # * `:bicubic` Bicubic interpolation. # * `:lbb` Reduced halo bicubic interpolation. # * `:nohalo` Edge sharpening resampler with halo reduction. # * `:vsqbs` B-Splines with antialiasing smoothing. # # For example: # # ```ruby # im = im.affine [2, 0, 0, 2], :interpolate => Vips::Interpolate.new(:bicubic) # ``` class Interpolate # @!method self.new(name, opts = {}) # @param name [Symbol] interpolator to create # @param [Hash] opts Set of options # @return [Interpolate] constructed interpolator end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-vips-1.0.6 | lib/vips/interpolate.rb |
ruby-vips-1.0.5 | lib/vips/interpolate.rb |
ruby-vips-1.0.4 | lib/vips/interpolate.rb |
ruby-vips-1.0.3 | lib/vips/interpolate.rb |