Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for NRGBA64Model (0.33 sec)

  1. src/image/color/color.go

    }
    
    // Models for the standard color types.
    var (
    	RGBAModel    Model = ModelFunc(rgbaModel)
    	RGBA64Model  Model = ModelFunc(rgba64Model)
    	NRGBAModel   Model = ModelFunc(nrgbaModel)
    	NRGBA64Model Model = ModelFunc(nrgba64Model)
    	AlphaModel   Model = ModelFunc(alphaModel)
    	Alpha16Model Model = ModelFunc(alpha16Model)
    	GrayModel    Model = ModelFunc(grayModel)
    	Gray16Model  Model = ModelFunc(gray16Model)
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. src/image/image_test.go

    				t.Errorf("New%s: overflow: got ok, want !ok", tc.name)
    			}
    		}
    	}
    }
    
    func Test16BitsPerColorChannel(t *testing.T) {
    	testColorModel := []color.Model{
    		color.RGBA64Model,
    		color.NRGBA64Model,
    		color.Alpha16Model,
    		color.Gray16Model,
    	}
    	for _, cm := range testColorModel {
    		c := cm.Convert(color.RGBA64{0x1234, 0x1234, 0x1234, 0x1234}) // Premultiplied alpha.
    		r, _, _, _ := c.RGBA()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 30 02:00:49 UTC 2021
    - 10.8K bytes
    - Viewed (0)
  3. src/image/png/reader.go

    	case cbP1, cbP2, cbP4, cbP8:
    		cm = d.palette
    	case cbTCA8:
    		cm = color.NRGBAModel
    	case cbG16:
    		cm = color.Gray16Model
    	case cbGA16:
    		cm = color.NRGBA64Model
    	case cbTC16:
    		cm = color.RGBA64Model
    	case cbTCA16:
    		cm = color.NRGBA64Model
    	}
    	return image.Config{
    		ColorModel: cm,
    		Width:      d.width,
    		Height:     d.height,
    	}, nil
    }
    
    func init() {
    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/image/png/writer.go

    				cr[0][i+5] = uint8(b)
    				i += 6
    			}
    		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)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. src/image/png/reader_test.go

    		io.WriteString(w, s)
    	} else {
    		switch {
    		case cm == color.RGBAModel, cm == color.RGBA64Model:
    			io.WriteString(w, "    using color;\n")
    		case cm == color.NRGBAModel, cm == color.NRGBA64Model:
    			io.WriteString(w, "    using color alpha;\n")
    		case cm == color.GrayModel, cm == color.Gray16Model:
    			io.WriteString(w, "    using grayscale;\n")
    		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)
  6. src/image/image.go

    	// Stride is the Pix stride (in bytes) between vertically adjacent pixels.
    	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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 34.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"NRGBA.G", Field, 0},
    		{"NRGBA.R", Field, 0},
    		{"NRGBA64", Type, 0},
    		{"NRGBA64.A", Field, 0},
    		{"NRGBA64.B", Field, 0},
    		{"NRGBA64.G", Field, 0},
    		{"NRGBA64.R", Field, 0},
    		{"NRGBA64Model", Var, 0},
    		{"NRGBAModel", Var, 0},
    		{"NYCbCrA", Type, 6},
    		{"NYCbCrA.A", Field, 6},
    		{"NYCbCrA.YCbCr", Field, 6},
    		{"NYCbCrAModel", Var, 6},
    		{"Opaque", Var, 0},
    		{"Palette", Type, 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)
  8. api/go1.txt

    pkg image/color, var Alpha16Model Model
    pkg image/color, var AlphaModel Model
    pkg image/color, var Black Gray16
    pkg image/color, var Gray16Model Model
    pkg image/color, var GrayModel Model
    pkg image/color, var NRGBA64Model Model
    pkg image/color, var NRGBAModel Model
    pkg image/color, var Opaque Alpha16
    pkg image/color, var RGBA64Model Model
    pkg image/color, var RGBAModel Model
    pkg image/color, var Transparent Alpha16
    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