Home | History | Annotate | Download | only in png

Lines Matching refs:Encoder

17 // Encoder configures encoding PNG images.
18 type Encoder struct {
22 type encoder struct {
23 enc *Encoder
82 func (e *encoder) writeChunk(b []byte, name string) {
112 func (e *encoder) writeIHDR() {
146 func (e *encoder) writePLTEAndTRNS(p color.Palette) {
168 // An encoder is an io.Writer that satisfies writes by writing PNG IDAT chunks,
173 // No other code should treat an encoder as an io.Writer.
174 func (e *encoder) Write(b []byte) (int, error) {
443 func (e *encoder) writeIDATs() {
457 // Encoder.CompressionLevel to map to zlib.DefaultCompression.
473 func (e *encoder) writeIEND() { e.writeChunk(nil, "IEND") }
478 var e Encoder
483 func (enc *Encoder) Encode(w io.Writer, m image.Image) error {
492 var e encoder