Documentation ¶
Index ¶
- func CreatPng(width, height int) *image.RGBA
- func FlipImgMirror(in, out string) error
- func FlipImgVertical(in, out string) error
- func FlipMirror(m image.Image) *image.RGBA
- func FlipVertical(m image.Image) *image.RGBA
- func LoadImage(path string) (img image.Image, err error)
- func MixImg(src *image.RGBA, dist image.Image, x, y int)
- func Resize(m image.Image, w, h int) *image.RGBA
- func Rotation180(m image.Image) *image.RGBA
- func RotationImg180(in, out string) error
- func RotationImgLeft(in, out string) error
- func RotationImgRight(in, out string) error
- func RotationLeft(m image.Image) *image.RGBA
- func RotationRight(m image.Image) *image.RGBA
- func SaveImage(p string, src image.Image) error
- func TrimBlankDir(dir, suffix string) error
- func TrimBlankFile(in, out string) error
- func TrimBlankImg(src image.Image) (image.Image, error)
- func Trimming(in, out string, x, y, w, h int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resize ¶
https://studygolang.com/articles/1156 Resample返回图像切片r (m)的重新采样副本。 返回的图像宽度为w,高度为h。 func Resample(m image.Image, r image.Rectangle, w, h int) *image.RGBA {
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.