Home | History | Annotate | Download | only in png

Lines Matching refs:PNG

5 // Package png implements a PNG image decoder and encoder.
7 // The PNG specification is at http://www.w3.org/TR/PNG/.
8 package png
21 // Color type, as per the PNG spec.
54 // Filter type, as per the PNG spec.
76 // See http://www.w3.org/TR/PNG/#8Interlace
88 // The PNG specification says that the IHDR, PLTE (if present), tRNS (if
92 // http://www.w3.org/TR/PNG/#5ChunkOrdering
118 // A FormatError reports that the input is not a valid PNG.
121 func (e FormatError) Error() string { return "png: invalid format: " + string(e) }
125 // An UnsupportedError reports that the input uses a valid but unimplemented PNG feature.
128 func (e UnsupportedError) Error() string { return "png: unsupported feature: " + string(e) }
239 // is an error", but some real-world PNG files have out-of-range pixel
246 // As per the PNG spec, a PLTE chunk is optional (and for practical purposes,
283 // intermediate chunk headers and footers). If the PNG data looked like:
285 // then this reader presents xxxyy. For well-formed PNG data, the decoder state
387 // A PNG image can't have zero width or height, but for an interlaced
759 return FormatError("not a PNG file")
764 // Decode reads a PNG image from r and returns it as an image.Image.
765 // The type of Image returned depends on the PNG contents.
788 // DecodeConfig returns the color model and dimensions of a PNG image without
845 image.RegisterFormat("png", pngHeader, Decode, DecodeConfig)