refactor: bindings

This commit is contained in:
Tomas Aparicio 2015-04-06 13:25:01 +02:00
parent d6f8ad617b
commit 206a1efc66
6 changed files with 129 additions and 47 deletions

View file

@ -31,6 +31,14 @@ func (i *Image) Crop(width int, height int) ([]byte, error) {
return i.Process(options)
}
func (i *Image) Thumbnail(width int, height int) ([]byte, error) {
options := Options{
Width: width,
Height: height,
}
return i.Process(options)
}
func (i *Image) Rotate(a Angle) ([]byte, error) {
options := Options{Rotate: a}
return i.Process(options)