Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NumColors (0.23 sec)

  1. src/image/gif/writer.go

    	bw.close()   // flush to e.w
    }
    
    // Options are the encoding parameters.
    type Options struct {
    	// NumColors is the maximum number of colors used in the image.
    	// It ranges from 1 to 256.
    	NumColors int
    
    	// Quantizer is used to produce a palette with size NumColors.
    	// palette.Plan9 is used in place of a nil Quantizer.
    	Quantizer draw.Quantizer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:38:09 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. src/image/gif/reader_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	img, err := Decode(bytes.NewReader(data))
    	if err != nil {
    		t.Fatal(err)
    	}
    	err = Encode(io.Discard, img, &Options{NumColors: 1})
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:15:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top