gif

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gif provides a mockable wrapper for image/gif.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Decode

func (*Impl) Decode(r io.Reader) (image.Image, error)

func (*Impl) DecodeAll

func (*Impl) DecodeAll(r io.Reader) (*gif.GIF, error)

func (*Impl) DecodeConfig

func (*Impl) DecodeConfig(r io.Reader) (image.Config, error)

func (*Impl) Encode

func (*Impl) Encode(w io.Writer, m image.Image, o *gif.Options) error

func (*Impl) EncodeAll

func (*Impl) EncodeAll(w io.Writer, g *gif.GIF) error

type Interface

type Interface interface {
	Decode(r io.Reader) (image.Image, error)
	DecodeAll(r io.Reader) (*gif.GIF, error)
	DecodeConfig(r io.Reader) (image.Config, error)
	Encode(w io.Writer, m image.Image, o *gif.Options) error
	EncodeAll(w io.Writer, g *gif.GIF) error
}

Jump to

Keyboard shortcuts

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