internal

package
v0.0.0-...-60e87b8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst draw.Image, src image.Image)

Copy copies src to dst.

func NRGBAToRGBA

func NRGBAToRGBA(r, g, b, a uint32) (uint32, uint32, uint32, uint32)

NRGBAToRGBA converts NRGBA to RGBA.

func NewDrawable

func NewDrawable(p image.Image) draw.Image

NewDrawable returns a new draw.Image with the same type and size as p. If p has no size, 1x1 is used. See NewDrawableSize.

func NewDrawableSize

func NewDrawableSize(p image.Image, r image.Rectangle) draw.Image

NewDrawableSize returns a new draw.Image with the same type as p and the given bounds. If p is not a draw.Image, another type is used.

func Parallel

func Parallel(r image.Rectangle, f func(r image.Rectangle))

Parallel dispatches tasks concurrently for a Rectangle.

func RGBAToNRGBA

func RGBAToNRGBA(r, g, b, a uint32) (uint32, uint32, uint32, uint32)

RGBAToNRGBA converts RGBA to NRGBA.

Types

type AtFunc

type AtFunc func(x, y int) (r, g, b, a uint32)

AtFunc returns a RGBA value of the pixel at (x, y).

func NewAtFunc

func NewAtFunc(p image.Image) AtFunc

NewAtFunc returns an AtFunc for an Image.

type SetFunc

type SetFunc func(x, y int, r, g, b, a uint32)

SetFunc sets a RGBA value to the pixel at (x, y).

func NewSetFunc

func NewSetFunc(p draw.Image) SetFunc

NewSetFunc returns a SetFunc for an Image.

Jump to

Keyboard shortcuts

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