icondir

package
v1.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(r io.Reader, icon bool) *Decoder

func (*Decoder) Best

func (d *Decoder) Best() (*Entry, error)

func (*Decoder) Decode

func (d *Decoder) Decode(e *Entry) (image.Image, error)

func (*Decoder) DecodeAll

func (d *Decoder) DecodeAll() ([]*Entry, []image.Image, error)

func (*Decoder) DecodeConfig

func (d *Decoder) DecodeConfig(e *Entry) (image.Config, error)

func (*Decoder) DecodeDir

func (d *Decoder) DecodeDir() error

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(w io.Writer, icon bool) *Encoder

func (*Encoder) Add

func (e *Encoder) Add(m image.Image, xHotspot, yHotspot int) error

func (*Encoder) Encode

func (e *Encoder) Encode() error

type Entry

type Entry struct {
	Width, Height, Colors, BPP, XHotspot, YHotspot int
	Offset, Size                                   int64
	// contains filtered or unexported fields
}

type FormatError

type FormatError string

func (FormatError) Error

func (e FormatError) Error() string

type UnsupportedError

type UnsupportedError string

func (UnsupportedError) Error

func (e UnsupportedError) Error() string

Jump to

Keyboard shortcuts

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