Documentation ¶
Overview ¶
Package imutil contains various internal image utilities.
Index ¶
- func Copy(in image.Image) (ret image.Image)
- func Dump(path string, img image.Image) error
- func DumpGIF(path string, img *gif.GIF) error
- func DumpJPEG(path string, img image.Image, quality int) error
- func Load(path string) (image.Image, error)
- func NewYuv420(buf []byte, w, h int) image.Image
- func RandGray(seed int64, w, h int) *image.Gray
- func RandRGBA(seed int64, w, h int) *image.RGBA
- func Sub(img image.Image, r image.Rectangle) (image.Image, error)
- func ToGray(img image.Image) *image.Gray
- func ToRGBA(img image.Image) *image.RGBA
- type YCbCr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dump ¶
Dump dumps an image to a file. Format is determined by file ending. PNG and JPG are supported.
func NewYuv420 ¶
NewYuv420 creates a new image.Image from a raw Yuv420p buffer. The returned image will reference buf and no data is copied.
Types ¶
type YCbCr ¶
YCbCr is a raw YCbCr image.
func (*YCbCr) ColorModel ¶
ColorModel implements image.Image.
Click to show internal directories.
Click to hide internal directories.