imageutil

package module
v0.0.0-...-45451ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2011 License: MIT Imports: 1 Imported by: 0

README

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.

Documentation

Overview

Package imageutil implements functions for the manipulation of images.

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL