- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for NumColors (0.33 sec)
-
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) -
src/cmd/vendor/github.com/google/pprof/internal/report/stacks.go
} } func (s *StackSet) assignColors() { // Assign different color indices to different packages. const numColors = 1048576 for i, src := range s.Sources { pkg := packageName(src.FullName) h := sha256.Sum256([]byte(pkg)) index := binary.LittleEndian.Uint32(h[:]) s.Sources[i].Color = int(index % numColors) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 5.6K bytes - Viewed (0) -
src/image/gif/reader_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:15:54 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"GIF.Delay", Field, 0}, {"GIF.Disposal", Field, 5}, {"GIF.Image", Field, 0}, {"GIF.LoopCount", Field, 0}, {"Options", Type, 2}, {"Options.Drawer", Field, 2}, {"Options.NumColors", Field, 2}, {"Options.Quantizer", Field, 2}, }, "image/jpeg": { {"(FormatError).Error", Method, 0}, {"(UnsupportedError).Error", Method, 0}, {"Decode", Func, 0}, {"DecodeConfig", Func, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)