Encoder configures encoding PNG images. BufferPool optionally specifies a buffer pool to get temporary
EncoderBuffers when encoding an image.CompressionLevelCompressionLevel Encode writes the Image m to w in PNG format.
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.( EncoderBufferPool) Get() *EncoderBuffer( EncoderBufferPool) Put(*EncoderBuffer)
A FormatError reports that the input is not a valid PNG.( FormatError) Error() string
FormatError : error
An UnsupportedError reports that the input uses a valid but unimplemented PNG feature.( UnsupportedError) Error() string
UnsupportedError : 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.
The pages are generated with Goldsv0.7.0-preview. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds.