From 1d3511975838a1a529f86b8337ec6da83930ea67 Mon Sep 17 00:00:00 2001 From: jst Date: Fri, 3 Aug 2012 21:17:28 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 694bd60..238f1a7 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ Resize ====== -Image resizing for the [Go programming language](http://golang.org) that provides a few interpolation methods. +Image resizing for the [Go programming language](http://golang.org) that includes a few interpolation methods. Installation -============ +------------ ```bash $ go get github.com/nfnt/resize @@ -13,7 +13,7 @@ $ go get github.com/nfnt/resize It's that easy! Usage -===== +----- Import package with @@ -29,10 +29,10 @@ resize.Resize(w int, h int, img image.Image, interp InterpolationFunction) image The provided interpolation functions are -- NearestNeighbor: [Nearest-neighbor interpolation](http://en.wikipedia.org/wiki/Nearest-neighbor_interpolation) -- Bilinear: [Bilinear interpolation](http://en.wikipedia.org/wiki/Bilinear_interpolation) -- Bicubic: [Bicubic interpolation](http://en.wikipedia.org/wiki/Bicubic_interpolation) -- Lanczos3: [Lanczos resampling](http://en.wikipedia.org/wiki/Lanczos_resampling) with a=3 +- `NearestNeighbor`: [Nearest-neighbor interpolation](http://en.wikipedia.org/wiki/Nearest-neighbor_interpolation) +- `Bilinear`: [Bilinear interpolation](http://en.wikipedia.org/wiki/Bilinear_interpolation) +- `Bicubic`: [Bicubic interpolation](http://en.wikipedia.org/wiki/Bicubic_interpolation) +- `Lanczos3`: [Lanczos resampling](http://en.wikipedia.org/wiki/Lanczos_resampling) with a=3 Sample usage: @@ -74,7 +74,7 @@ func main() { ``` License -======= +------- Copyright (c) 2012 Jan Schlicht This software is released unter the ISC license. From 602c775fde01d9065f9014da54904f50c3770218 Mon Sep 17 00:00:00 2001 From: jst Date: Fri, 3 Aug 2012 21:24:22 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 238f1a7..b539f7b 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ import "github.com/nfnt/resize" Resize creates a scaled image with new dimensions (w,h) using the interpolation function interp. ```go -resize.Resize(w int, h int, img image.Image, interp InterpolationFunction) image.Image +resize.Resize(w int, h int, img image.Image, interp resize.InterpolationFunction) image.Image ``` The provided interpolation functions are