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 ¶
DecodeImage decode a image and retrun golang image interface
func GetImageWidthAndHeight ¶
GetImageWidthAndHeight 获取图片宽高
func NewRGBAMatrix ¶
NewRGBAMatrix create a new rgba matrix
Types ¶
Click to show internal directories.
Click to hide internal directories.