package gif Import Path image/gif (on golang.org and go.dev) Dependency Relation imports 10 packages, and imported by 0 packages Involved Source Files d-> reader.go writer.go Exported Type Namestype GIF (struct) GIF represents the possibly multiple images stored in a GIF file. BackgroundIndex byte Config image.Config Delay int Disposal byte Image *image.Paletted LoopCount int func DecodeAll(r io.Reader) (*GIF, error) func EncodeAll(w io.Writer, g *GIF) errortype Options (struct) Options are the encoding parameters. Drawer draw.Drawer NumColors int Quantizer draw.Quantizer func Encode(w io.Writer, m image.Image, o *Options) errorExported Valuesfunc Decode(r io.Reader) (image.Image, error) Decode reads a GIF image from r and returns the first embedded image as an image.Image.func DecodeAll(r io.Reader) (*GIF, error) DecodeAll reads a GIF image from r and returns the sequential frames and timing information.func DecodeConfig(r io.Reader) (image.Config, error) DecodeConfig returns the global color model and dimensions of a GIF image without decoding the entire image.const DisposalBackground = 2 Disposal Methods.const DisposalNone = 1 Disposal Methods.const DisposalPrevious = 3 Disposal Methods.func Encode(w io.Writer, m image.Image, o *Options) error Encode writes the Image m to w in GIF format.
|The pages are generated with Golds v0.1.6-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project and developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.|