Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewGray16 (0.36 sec)

  1. src/image/image_test.go

    	for i := 0; i < b.N; i++ {
    		m.SetGray(4, 5, c)
    	}
    }
    
    func BenchmarkGray16At(b *testing.B) {
    	m := NewGray16(Rect(0, 0, 10, 10))
    	b.ResetTimer()
    
    	for i := 0; i < b.N; i++ {
    		m.Gray16At(4, 5)
    	}
    }
    
    func BenchmarkGraySetGray16(b *testing.B) {
    	m := NewGray16(Rect(0, 0, 10, 10))
    	c := color.Gray16{0x13}
    	b.ResetTimer()
    
    	for i := 0; i < b.N; i++ {
    		m.SetGray16(4, 5, c)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 30 02:00:49 UTC 2021
    - 10.8K bytes
    - Viewed (0)
  2. src/image/image.go

    		Rect:   r,
    	}
    }
    
    // Opaque scans the entire image and reports whether it is fully opaque.
    func (p *Gray16) Opaque() bool {
    	return true
    }
    
    // NewGray16 returns a new [Gray16] image with the given bounds.
    func NewGray16(r Rectangle) *Gray16 {
    	return &Gray16{
    		Pix:    make([]uint8, pixelBufferLength(2, r, "Gray16")),
    		Stride: 2 * r.Dx(),
    		Rect:   r,
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 34.9K bytes
    - Viewed (0)
  3. src/image/png/reader.go

    		img = nrgba
    	case cbG16:
    		bitsPerPixel = 16
    		if d.useTransparent {
    			nrgba64 = image.NewNRGBA64(image.Rect(0, 0, width, height))
    			img = nrgba64
    		} else {
    			gray16 = image.NewGray16(image.Rect(0, 0, width, height))
    			img = gray16
    		}
    	case cbGA16:
    		bitsPerPixel = 32
    		nrgba64 = image.NewNRGBA64(image.Rect(0, 0, width, height))
    		img = nrgba64
    	case cbTC16:
    		bitsPerPixel = 48
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 26K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"NYCbCrA.A", Field, 6},
    		{"NYCbCrA.AStride", Field, 6},
    		{"NYCbCrA.YCbCr", Field, 6},
    		{"NewAlpha", Func, 0},
    		{"NewAlpha16", Func, 0},
    		{"NewCMYK", Func, 5},
    		{"NewGray", Func, 0},
    		{"NewGray16", Func, 0},
    		{"NewNRGBA", Func, 0},
    		{"NewNRGBA64", Func, 0},
    		{"NewNYCbCrA", Func, 6},
    		{"NewPaletted", Func, 0},
    		{"NewRGBA", Func, 0},
    		{"NewRGBA64", Func, 0},
    		{"NewUniform", 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)
  5. api/go1.txt

    pkg image, func DecodeConfig(io.Reader) (Config, string, error)
    pkg image, func NewAlpha(Rectangle) *Alpha
    pkg image, func NewAlpha16(Rectangle) *Alpha16
    pkg image, func NewGray(Rectangle) *Gray
    pkg image, func NewGray16(Rectangle) *Gray16
    pkg image, func NewNRGBA(Rectangle) *NRGBA
    pkg image, func NewNRGBA64(Rectangle) *NRGBA64
    pkg image, func NewPaletted(Rectangle, color.Palette) *Paletted
    pkg image, func NewRGBA(Rectangle) *RGBA
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top