mirror of https://github.com/status-im/resize.git
fixed typo
This commit is contained in:
parent
fdc4a64918
commit
2d612957ed
|
@ -81,7 +81,7 @@ type InterpolationFunction func(float32, float32, image.Image) color.RGBA64
|
||||||
// A new image with the given dimensions will be returned.
|
// A new image with the given dimensions will be returned.
|
||||||
// If one of the parameters w or h is set to -1, its size will be calculated so that
|
// If one of the parameters w or h is set to -1, its size will be calculated so that
|
||||||
// the aspect ratio is that of the originating image.
|
// the aspect ratio is that of the originating image.
|
||||||
// The resizing algorithm uses slices for parallel computation.
|
// The resizing algorithm uses channels for parallel computation.
|
||||||
func Resize(w int, h int, img image.Image, interp InterpolationFunction) image.Image {
|
func Resize(w int, h int, img image.Image, interp InterpolationFunction) image.Image {
|
||||||
b_old := img.Bounds()
|
b_old := img.Bounds()
|
||||||
w_old := float32(b_old.Dx())
|
w_old := float32(b_old.Dx())
|
||||||
|
|
Loading…
Reference in New Issue