goapng

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

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

Go to latest
Published: Mar 20, 2017 License: MIT Imports: 8 Imported by: 0

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 bitbucket.org/cia_ana/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 {
	Image     []*image.Image // The successive images.
	Delay     []uint16       // The successive delay times, one per frame, in 100ths of a second.
	Disposal  []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