Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for RGBA64Image (0.21 sec)

  1. api/go1.17.txt

    pkg image, type RGBA64Image interface { At, Bounds, ColorModel, RGBA64At }
    pkg image, type RGBA64Image interface, At(int, int) color.Color
    pkg image, type RGBA64Image interface, Bounds() Rectangle
    pkg image, type RGBA64Image interface, ColorModel() color.Model
    pkg image, type RGBA64Image interface, RGBA64At(int, int) color.RGBA64
    pkg image/draw, type RGBA64Image interface { At, Bounds, ColorModel, RGBA64At, Set, SetRGBA64 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 18K bytes
    - Viewed (0)
  2. src/image/draw/draw.go

    	image.Image
    	Set(x, y int, c color.Color)
    }
    
    // RGBA64Image extends both the [Image] and [image.RGBA64Image] interfaces with a
    // SetRGBA64 method to change a single pixel. SetRGBA64 is equivalent to
    // calling Set, but it can avoid allocations from converting concrete color
    // types to the [color.Color] interface type.
    type RGBA64Image interface {
    	image.RGBA64Image
    	Set(x, y int, c color.Color)
    	SetRGBA64(x, y int, c color.RGBA64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  3. src/image/image_test.go

    			t.Errorf("could not initialize pixels for %T", tc)
    			continue
    		}
    
    		// Check that RGBA64At(x, y) is equivalent to At(x, y).RGBA().
    		rgba64Image, ok := tc.(RGBA64Image)
    		if !ok {
    			t.Errorf("%T is not an RGBA64Image", tc)
    			continue
    		}
    		got := rgba64Image.RGBA64At(1, 1)
    		wantR, wantG, wantB, wantA := tc.At(1, 1).RGBA()
    		if (uint32(got.R) != wantR) || (uint32(got.G) != wantG) ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 30 02:00:49 UTC 2021
    - 10.8K bytes
    - Viewed (0)
  4. src/image/draw/draw_test.go

    	}
    }
    
    func init() {
    	var p any = (*slowestRGBA)(nil)
    	if _, ok := p.(RGBA64Image); ok {
    		panic("slowestRGBA should not be an RGBA64Image")
    	}
    }
    
    // slowerRGBA is a draw.Image like image.RGBA but it is a different type and
    // therefore does not trigger the draw.go fastest code paths.
    //
    // Unlike slowestRGBA, it still implements the draw.RGBA64Image interface.
    type slowerRGBA struct {
    	Pix    []uint8
    	Stride int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 26K bytes
    - Viewed (0)
  5. src/image/geom.go

    // At implements the [Image] interface.
    func (r Rectangle) At(x, y int) color.Color {
    	if (Point{x, y}).In(r) {
    		return color.Opaque
    	}
    	return color.Transparent
    }
    
    // RGBA64At implements the [RGBA64Image] interface.
    func (r Rectangle) RGBA64At(x, y int) color.RGBA64 {
    	if (Point{x, y}).In(r) {
    		return color.RGBA64{0xffff, 0xffff, 0xffff, 0xffff}
    	}
    	return color.RGBA64{}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  6. src/image/image.go

    	// At(Bounds().Max.X-1, Bounds().Max.Y-1) returns the lower-right one.
    	At(x, y int) color.Color
    }
    
    // RGBA64Image is an [Image] whose pixels can be converted directly to a
    // color.RGBA64.
    type RGBA64Image interface {
    	// RGBA64At returns the RGBA64 color of the pixel at (x, y). It is
    	// equivalent to calling At(x, y).RGBA() and converting the resulting
    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

    		{"RGBA.Pix", Field, 0},
    		{"RGBA.Rect", Field, 0},
    		{"RGBA.Stride", Field, 0},
    		{"RGBA64", Type, 0},
    		{"RGBA64.Pix", Field, 0},
    		{"RGBA64.Rect", Field, 0},
    		{"RGBA64.Stride", Field, 0},
    		{"RGBA64Image", Type, 17},
    		{"Rect", Func, 0},
    		{"Rectangle", Type, 0},
    		{"Rectangle.Max", Field, 0},
    		{"Rectangle.Min", Field, 0},
    		{"RegisterFormat", Func, 0},
    		{"Transparent", Var, 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)
Back to top