- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for NRGBA64 (0.18 sec)
-
src/image/image.go
Stride int // Rect is the image's bounds. Rect Rectangle } func (p *NRGBA64) ColorModel() color.Model { return color.NRGBA64Model } func (p *NRGBA64) Bounds() Rectangle { return p.Rect } func (p *NRGBA64) At(x, y int) color.Color { return p.NRGBA64At(x, y) } func (p *NRGBA64) RGBA64At(x, y int) color.RGBA64 { r, g, b, a := p.NRGBA64At(x, y).RGBA()
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
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 if d.useTransparent {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 26K bytes - Viewed (0) -
src/image/color/color.go
b = uint32(c.B) b |= b << 8 b *= uint32(c.A) b /= 0xff a = uint32(c.A) a |= a << 8 return } // NRGBA64 represents a non-alpha-premultiplied 64-bit color, // having 16 bits for each of red, green, blue and alpha. type NRGBA64 struct { R, G, B, A uint16 } func (c NRGBA64) RGBA() (r, g, b, a uint32) { r = uint32(c.R) r *= uint32(c.A) r /= 0xffff g = uint32(c.G) g *= uint32(c.A)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 8.3K bytes - Viewed (0) -
src/image/png/reader_test.go
for x := bounds.Min.X; x < bounds.Max.X; x++ { nrgba64 := png.At(x, y).(color.NRGBA64) switch filename { case "ftbwn0g16": fmt.Fprintf(w, "%04x ", nrgba64.R) default: if useTransparent { fmt.Fprintf(w, "%04x%04x%04x ", nrgba64.R, nrgba64.G, nrgba64.B) } else { fmt.Fprintf(w, "%04x%04x%04x%04x ", nrgba64.R, nrgba64.G, nrgba64.B, nrgba64.A) } } } case cpm != nil:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 24 12:12:12 UTC 2022 - 28.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/composite/whitelist.go
"image/color.Alpha16": true, "image/color.Alpha": true, "image/color.CMYK": true, "image/color.Gray16": true, "image/color.Gray": true, "image/color.NRGBA64": true, "image/color.NRGBA": true, "image/color.NYCbCrA": true, "image/color.RGBA64": true, "image/color.RGBA": true, "image/color.YCbCr": true, "image.Point": true, "image.Rectangle": true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 17 00:08:36 UTC 2022 - 1.1K bytes - Viewed (0) -
src/image/image_test.go
image func() image }{ {"rgba", func() image { return NewRGBA(Rect(0, 0, 10, 10)) }}, {"rgba64", func() image { return NewRGBA64(Rect(0, 0, 10, 10)) }}, {"nrgba", func() image { return NewNRGBA(Rect(0, 0, 10, 10)) }}, {"nrgba64", func() image { return NewNRGBA64(Rect(0, 0, 10, 10)) }}, {"alpha", func() image { return NewAlpha(Rect(0, 0, 10, 10)) }}, {"alpha16", func() image { return NewAlpha16(Rect(0, 0, 10, 10)) }},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 30 02:00:49 UTC 2021 - 10.8K bytes - Viewed (0) -
api/go1.17.txt
pkg image, method (*Gray16) SetRGBA64(int, int, color.RGBA64) pkg image, method (*NRGBA) RGBA64At(int, int) color.RGBA64 pkg image, method (*NRGBA) SetRGBA64(int, int, color.RGBA64) pkg image, method (*NRGBA64) RGBA64At(int, int) color.RGBA64 pkg image, method (*NRGBA64) SetRGBA64(int, int, color.RGBA64) pkg image, method (*NYCbCrA) RGBA64At(int, int) color.RGBA64 pkg image, method (*Paletted) RGBA64At(int, int) color.RGBA64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 20:31:46 UTC 2023 - 18K bytes - Viewed (0) -
src/image/draw/draw_test.go
transparentGreen = color.NRGBA{0x00, 0xff, 0x00, 0x00} transparentRed = color.NRGBA{0xff, 0x00, 0x00, 0x00} opaqueGray64 = color.NRGBA64{0x9999, 0x9999, 0x9999, 0xffff} transparentPurple64 = color.NRGBA64{0xfedc, 0x0000, 0x7654, 0x0000} ) // dst and src are 1x3 images but the dr rectangle (and hence the overlap)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 18:07:05 UTC 2023 - 26K bytes - Viewed (0) -
src/image/draw/draw.go
s0 := src0.PixOffset(sp.X, sp.Y) drawCopySrc( dst0.Pix[d0:], dst0.Stride, r, src0.Pix[s0:], src0.Stride, sp, 4*r.Dx()) return } } case *image.NRGBA64: if op == Src && mask == nil { if src0, ok := src.(*image.NRGBA64); ok { d0 := dst0.PixOffset(r.Min.X, r.Min.Y) s0 := src0.PixOffset(sp.X, sp.Y) drawCopySrc( dst0.Pix[d0:], dst0.Stride, r, src0.Pix[s0:], src0.Stride, sp, 8*r.Dx())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:08:05 UTC 2024 - 33.9K bytes - Viewed (0) -
src/image/png/writer.go
} case cbTCA16: // Convert from image.Image (which is alpha-premultiplied) to PNG's non-alpha-premultiplied. for x := b.Min.X; x < b.Max.X; x++ { c := color.NRGBA64Model.Convert(m.At(x, y)).(color.NRGBA64) cr[0][i+0] = uint8(c.R >> 8) cr[0][i+1] = uint8(c.R) cr[0][i+2] = uint8(c.G >> 8) cr[0][i+3] = uint8(c.G) cr[0][i+4] = uint8(c.B >> 8) cr[0][i+5] = uint8(c.B)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:08:05 UTC 2024 - 15.4K bytes - Viewed (0)