swtch: rsc.io/swtch/qrweb/resize Index | Files

package resize

import "rsc.io/swtch/qrweb/resize"

Index

Package Files

resize.go

func Resample Uses

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

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

func ResizeNRGBA Uses

func ResizeNRGBA(m *image.NRGBA, r image.Rectangle, w, h int) *image.RGBA

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

func ResizeRGBA Uses

func ResizeRGBA(m *image.RGBA, r image.Rectangle, w, h int) *image.RGBA

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

Package resize imports 2 packages (graph) and is imported by 1 packages. Updated 2017-01-05. Refresh now. Tools for package owners.