Documentation ¶
Overview ¶
Package png implements a PNG image decoder and encoder.
The PNG specification is at http://www.libpng.org/pub/png/spec/1.2/PNG-Contents.html
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func 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 DecodeConfig ¶
DecodeConfig returns the color model and dimensions of a PNG image without decoding the entire image.
Types ¶
type FormatError ¶
type FormatError string
A FormatError reports that the input is not a valid PNG.
func (FormatError) String ¶
func (e FormatError) String() string
type IDATDecodingError ¶
An IDATDecodingError wraps an inner error (such as a ZLIB decoding error) encountered while processing an IDAT chunk.
func (IDATDecodingError) String ¶
func (e IDATDecodingError) String() string
type UnsupportedError ¶
type UnsupportedError string
An UnsupportedError reports that the input uses a valid but unimplemented PNG feature.
func (UnsupportedError) String ¶
func (e UnsupportedError) String() string
Click to show internal directories.
Click to hide internal directories.