camlistore.org: camlistore.org/pkg/images/resize Index | Files

package resize

import "camlistore.org/pkg/images/resize"

Package resize resizes images.

Index

Package Files

resize.go

func HalveInplace Uses

func HalveInplace(m image.Image) image.Image

HalveInplace downsamples the image by 50% using averaging interpolation.

func Resample Uses

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 Uses

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 Uses

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.

Package resize imports 4 packages (graph) and is imported by 25 packages. Updated 2018-01-15. Refresh now. Tools for package owners.