Documentation
¶
Index ¶
- Variables
- func NewNRGBScanner(source_image image.Image, opaque_base Color) types.Scanner
- type Color
- type Image
- func (p *Image) At(x, y int) color.Color
- func (p *Image) Bounds() image.Rectangle
- func (p *Image) ColorModel() color.Model
- func (p *Image) NRGBAt(x, y int) Color
- func (p *Image) Opaque() bool
- func (p *Image) PixOffset(x, y int) int
- func (p *Image) Set(x, y int, c color.Color)
- func (p *Image) SetNRGBA(x, y int, c color.NRGBA)
- func (p *Image) SetRGBA64(x, y int, c color.RGBA64)
- func (p *Image) SubImage(r image.Rectangle) image.Image
Constants ¶
This section is empty.
Variables ¶
View Source
var Model color.Model = color.ModelFunc(nrgbModel)
Functions ¶
Types ¶
type Image ¶
type Image struct {
// Pix holds the image's pixels, in R, G, B order. The pixel at
// (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*3].
Pix []uint8
// Stride is the Pix stride (in bytes) between vertically adjacent pixels.
Stride int
// Rect is the image's bounds.
Rect image.Rectangle
}
Image is an in-memory image whose At method returns Color values.
func (*Image) ColorModel ¶
Click to show internal directories.
Click to hide internal directories.