Versions in this module Expand all Collapse all v3 v3.0.0 Dec 8, 2023 Changes in this version + func Decode(r io.Reader) (image.Image, error) + func DecodeAll(r io.Reader) (images []image.Image, err error) + func Encode(wr io.Writer, img image.Image) error + type Encoder struct + Algorithm InterpolationFunction + Wr io.Writer + func NewEncoder(wr io.Writer) *Encoder + func (enc *Encoder) Encode(img image.Image) error + func (enc *Encoder) WithAlgorithm(a InterpolationFunction) *Encoder + type ErrImageTooSmall struct + func (err ErrImageTooSmall) Error() string + type Icon struct + Image image.Image + Type OsType + func (i *Icon) WriteTo(wr io.Writer) (int64, error) + type IconSet struct + Icons []*Icon + func NewIconSet(img image.Image, interp InterpolationFunction) (*IconSet, error) + func (s *IconSet) WriteTo(wr io.Writer) (int64, error) + type InterpolationFunction = resize.InterpolationFunction + const Bicubic + const Bilinear + const Lanczos2 + const Lanczos3 + const MitchellNetravali + const NearestNeighbor + type OsType struct + ID string + Size uint Other modules containing this package github.com/jackmordaunt/icns github.com/jackmordaunt/icns/v2