Documentation ¶
Index ¶
- func DecodeImage(filePath string) (img image.Image, err error)
- func GetImageHeight(img image.Image) int
- func GetImageWidth(img image.Image) int
- func GetImageWidthAndHeight(filename string) (width, height int)
- func New3DSlice(x int, y int, z int) (theSlice [][][]uint8)
- func NewRGBAMatrix(height int, width int) (rgbaMatrix [][][]uint8)
- func Resize(src *image.NRGBA, width int, height int) *image.NRGBA
- func ResizeForMatrix(filepath string, width int, height int) (imgMatrix [][][]uint8, err error)
- type ImageInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeImage ¶ added in v3.0.8
DecodeImage decode a image and retrun golang image interface
func GetImageHeight ¶ added in v3.0.8
GetImageHeight 获取图片高度
func GetImageWidthAndHeight ¶
GetImageWidthAndHeight 获取图片宽高
func New3DSlice ¶ added in v3.0.8
New3DSlice 创建矩阵
func NewRGBAMatrix ¶ added in v3.0.8
NewRGBAMatrix create a new rgba matrix
Types ¶
Click to show internal directories.
Click to hide internal directories.