Home | History | Annotate | Download | only in image

Lines Matching defs:Image

5 // Package image implements a basic 2-D image library.
7 // The fundamental interface is called Image. An Image contains colors, which
8 // are described in the image/color package.
10 // Values of the Image interface are created either by calling functions such
12 // image data in a format such as GIF, JPEG or PNG. Decoding any particular
13 // image format requires the prior registration of a decoder function.
15 // format's package so that, to decode a PNG image, it suffices to have
16 // import _ "image/png"
20 // See "The Go image package" for more details:
22 package image
25 "image/color"
28 // Config holds an image's color model and dimensions.
34 // Image is a finite rectangular grid of color.Color values taken from a color
36 type Image interface {
37 // ColorModel returns the Image's color model.
48 // PalettedImage is an image whose colors may come from a limited palette.
56 Image
59 // RGBA is an in-memory image whose At method returns color.RGBA values.
61 // Pix holds the image's pixels, in R, G, B, A order. The pixel at
66 // Rect is the image's bounds.
115 // SubImage returns an image representing the portion of the image p visible
116 // through r. The returned value shares pixels with the original image.
117 func (p *RGBA) SubImage(r Rectangle) Image {
133 // Opaque scans the entire image and reports whether it is fully opaque.
151 // NewRGBA returns a new RGBA image with the given bounds.
158 // RGBA64 is an in-memory image whose At method returns color.RGBA64 values.
160 // Pix holds the image's pixels, in R, G, B, A order and big-endian format. The pixel at
165 // Rect is the image's bounds.
227 // SubImage returns an image representing the portion of the image p visible
228 // through r. The returned value shares pixels with the original image.
229 func (p *RGBA64) SubImage(r Rectangle) Image {
245 // Opaque scans the entire image and reports whether it is fully opaque.
263 // NewRGBA64 returns a new RGBA64 image with the given bounds.
270 // NRGBA is an in-memory image whose At method returns color.NRGBA values.
272 // Pix holds the image's pixels, in R, G, B, A order. The pixel at
277 // Rect is the image's bounds.
326 // SubImage returns an image representing the portion of the image p visible
327 // through r. The returned value shares pixels with the original image.
328 func (p *NRGBA) SubImage(r Rectangle) Image {
344 // Opaque scans the entire image and reports whether it is fully opaque.
362 // NewNRGBA returns a new NRGBA image with the given bounds.
369 // NRGBA64 is an in-memory image whose At method returns color.NRGBA64 values.
371 // Pix holds the image's pixels, in R, G, B, A order and big-endian format. The pixel at
376 // Rect is the image's bounds.
438 // SubImage returns an image representing the portion of the image p visible
439 // through r. The returned value shares pixels with the original image.
440 func (p *NRGBA64) SubImage(r Rectangle) Image {
456 // Opaque scans the entire image and reports whether it is fully opaque.
474 // NewNRGBA64 returns a new NRGBA64 image with the given bounds.
481 // Alpha is an in-memory image whose At method returns color.Alpha values.
483 // Pix holds the image's pixels, as alpha values. The pixel at
488 // Rect is the image's bounds.
530 // SubImage returns an image representing the portion of the image p visible
531 // through r. The returned value shares pixels with the original image.
532 func (p *Alpha) SubImage(r Rectangle) Image {
548 // Opaque scans the entire image and reports whether it is fully opaque.
566 // NewAlpha returns a new Alpha image with the given bounds.
573 // Alpha16 is an in-memory image whose At method returns color.Alpha16 values.
575 // Pix holds the image's pixels, as alpha values in big-endian format. The pixel at
580 // Rect is the image's bounds.
625 // SubImage returns an image representing the portion of the image p visible
626 // through r. The returned value shares pixels with the original image.
627 func (p *Alpha16) SubImage(r Rectangle) Image {
643 // Opaque scans the entire image and reports whether it is fully opaque.
661 // NewAlpha16 returns a new Alpha16 image with the given bounds.
668 // Gray is an in-memory image whose At method returns color.Gray values.
670 // Pix holds the image's pixels, as gray values. The pixel at
675 // Rect is the image's bounds.
717 // SubImage returns an image representing the portion of the image p visible
718 // through r. The returned value shares pixels with the original image.
719 func (p *Gray) SubImage(r Rectangle) Image {
735 // Opaque scans the entire image and reports whether it is fully opaque.
740 // NewGray returns a new Gray image with the given bounds.
747 // Gray16 is an in-memory image whose At method returns color.Gray16 values.
749 // Pix holds the image's pixels, as gray values in big-endian format. The pixel at
754 // Rect is the image's bounds.
799 // SubImage returns an image representing the portion of the image p visible
800 // through r. The returned value shares pixels with the original image.
801 func (p *Gray16) SubImage(r Rectangle) Image {
817 // Opaque scans the entire image and reports whether it is fully opaque.
822 // NewGray16 returns a new Gray16 image with the given bounds.
829 // CMYK is an in-memory image whose At method returns color.CMYK values.
831 // Pix holds the image's pixels, in C, M, Y, K order. The pixel at
836 // Rect is the image's bounds.
885 // SubImage returns an image representing the portion of the image p visible
886 // through r. The returned value shares pixels with the original image.
887 func (p *CMYK) SubImage(r Rectangle) Image {
903 // Opaque scans the entire image and reports whether it is fully opaque.
908 // NewCMYK returns a new CMYK image with the given bounds.
915 // Paletted is an in-memory image of uint8 indices into a given palette.
917 // Pix holds the image's pixels, as palette indices. The pixel at
922 // Rect is the image's bounds.
924 // Palette is the image's palette.
973 // SubImage returns an image representing the portion of the image p visible
974 // through r. The returned value shares pixels with the original image.
975 func (p *Paletted) SubImage(r Rectangle) Image {
994 // Opaque scans the entire image and reports whether it is fully opaque.
1017 // NewPaletted returns a new Paletted image with the given width, height and