interpolation.go (704B)
1 package icns 2 3 import "github.com/jackmordaunt/icns/v4/internal/resample" 4 5 // InterpolationFunction is the algorithm used to resize the image. 6 type InterpolationFunction = resample.Function 7 8 // InterpolationFunction constants, ordered from fastest to highest quality. 9 const ( 10 // Nearest-neighbor interpolation 11 NearestNeighbor = resample.NearestNeighbor 12 // Bilinear interpolation 13 Bilinear = resample.Bilinear 14 // Bicubic interpolation (with cubic hermite spline) 15 Bicubic = resample.Bicubic 16 // Mitchell-Netravali interpolation 17 MitchellNetravali = resample.MitchellNetravali 18 // Lanczos interpolation (a=2) 19 Lanczos2 = resample.Lanczos2 20 // Lanczos interpolation (a=3) 21 Lanczos3 = resample.Lanczos3 22 )