Help us shape the future of Go! Take the 2026 Go Developer Survey

iconfile

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package iconfile generates Windows and macOS icon files from application artwork.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

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

Encode reads application artwork and writes a PNG-based ICO file. Sizes must be between 1 and 256 pixels. The directory is ordered largest first.

func EncodeMac

func EncodeMac(w io.Writer, src image.Image) error

EncodeMac writes PNG representations in an ICNS icon family. Artwork is squared using Mitchell-Netravali scaling; representations larger than its longest side are omitted. At least 32 pixels are required.

Types

This section is empty.

Jump to

Keyboard shortcuts

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