package png

Import Path
	image/png (on and

Dependency Relation
	imports 10 packages, and imported by 0 packages

Involved Source Files paeth.go Package png implements a PNG image decoder and encoder. The PNG specification is at writer.go
Package-Level Type Names (total 6)
/* sort by: | */
const BestCompression const BestSpeed const DefaultCompression const NoCompression
Encoder configures encoding PNG images. BufferPool optionally specifies a buffer pool to get temporary EncoderBuffers when encoding an image. CompressionLevel CompressionLevel Encode writes the Image m to w in PNG format.
EncoderBuffer holds the buffers used for encoding PNG images. func EncoderBufferPool.Get() *EncoderBuffer func EncoderBufferPool.Put(*EncoderBuffer)
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. ( T) Get() *EncoderBuffer ( T) Put(*EncoderBuffer)
A FormatError reports that the input is not a valid PNG. ( T) Error() string T : error
An UnsupportedError reports that the input uses a valid but unimplemented PNG feature. ( T) Error() string T : error
Package-Level Functions (total 3)
Decode reads a PNG image from r and returns it as an image.Image. The type of Image returned depends on the PNG contents.
DecodeConfig returns the color model and dimensions of a PNG image without decoding the entire image.
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.
Package-Level Constants (total 4)