goapng

package module
v0.0.0-...-a6f0eaa Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: MIT Imports: 8 Imported by: 2

README

goapng

goapng is implementation of APNG(Animated PNG) Encoder in Golang.

  • Illustrative purposes(See on Firfox or Safari)

animated_gopher

Usage

See: example.go.

Installation

$ go get github.com/cia-rana/goapng

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeAll

func EncodeAll(w io.Writer, a *APNG) error

Types

type APNG

type APNG struct {
	Images    []image.Image // The successive images.
	Delays    []uint16      // The successive delay times, one per frame, in 100ths of a second.
	Disposals []byte        // The successive disposal methods, one per frame.
	LoopCount uint32        // The loop count. 0 indicates infinite looping.
	Config    image.Config
}

type CompressionLevel

type CompressionLevel int
const (
	DefaultCompression CompressionLevel = 0
	NoCompression      CompressionLevel = -1
	BestSpeed          CompressionLevel = -2
	BestCompression    CompressionLevel = -3
)

type Encoder

type Encoder struct {
	CompressionLevel CompressionLevel
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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