Documentation ¶
Overview ¶
Package image provides a mockable wrapper for image.
Index ¶
- type Impl
- func (*Impl) Decode(r io.Reader) (image.Image, string, error)
- func (*Impl) DecodeConfig(r io.Reader) (image.Config, string, error)
- func (*Impl) NewAlpha(r image.Rectangle) *image.Alpha
- func (*Impl) NewAlpha16(r image.Rectangle) *image.Alpha16
- func (*Impl) NewCMYK(r image.Rectangle) *image.CMYK
- func (*Impl) NewGray(r image.Rectangle) *image.Gray
- func (*Impl) NewGray16(r image.Rectangle) *image.Gray16
- func (*Impl) NewNRGBA(r image.Rectangle) *image.NRGBA
- func (*Impl) NewNRGBA64(r image.Rectangle) *image.NRGBA64
- func (*Impl) NewNYCbCrA(r image.Rectangle, subsampleRatio image.YCbCrSubsampleRatio) *image.NYCbCrA
- func (*Impl) NewPaletted(r image.Rectangle, p color.Palette) *image.Paletted
- func (*Impl) NewRGBA(r image.Rectangle) *image.RGBA
- func (*Impl) NewRGBA64(r image.Rectangle) *image.RGBA64
- func (*Impl) NewUniform(c color.Color) *image.Uniform
- func (*Impl) NewYCbCr(r image.Rectangle, subsampleRatio image.YCbCrSubsampleRatio) *image.YCbCr
- func (*Impl) Pt(X int, Y int) image.Point
- func (*Impl) Rect(x0 int, y0 int, x1 int, y1 int) image.Rectangle
- func (*Impl) RegisterFormat(name string, magic string, decode func(io.Reader) (image.Image, error), ...)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) NewNYCbCrA ¶
func (*Impl) NewPaletted ¶
type Interface ¶
type Interface interface { Decode(r io.Reader) (image.Image, string, error) DecodeConfig(r io.Reader) (image.Config, string, error) NewAlpha(r image.Rectangle) *image.Alpha NewAlpha16(r image.Rectangle) *image.Alpha16 NewCMYK(r image.Rectangle) *image.CMYK NewGray(r image.Rectangle) *image.Gray NewGray16(r image.Rectangle) *image.Gray16 NewNRGBA(r image.Rectangle) *image.NRGBA NewNRGBA64(r image.Rectangle) *image.NRGBA64 NewNYCbCrA(r image.Rectangle, subsampleRatio image.YCbCrSubsampleRatio) *image.NYCbCrA NewPaletted(r image.Rectangle, p color.Palette) *image.Paletted NewRGBA(r image.Rectangle) *image.RGBA NewRGBA64(r image.Rectangle) *image.RGBA64 NewUniform(c color.Color) *image.Uniform NewYCbCr(r image.Rectangle, subsampleRatio image.YCbCrSubsampleRatio) *image.YCbCr Pt(X int, Y int) image.Point Rect(x0 int, y0 int, x1 int, y1 int) image.Rectangle RegisterFormat(name string, magic string, decode func(io.Reader) (image.Image, error), decodeConfig func(io.Reader) (image.Config, error)) }
Directories ¶
Path | Synopsis |
---|---|
Package color provides a mockable wrapper for image/color.
|
Package color provides a mockable wrapper for image/color. |
Package draw provides a mockable wrapper for image/draw.
|
Package draw provides a mockable wrapper for image/draw. |
Package gif provides a mockable wrapper for image/gif.
|
Package gif provides a mockable wrapper for image/gif. |
Package jpeg provides a mockable wrapper for image/jpeg.
|
Package jpeg provides a mockable wrapper for image/jpeg. |
Package png provides a mockable wrapper for image/png.
|
Package png provides a mockable wrapper for image/png. |
Click to show internal directories.
Click to hide internal directories.