go1.20.5
GoThrough

png.BestCompression

const BestCompression = -3

png.BestSpeed

const BestSpeed = -2

png.DefaultCompression

const DefaultCompression = 0

png.NoCompression

const NoCompression = -1

png.EncoderBufferPool

// EncoderBufferPool is an interface for getting and returning temporary // instances of the EncoderBuffer struct. This can be used to reuse buffers // when encoding multiple images. type EncoderBufferPool interface { Get() *EncoderBuffer Put(*EncoderBuffer) }

png.Decode

// Decode reads a PNG image from r and returns it as an image.Image. // The type of Image returned depends on the PNG contents. func Decode(r io.Reader) (image.Image, error)

png.DecodeConfig

// DecodeConfig returns the color model and dimensions of a PNG image without // decoding the entire image. func DecodeConfig(r io.Reader) (image.Config, error)

png.Encode

// Encode writes the Image m to w in PNG format. Any Image may be // encoded, but images that are not image.NRGBA might be encoded lossily. func Encode(w io.Writer, m image.Image) error

png.Fuzz

func Fuzz(data []byte) int