ico

package
v0.0.0-...-43d74b8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Images []*Image
	// contains filtered or unexported fields
}

Group represents an icon group.

func DecodeAll

func DecodeAll(r Reader) (*Group, error)

DecodeAll reads an ICO file from r and returns representation of the icon group.

func (*Group) Read

func (g *Group) Read(p []byte) (int, error)

func (*Group) Size

func (g *Group) Size() int64

Size returns total byte size when g treated as a Blob.

type Image

type Image struct {
	ID int // ID must be set manually
	// contains filtered or unexported fields
}

Image represents a single icon image.

func (*Image) Read

func (i *Image) Read(p []byte) (int, error)

Read copies image data to p.

func (*Image) Size

func (i *Image) Size() int64

Size returns image's size.

type Reader

type Reader interface {
	io.Reader
	io.ReaderAt
}

Reader implements both io.Reader and io.ReaderAt.

Jump to

Keyboard shortcuts

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