package png Import Path image/png (on golang.org and go.dev) Dependency Relation imports 10 packages, and imported by 0 packagesInvolved Source Files paeth.go Package png implements a PNG image decoder and encoder. The PNG specification is at https://www.w3.org/TR/PNG/. writer.goPackage-Level Type Names (total 6)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)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.
|The pages are generated with Golds v0.2.5. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.|