mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-14 01:46:18 -07:00
feat(#20): support flop operation (interface broken, sorry im still beta)
This commit is contained in:
parent
2d17baca0d
commit
414fe40c91
5 changed files with 25 additions and 7 deletions
4
image.go
4
image.go
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue