From 90d6230aba4a1386c1eab08235c46381edf8e72e Mon Sep 17 00:00:00 2001 From: Janis Meybohm Date: Fri, 10 Nov 2017 14:50:57 +0100 Subject: [PATCH] Add nearest-neighbour interpolation --- options.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/options.go b/options.go index 609de60..b357b77 100644 --- a/options.go +++ b/options.go @@ -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 {