feat(#20): support flop operation (interface broken, sorry im still beta)

This commit is contained in:
Tomas Aparicio 2015-04-08 00:44:44 +02:00
parent 2d17baca0d
commit 414fe40c91
5 changed files with 25 additions and 7 deletions

View file

@ -82,13 +82,13 @@ func (i *Image) Rotate(a Angle) ([]byte, error) {
// Flip the image about the vertical Y axis
func (i *Image) Flip() ([]byte, error) {
options := Options{Flip: VERTICAL}
options := Options{Flip: true}
return i.Process(options)
}
// Flop the image about the horizontal X axis
func (i *Image) Flop() ([]byte, error) {
options := Options{Flip: VERTICAL}
options := Options{Flop: true}
return i.Process(options)
}