Documentation ¶
Index ¶
- func Load(path string) (img image.Image, err error)
- func Rotate(srcPath string, dstPath string, degree Degree, format Format) error
- func Save(path string, img image.Image, format Format) error
- func Scale(srcPath string, dstPath string, width, height int, format Format) error
- func ScaleByHeight(srcPath string, dstPath string, height int, format Format) error
- func ScaleByWidth(srcPath string, dstPath string, width int, format Format) error
- func Size(path string) (int, int, error)
- func Thumbnail(srcPath string, dstPath string, width, height int, format Format) error
- type Degree
- type Format
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScaleByHeight ¶
ScaleByWidth 按高度等比例缩放图片
func ScaleByWidth ¶
ScaleByWidth 按宽度等比例缩放图片
Types ¶
Click to show internal directories.
Click to hide internal directories.