go/src/image/image.go

type Config

type Image

type RGBA64Image

type PalettedImage

// pixelBufferLength returns the length of the []uint8 typed Pix slice field
// for the NewXxx functions. Conceptually, this is just (bpp * width * height),
// but this function panics if at least one of those is negative or if the
// computation would overflow the int type.
//
// This panics instead of returning an error because of backwards
// compatibility. The NewXxx functions do not return an error.
func pixelBufferLength(bytesPerPixel int, r Rectangle, imageTypeName string) int {}

type RGBA

func (p *RGBA) ColorModel() color.Model {}

func (p *RGBA) Bounds() Rectangle {}

func (p *RGBA) At(x, y int) color.Color {}

func (p *RGBA) RGBA64At(x, y int) color.RGBA64 {}

func (p *RGBA) RGBAAt(x, y int) color.RGBA {}

// PixOffset returns the index of the first element of Pix that corresponds to
// the pixel at (x, y).
func (p *RGBA) PixOffset(x, y int) int {}

func (p *RGBA) Set(x, y int, c color.Color) {}

func (p *RGBA) SetRGBA64(x, y int, c color.RGBA64) {}

func (p *RGBA) SetRGBA(x, y int, c color.RGBA) {}

// SubImage returns an image representing the portion of the image p visible
// through r. The returned value shares pixels with the original image.
func (p *RGBA) SubImage(r Rectangle) Image {}

// Opaque scans the entire image and reports whether it is fully opaque.
func (p *RGBA) Opaque() bool {}

// NewRGBA returns a new [RGBA] image with the given bounds.
func NewRGBA(r Rectangle) *RGBA {}

type RGBA64

func (p *RGBA64) ColorModel() color.Model {}

func (p *RGBA64) Bounds() Rectangle {}

func (p *RGBA64) At(x, y int) color.Color {}

func (p *RGBA64) RGBA64At(x, y int) color.RGBA64 {}

// PixOffset returns the index of the first element of Pix that corresponds to
// the pixel at (x, y).
func (p *RGBA64) PixOffset(x, y int) int {}

func (p *RGBA64) Set(x, y int, c color.Color) {}

func (p *RGBA64) SetRGBA64(x, y int, c color.RGBA64) {}

// SubImage returns an image representing the portion of the image p visible
// through r. The returned value shares pixels with the original image.
func (p *RGBA64) SubImage(r Rectangle) Image {}

// Opaque scans the entire image and reports whether it is fully opaque.
func (p *RGBA64) Opaque() bool {}

// NewRGBA64 returns a new [RGBA64] image with the given bounds.
func NewRGBA64(r Rectangle) *RGBA64 {}

type NRGBA

func (p *NRGBA) ColorModel() color.Model {}

func (p *NRGBA) Bounds() Rectangle {}

func (p *NRGBA) At(x, y int) color.Color {}

func (p *NRGBA) RGBA64At(x, y int) color.RGBA64 {}

func (p *NRGBA) NRGBAAt(x, y int) color.NRGBA {}

// PixOffset returns the index of the first element of Pix that corresponds to
// the pixel at (x, y).
func (p *NRGBA) PixOffset(x, y int) int {}

func (p *NRGBA) Set(x, y int, c color.Color) {}

func (p *NRGBA) SetRGBA64(x, y int, c color.RGBA64) {}

func (p *NRGBA) SetNRGBA(x, y int, c color.NRGBA) {}

// SubImage returns an image representing the portion of the image p visible
// through r. The returned value shares pixels with the original image.
func (p *NRGBA) SubImage(r Rectangle) Image {}

// Opaque scans the entire image and reports whether it is fully opaque.
func (p *NRGBA) Opaque() bool {}

// NewNRGBA returns a new [NRGBA] image with the given bounds.
func NewNRGBA(r Rectangle) *NRGBA {}

type NRGBA64

func (p *NRGBA64) ColorModel() color.Model {}

func (p *NRGBA64) Bounds() Rectangle {}

func (p *NRGBA64) At(x, y int) color.Color {}

func (p *NRGBA64) RGBA64At(x, y int) color.RGBA64 {}

func (p *NRGBA64) NRGBA64At(x, y int) color.NRGBA64 {}

// PixOffset returns the index of the first element of Pix that corresponds to
// the pixel at (x, y).
func (p *NRGBA64) PixOffset(x, y int) int {}

func (p *NRGBA64) Set(x, y int, c color.Color) {}

func (p *NRGBA64) SetRGBA64(x, y int, c color.RGBA64) {}

func (p *NRGBA64) SetNRGBA64(x, y int, c color.NRGBA64) {}

// SubImage returns an image representing the portion of the image p visible
// through r. The returned value shares pixels with the original image.
func (p *NRGBA64) SubImage(r Rectangle) Image {}

// Opaque scans the entire image and reports whether it is fully opaque.
func (p *NRGBA64) Opaque() bool {}

// NewNRGBA64 returns a new [NRGBA64] image with the given bounds.
func NewNRGBA64(r Rectangle) *NRGBA64 {}

type Alpha

func (p *Alpha) ColorModel() color.Model {}

func (p *Alpha) Bounds() Rectangle {}

func (p *Alpha) At(x, y int) color.Color {}

func (p *Alpha) RGBA64At(x, y int) color.RGBA64 {}

func (p *Alpha) AlphaAt(x, y int) color.Alpha {}

// PixOffset returns the index of the first element of Pix that corresponds to
// the pixel at (x, y).
func (p *Alpha) PixOffset(x, y int) int {}

func (p *Alpha) Set(x, y int, c color.Color) {}

func (p *Alpha) SetRGBA64(x, y int, c color.RGBA64) {}

func (p *Alpha) SetAlpha(x, y int, c color.Alpha) {}

// SubImage returns an image representing the portion of the image p visible
// through r. The returned value shares pixels with the original image.
func (p *Alpha) SubImage(r Rectangle) Image {}

// Opaque scans the entire image and reports whether it is fully opaque.
func (p *Alpha) Opaque() bool {}

// NewAlpha returns a new [Alpha] image with the given bounds.
func NewAlpha(r Rectangle) *Alpha {}

type Alpha16

func (p *Alpha16) ColorModel() color.Model {}

func (p *Alpha16) Bounds() Rectangle {}

func (p *Alpha16) At(x, y int) color.Color {}

func (p *Alpha16) RGBA64At(x, y int) color.RGBA64 {}

func (p *Alpha16) Alpha16At(x, y int) color.Alpha16 {}

// PixOffset returns the index of the first element of Pix that corresponds to
// the pixel at (x, y).
func (p *Alpha16) PixOffset(x, y int) int {}

func (p *Alpha16) Set(x, y int, c color.Color) {}

func (p *Alpha16) SetRGBA64(x, y int, c color.RGBA64) {}

func (p *Alpha16) SetAlpha16(x, y int, c color.Alpha16) {}

// SubImage returns an image representing the portion of the image p visible
// through r. The returned value shares pixels with the original image.
func (p *Alpha16) SubImage(r Rectangle) Image {}

// Opaque scans the entire image and reports whether it is fully opaque.
func (p *Alpha16) Opaque() bool {}

// NewAlpha16 returns a new [Alpha16] image with the given bounds.
func NewAlpha16(r Rectangle) *Alpha16 {}

type Gray

func (p *Gray) ColorModel() color.Model {}

func (p *Gray) Bounds() Rectangle {}

func (p *Gray) At(x, y int) color.Color {}

func (p *Gray) RGBA64At(x, y int) color.RGBA64 {}

func (p *Gray) GrayAt(x, y int) color.Gray {}

// PixOffset returns the index of the first element of Pix that corresponds to
// the pixel at (x, y).
func (p *Gray) PixOffset(x, y int) int {}

func (p *Gray) Set(x, y int, c color.Color) {}

func (p *Gray) SetRGBA64(x, y int, c color.RGBA64) {}

func (p *Gray) SetGray(x, y int, c color.Gray) {}

// SubImage returns an image representing the portion of the image p visible
// through r. The returned value shares pixels with the original image.
func (p *Gray) SubImage(r Rectangle) Image {}

// Opaque scans the entire image and reports whether it is fully opaque.
func (p *Gray) Opaque() bool {}

// NewGray returns a new [Gray] image with the given bounds.
func NewGray(r Rectangle) *Gray {}

type Gray16

func (p *Gray16) ColorModel() color.Model {}

func (p *Gray16) Bounds() Rectangle {}

func (p *Gray16) At(x, y int) color.Color {}

func (p *Gray16) RGBA64At(x, y int) color.RGBA64 {}

func (p *Gray16) Gray16At(x, y int) color.Gray16 {}

// PixOffset returns the index of the first element of Pix that corresponds to
// the pixel at (x, y).
func (p *Gray16) PixOffset(x, y int) int {}

func (p *Gray16) Set(x, y int, c color.Color) {}

func (p *Gray16) SetRGBA64(x, y int, c color.RGBA64) {}

func (p *Gray16) SetGray16(x, y int, c color.Gray16) {}

// SubImage returns an image representing the portion of the image p visible
// through r. The returned value shares pixels with the original image.
func (p *Gray16) SubImage(r Rectangle) Image {}

// Opaque scans the entire image and reports whether it is fully opaque.
func (p *Gray16) Opaque() bool {}

// NewGray16 returns a new [Gray16] image with the given bounds.
func NewGray16(r Rectangle) *Gray16 {}

type CMYK

func (p *CMYK) ColorModel() color.Model {}

func (p *CMYK) Bounds() Rectangle {}

func (p *CMYK) At(x, y int) color.Color {}

func (p *CMYK) RGBA64At(x, y int) color.RGBA64 {}

func (p *CMYK) CMYKAt(x, y int) color.CMYK {}

// PixOffset returns the index of the first element of Pix that corresponds to
// the pixel at (x, y).
func (p *CMYK) PixOffset(x, y int) int {}

func (p *CMYK) Set(x, y int, c color.Color) {}

func (p *CMYK) SetRGBA64(x, y int, c color.RGBA64) {}

func (p *CMYK) SetCMYK(x, y int, c color.CMYK) {}

// SubImage returns an image representing the portion of the image p visible
// through r. The returned value shares pixels with the original image.
func (p *CMYK) SubImage(r Rectangle) Image {}

// Opaque scans the entire image and reports whether it is fully opaque.
func (p *CMYK) Opaque() bool {}

// NewCMYK returns a new CMYK image with the given bounds.
func NewCMYK(r Rectangle) *CMYK {}

type Paletted

func (p *Paletted) ColorModel() color.Model {}

func (p *Paletted) Bounds() Rectangle {}

func (p *Paletted) At(x, y int) color.Color {}

func (p *Paletted) RGBA64At(x, y int) color.RGBA64 {}

// PixOffset returns the index of the first element of Pix that corresponds to
// the pixel at (x, y).
func (p *Paletted) PixOffset(x, y int) int {}

func (p *Paletted) Set(x, y int, c color.Color) {}

func (p *Paletted) SetRGBA64(x, y int, c color.RGBA64) {}

func (p *Paletted) ColorIndexAt(x, y int) uint8 {}

func (p *Paletted) SetColorIndex(x, y int, index uint8) {}

// SubImage returns an image representing the portion of the image p visible
// through r. The returned value shares pixels with the original image.
func (p *Paletted) SubImage(r Rectangle) Image {}

// Opaque scans the entire image and reports whether it is fully opaque.
func (p *Paletted) Opaque() bool {}

// NewPaletted returns a new [Paletted] image with the given width, height and
// palette.
func NewPaletted(r Rectangle, p color.Palette) *Paletted {}