Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Formats = map[string]Format{ "ansi": &AnsiDisplay{}, "gif": GIFFormat{}, "jpg": JPGFormat{}, "png": PNGFormat{}, "rgb24": RGB24Format{}, "rgba32": RGBA32Format{}, }
Functions ¶
This section is empty.
Types ¶
type AnsiDisplay ¶
type AnsiDisplay struct {
// contains filtered or unexported fields
}
func (*AnsiDisplay) EncodeAnimation ¶
func (AnsiDisplay) Extensions ¶
func (f AnsiDisplay) Extensions() []string
type Format ¶
type Format interface { // Extensions returns all file extensions excluding '.' that this format is // commonly encoded into. Extensions() []string // Encode encodes a single image to the specfied io.Writer. Encode(w io.Writer, img image.Image) error // EncodeAnimation encodes a series of successive images to the specified // io.Writer. // // The function should consume all images from the stream until it closes. // The interval parameter is the time between two images. EncodeAnimation(w io.Writer, stream <-chan image.Image, interval time.Duration) error }
func DetectFormat ¶
type GIFFormat ¶
type GIFFormat struct{}
func (GIFFormat) EncodeAnimation ¶
func (GIFFormat) Extensions ¶
type JPGFormat ¶
type JPGFormat struct{}
func (JPGFormat) EncodeAnimation ¶
func (JPGFormat) Extensions ¶
type PNGFormat ¶
type PNGFormat struct{}
func (PNGFormat) EncodeAnimation ¶
func (PNGFormat) Extensions ¶
type RGB24Format ¶
type RGB24Format struct{}
func (RGB24Format) EncodeAnimation ¶
func (RGB24Format) Extensions ¶
func (f RGB24Format) Extensions() []string
type RGBA32Format ¶
type RGBA32Format struct{}
func (RGBA32Format) EncodeAnimation ¶
func (RGBA32Format) Extensions ¶
func (f RGBA32Format) Extensions() []string
Click to show internal directories.
Click to hide internal directories.