...

Package graphics

import "simonwaldherr.de/go/golibs/graphics"
Overview
Index

Overview ▾

manipulating images pixel by pixel

func EachPixel

func EachPixel(file *os.File, f func(uint8, uint8, uint8, uint8) (uint8, uint8, uint8, uint8)) (image.Image, error)

func ResizeNearestNeighbor

func ResizeNearestNeighbor(file *os.File, newWidth, newHeight int) (*image.NRGBA, error)