Update README.md
This commit is contained in:
parent
2d612957ed
commit
1d35119758
16
README.md
16
README.md
|
@ -1,10 +1,10 @@
|
||||||
Resize
|
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
|
Installation
|
||||||
============
|
------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ go get github.com/nfnt/resize
|
$ go get github.com/nfnt/resize
|
||||||
|
@ -13,7 +13,7 @@ $ go get github.com/nfnt/resize
|
||||||
It's that easy!
|
It's that easy!
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
=====
|
-----
|
||||||
|
|
||||||
Import package with
|
Import package with
|
||||||
|
|
||||||
|
@ -29,10 +29,10 @@ resize.Resize(w int, h int, img image.Image, interp InterpolationFunction) image
|
||||||
|
|
||||||
The provided interpolation functions are
|
The provided interpolation functions are
|
||||||
|
|
||||||
- NearestNeighbor: [Nearest-neighbor interpolation](http://en.wikipedia.org/wiki/Nearest-neighbor_interpolation)
|
- `NearestNeighbor`: [Nearest-neighbor interpolation](http://en.wikipedia.org/wiki/Nearest-neighbor_interpolation)
|
||||||
- Bilinear: [Bilinear interpolation](http://en.wikipedia.org/wiki/Bilinear_interpolation)
|
- `Bilinear`: [Bilinear interpolation](http://en.wikipedia.org/wiki/Bilinear_interpolation)
|
||||||
- Bicubic: [Bicubic interpolation](http://en.wikipedia.org/wiki/Bicubic_interpolation)
|
- `Bicubic`: [Bicubic interpolation](http://en.wikipedia.org/wiki/Bicubic_interpolation)
|
||||||
- Lanczos3: [Lanczos resampling](http://en.wikipedia.org/wiki/Lanczos_resampling) with a=3
|
- `Lanczos3`: [Lanczos resampling](http://en.wikipedia.org/wiki/Lanczos_resampling) with a=3
|
||||||
|
|
||||||
Sample usage:
|
Sample usage:
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ func main() {
|
||||||
```
|
```
|
||||||
|
|
||||||
License
|
License
|
||||||
=======
|
-------
|
||||||
|
|
||||||
Copyright (c) 2012 Jan Schlicht <janschlicht@gmail.com>
|
Copyright (c) 2012 Jan Schlicht <janschlicht@gmail.com>
|
||||||
This software is released unter the ISC license.
|
This software is released unter the ISC license.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user