resize

package
v0.0.0-...-3374899 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package resize resizes images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HalveInplace

func HalveInplace(m image.Image) image.Image

HalveInplace downsamples the image by 50% using averaging interpolation.

func Resample

func Resample(m image.Image, r image.Rectangle, w, h int) image.Image

Resample returns a resampled copy of the image slice r of m. The returned image has width w and height h.

func ResampleInplace

func ResampleInplace(m image.Image, r image.Rectangle, w, h int) image.Image

ResampleInplace will resample m inplace, overwritting existing pixel data, and return a subimage of m sized to w and h.

func Resize

func Resize(m image.Image, r image.Rectangle, w, h int) image.Image

Resize returns a scaled copy of the image slice r of m. The returned image has width w and height h.

Types

This section is empty.

Jump to

Keyboard shortcuts

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