Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Go package imageutil implements functions for the manipulation of images.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 testdata
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 resize.go
Octocat-spinner-32 resize_test.go
README.md

Warning: this package is a work in progress; in a very primitive state right now.

Package imageutil

import "github.com/dchest/imageutil"

Package imageutil implements functions for the manipulation of images.

Functions

func ResizeBilinear

func ResizeBilinear(img *image.NRGBA, newWidth, newHeight int) *image.NRGBA

ResizeBilinear returns a new NRGBA image with the given width and height created by resizing the given NRGBA image using the bilinear interpolation.

func ResizeNearestNeighbor

func ResizeNearestNeighbor(img image.Image, newWidth, newHeight int) *image.NRGBA

ResizeNearestNeighbor returns a new NRGBA image with the given width and height created by resizing the given image using the nearest neighbor algorithm.

Something went wrong with that request. Please try again.