- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for drawPaletted (0.1 sec)
-
src/image/draw/draw.go
type floydSteinberg struct{} func (floydSteinberg) Draw(dst Image, r image.Rectangle, src image.Image, sp image.Point) { clip(dst, &r, src, &sp, nil, nil) if r.Empty() { return } drawPaletted(dst, r, src, sp, true) } // clip clips r against each image's bounds (after translating into the // destination image's coordinate space) and shifts the points sp and mp by // the same amount as the change in r.Min.
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/draw/draw_test.go
} } // embeddedPaletted is an Image that behaves like an *image.Paletted but whose // type is not *image.Paletted. type embeddedPaletted struct { *image.Paletted } // TestPaletted tests that the drawPaletted function behaves the same // regardless of whether dst is an *image.Paletted. func TestPaletted(t *testing.T) { f, err := os.Open("../testdata/video-001.png") if err != nil { t.Fatalf("open: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 18:07:05 UTC 2023 - 26K bytes - Viewed (0)