graphicstest

package
v0.0.0-...-3254299 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageWithinTolerance

func ImageWithinTolerance(m0, m1 image.Image, tol int) error

ImageWithinTolerance checks that each pixel varies by no more than tol.

func LoadImage

func LoadImage(path string) (img image.Image, err error)

LoadImage decodes an image from a file.

func MakeRGBA

func MakeRGBA(src []uint8, width int) *image.RGBA

MakeRGBA returns an image with R, G, B taken from src.

func SprintBox

func SprintBox(box []byte, width, height int) string

SprintBox pretty prints the array as a hexidecimal matrix.

func SprintImageR

func SprintImageR(src *image.RGBA) string

SprintImageR pretty prints the red channel of src. It looks like SprintBox.

Types

This section is empty.

Jump to

Keyboard shortcuts

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