Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for readColorTable (0.32 sec)

  1. src/image/gif/reader.go

    		d.backgroundIndex = d.tmp[11]
    		// readColorTable overwrites the contents of d.tmp, but that's OK.
    		if d.globalColorTable, err = d.readColorTable(fields); err != nil {
    			return err
    		}
    	}
    	// d.tmp[12] is the Pixel Aspect Ratio, which is ignored.
    	return nil
    }
    
    func (d *decoder) readColorTable(fields byte) (color.Palette, error) {
    	n := 1 << (1 + uint(fields&fColorTableBitsMask))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:15:54 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top