Add nearest-neighbour interpolation

This commit is contained in:
Janis Meybohm 2017-11-10 14:50:57 +01:00
parent 0df331cdeb
commit 90d6230aba

View file

@ -41,12 +41,15 @@ const (
Bilinear
// Nohalo interpolation value.
Nohalo
// Nearest neighbour interpolation value.
Nearest
)
var interpolations = map[Interpolator]string{
Bicubic: "bicubic",
Bilinear: "bilinear",
Nohalo: "nohalo",
Nearest: "nearest",
}
func (i Interpolator) String() string {