- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewGray16 (0.38 sec)
-
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) -
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)