Documentation
¶
Index ¶
- Constants
- func CutImage(src image.Image, x0, y0, x1, y1 int) image.Image
- func FlipImage(dst image.Image, src image.Image, flag int) error
- func IsExist(fileName string) bool
- func LevelReversed(src *image.RGBA) *image.RGBA
- func OpenALPHAImage(file string) (*image.Alpha, error)
- func OpenGRAYImage(file string) (*image.Gray, error)
- func OpenImage(file string) (image.Image, error)
- func OpenRGBAImage(file string) (*image.RGBA, error)
- func OpenSingleImage(file string, flag int) (*image.RGBA, error)
- func RotateImage(dst image.Image, src image.Image, flag int) error
- func SaveImage(file string, img image.Image, flag int) error
- func VerticalReversed(src *image.RGBA) *image.RGBA
Constants ¶
View Source
const ( IMAGE_SINGLE_RED = iota IMAGE_SINGLE_GREEN IMAGE_SINGLE_BLUE )
View Source
const ( SAVE_JPEG = iota SAVE_PNG )
View Source
const ( ROTATE_LEFT = iota ROTATE_RIGHT ROTATE_FULL FLIP_HORIZONTAL FLIP_VERTICAL )
Variables ¶
This section is empty.
Functions ¶
func LevelReversed ¶
垂直增加镜像图像,仅支持RGBA格式的图像 处理完的图像是源图像的两倍(y_=2*y)
func OpenSingleImage ¶
以单通道模式打开图像 通道标志有三种 IMAGE_SINGLE_RED(红通道) IMAGE_SINGLE_GREEN(绿通道) IMAGE_SINGLE_BLUE(蓝通道)
func RotateImage ¶
旋转图像 flag: ROTATE_LEFT(向左旋转) ROTATE_RIGHT(向右旋转) ROTATE_FULL(180度旋转) 源图像和目标图像的大小要保存相应
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.