ico

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BI_RGB = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BITMAPINFOHEADER

type BITMAPINFOHEADER struct {
	Size          uint32
	Width         int32
	Height        int32
	Planes        uint16
	BitCount      uint16
	Compression   uint32
	SizeImage     uint32
	XPelsPerMeter int32
	YPelsPerMeter int32
	ClrUsed       uint32
	ClrImportant  uint32
}

type ICO

type ICO struct {
	image.Image
}

type ICONDIR

type ICONDIR struct {
	Reserved uint16
	Type     uint16
	Count    uint16
}

type ICONDIRENTRY

type ICONDIRENTRY struct {
	IconDirEntryCommon
	ImageOffset uint32
}

func DecodeHeaders

func DecodeHeaders(r io.Reader) ([]ICONDIRENTRY, error)

type IconDirEntryCommon

type IconDirEntryCommon struct {
	Width      byte
	Height     byte
	ColorCount byte
	Reserved   byte
	Planes     uint16
	BitCount   uint16
	BytesInRes uint32
}

type RGBQUAD

type RGBQUAD struct {
	Blue     byte
	Green    byte
	Red      byte
	Reserved byte
}

Jump to

Keyboard shortcuts

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