All that I’ve found is:
- https://stackoverflow.com/questions/12430874/image-manipulation-in-golang
- http://www.golangprograms.com/golang-package-examples/how-to-rotate-an-image-in-golang.html
- https://github.com/BurntSushi/graphics-go
UPD
// ...
// crop image
r := image.Rect(0, 0, CropW, CropH)
croppedImg := image.NewRGBA(r)
draw.Draw(croppedImg, r, m, image.Point{x * CropW, y * CropH}, draw.Src)
// flip croppedImg horizontally
// do it using image and pixel by pixel inversing
// croppedImg.point[x1,y1] > flippedImg.point[CropW - x1, y1]
flippedImg := image.NewRGBA(r)
for j := 0; j < croppedImg.Bounds().Dy(); j++ {
for i := 0; i < croppedImg.Bounds().Dx(); i++ {
flippedImg.Set(CropW-i, j, croppedImg.At(i, j))
}
}
// ...