im

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPixels

func GetPixels(file io.Reader) ([][]Pixel, error)

GetPixels Returns array of pixels for image

Types

type Pixel

type Pixel struct {
	R int
	G int
	B int
	A int
}

Pixel Representation of RGBA

func RGBAToPixel

func RGBAToPixel(r uint32, g uint32, b uint32, a uint32) Pixel

RGBAToPixel Returns pixel value based on img.At(x, y).RGBA() result

Jump to

Keyboard shortcuts

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