winicon

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateIcon

func GenerateIcon(r io.Reader, w io.Writer, sizes []int) error

GenerateIcon reads image data from the given reader and generates a .ico file that is written to the given writer. The .ico file will include a number of icons at the sizes given.

Types

type Icon

type Icon struct {
	Width        uint16
	Height       uint16
	Colours      uint8
	Planes       uint16
	BitsPerPixel uint16
	Data         []byte `json:"-"`
	Format       string
	Offset       uint32
	// contains filtered or unexported fields
}

Icon stores the data for a single icon

func GetFileData

func GetFileData(r io.Reader) ([]*Icon, error)

GetFileData reads in the given .ico filename and returns information about the icon/icons

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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