ico

package
v1.14.1-alpha Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageToIco

func ImageToIco(img image.Image) ([]byte, error)

Types

type IconDir

type IconDir struct {
	Reserved uint16 // must be 0
	Type     uint16 // 1 for ICO, 2 for CUR
	Count    uint16 // number of images
}

type IconDirEntry

type IconDirEntry struct {
	Width        uint8 // 0 means 256
	Height       uint8 // 0 means 256
	ColorCount   uint8
	Reserved     uint8  // must be 0
	ColorPlanes  uint16 // 0 or 1
	BitsPerPixel uint16
	SizeInBytes  uint32
	Offset       uint32
}

Source Files

  • ico.go

Jump to

Keyboard shortcuts

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