imgio

package
v0.0.0-...-fb743d3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImage

func NewImage(colorModel color.Model, bounds image.Rectangle) draw.Image

NewImage constructs a new image.

func WriteImage

func WriteImage(fname string, img image.Image, compressionQuality int)

WriteImage writes to an image file. Compression is chosen based on the filename.

Types

type Mutable

type Mutable interface {
	image.Image
	Set(x, y int, c color.Color)
}

Mutable images can have their pixel set to a certain colour.

func LoadImage

func LoadImage(filename string) Mutable

LoadImage loads an image, converting it to RGBA if necessary.

Jump to

Keyboard shortcuts

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