return &Alpha16{pix, w, Rectangle{ZP, Point{w, h}}}
}
-// An Gray is an in-memory image of GrayColor values.
+// A Gray is an in-memory image of GrayColor values.
type Gray struct {
// Pix holds the image's pixels. The pixel at (x, y) is Pix[y*Stride+x].
Pix []GrayColor
return &Gray{pix, w, Rectangle{ZP, Point{w, h}}}
}
-// An Gray16 is an in-memory image of Gray16Color values.
+// A Gray16 is an in-memory image of Gray16Color values.
type Gray16 struct {
// Pix holds the image's pixels. The pixel at (x, y) is Pix[y*Stride+x].
Pix []Gray16Color