go1.20.5
GoThrough

image.YCbCrSubsampleRatio410

const YCbCrSubsampleRatio410 = iota

image.YCbCrSubsampleRatio411

const YCbCrSubsampleRatio411 = iota

image.YCbCrSubsampleRatio420

const YCbCrSubsampleRatio420 = iota

image.YCbCrSubsampleRatio422

const YCbCrSubsampleRatio422 = iota

image.YCbCrSubsampleRatio440

const YCbCrSubsampleRatio440 = iota

image.YCbCrSubsampleRatio444

const YCbCrSubsampleRatio444 = iota

image.Black

// Black is an opaque black uniform image. var Black = NewUniform(color.Black)

image.ErrFormat

// ErrFormat indicates that decoding encountered an unknown format. var ErrFormat = errors.New("image: unknown format")

image.Opaque

// Opaque is a fully opaque uniform image. var Opaque = NewUniform(color.Opaque)

image.Transparent

// Transparent is a fully transparent uniform image. var Transparent = NewUniform(color.Transparent)

image.White

// White is an opaque white uniform image. var White = NewUniform(color.White)

image.ZP

// ZP is the zero Point. // // Deprecated: Use a literal image.Point{} instead. var ZP Point

image.ZR

// ZR is the zero Rectangle. // // Deprecated: Use a literal image.Rectangle{} instead. var ZR Rectangle

image.Image

// Image is a finite rectangular grid of color.Color values taken from a color // model. type Image interface { // ColorModel returns the Image's color model. ColorModel() color.Model // Bounds returns the domain for which At can return non-zero color. // The bounds do not necessarily contain the point (0, 0). Bounds() Rectangle // At returns the color of the pixel at (x, y). // At(Bounds().Min.X, Bounds().Min.Y) returns the upper-left pixel of the grid. // At(Bounds().Max.X-1, Bounds().Max.Y-1) returns the lower-right one. At(x int, y int) color.Color }

image.PalettedImage

// PalettedImage is an image whose colors may come from a limited palette. // If m is a PalettedImage and m.ColorModel() returns a color.Palette p, // then m.At(x, y) should be equivalent to p[m.ColorIndexAt(x, y)]. If m's // color model is not a color.Palette, then ColorIndexAt's behavior is // undefined. type PalettedImage interface { Image // ColorIndexAt returns the palette index of the pixel at (x, y). ColorIndexAt(x int, y int) uint8 }

image.RGBA64Image

// RGBA64Image is an Image whose pixels can be converted directly to a // color.RGBA64. type RGBA64Image interface { Image // RGBA64At returns the RGBA64 color of the pixel at (x, y). It is // equivalent to calling At(x, y).RGBA() and converting the resulting // 32-bit return values to a color.RGBA64, but it can avoid allocations // from converting concrete color types to the color.Color interface type. RGBA64At(x int, y int) color.RGBA64 }

image.Decode

// Decode decodes an image that has been encoded in a registered format. // The string returned is the format name used during format registration. // Format registration is typically done by an init function in the codec- // specific package. func Decode(r io.Reader) (Image, string, error)

image.DecodeConfig

// DecodeConfig decodes the color model and dimensions of an image that has // been encoded in a registered format. The string returned is the format name // used during format registration. Format registration is typically done by // an init function in the codec-specific package. func DecodeConfig(r io.Reader) (Config, string, error)

image.NewAlpha

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

image.NewAlpha16

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

image.NewCMYK

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

image.NewGray

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

image.NewGray16

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

image.NewNRGBA

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

image.NewNRGBA64

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

image.NewNYCbCrA

// NewNYCbCrA returns a new NYCbCrA image with the given bounds and subsample // ratio. func NewNYCbCrA(r Rectangle, subsampleRatio YCbCrSubsampleRatio) *NYCbCrA

image.NewPaletted

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

image.NewRGBA

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

image.NewRGBA64

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

image.NewUniform

// NewUniform returns a new Uniform image of the given color. func NewUniform(c color.Color) *Uniform

image.NewYCbCr

// NewYCbCr returns a new YCbCr image with the given bounds and subsample // ratio. func NewYCbCr(r Rectangle, subsampleRatio YCbCrSubsampleRatio) *YCbCr

image.Pt

// Pt is shorthand for Point{X, Y}. func Pt(X int, Y int) Point