imagex

package
v0.0.0-...-fc135a5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsImageEqual

func IsImageEqual(img1, img2 image.Image) bool

func RegisterFormat

func RegisterFormat(name, magic string, new func(io.Reader) (MetaChunksReader, error), decode func(io.Reader) (image.Image, error))

Types

type EmptyMetaChunks

type EmptyMetaChunks struct{}

func (EmptyMetaChunks) Empty

func (r EmptyMetaChunks) Empty() bool

func (EmptyMetaChunks) Get

func (r EmptyMetaChunks) Get(tag string) []byte

type MetaChunks

type MetaChunks interface {
	Get(tag string) []byte
	Empty() bool
}

func Decode

func Decode(r io.Reader) (image.Image, string, MetaChunks, error)

type MetaChunksReader

type MetaChunksReader interface {
	io.Reader
	MetaChunks
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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