/*This file is automatically generated by pkg.deepin.io/dbus-generator. Don't edit it*/
package graphic

import "pkg.deepin.io/lib/dbus"
import "pkg.deepin.io/lib/dbus/property"
import "reflect"
import "sync"
import "runtime"
import "fmt"
import "errors"

/*prevent compile error*/
var _ = fmt.Println
var _ = runtime.SetFinalizer
var _ = sync.NewCond
var _ = reflect.TypeOf
var _ = property.BaseObserver{}

type Graphic struct {
	Path     dbus.ObjectPath
	DestName string
	core     *dbus.Object
}

func (obj *Graphic) BlurImage(arg0 string, arg1 string, arg2 float64, arg3 float64, arg4 string) (_err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.BlurImage", 0, arg0, arg1, arg2, arg3, arg4).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) ClipImage(arg0 string, arg1 string, arg2 int32, arg3 int32, arg4 int32, arg5 int32, arg6 string) (_err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.ClipImage", 0, arg0, arg1, arg2, arg3, arg4, arg5, arg6).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) CompositeImage(arg0 string, arg1 string, arg2 string, arg3 int32, arg4 int32, arg5 string) (_err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.CompositeImage", 0, arg0, arg1, arg2, arg3, arg4, arg5).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) CompositeImageUri(arg0 string, arg1 string, arg2 int32, arg3 int32, arg4 string) (arg5 string, _err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.CompositeImageUri", 0, arg0, arg1, arg2, arg3, arg4).Store(&arg5)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) ConvertDataUriToImage(arg0 string, arg1 string, arg2 string) (_err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.ConvertDataUriToImage", 0, arg0, arg1, arg2).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) ConvertImage(arg0 string, arg1 string, arg2 string) (_err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.ConvertImage", 0, arg0, arg1, arg2).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) ConvertImageToDataUri(arg0 string) (arg1 string, _err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.ConvertImageToDataUri", 0, arg0).Store(&arg1)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) FillImage(arg0 string, arg1 string, arg2 int32, arg3 int32, arg4 string, arg5 string) (_err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.FillImage", 0, arg0, arg1, arg2, arg3, arg4, arg5).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) FlipImageHorizontal(arg0 string, arg1 string, arg2 string) (_err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.FlipImageHorizontal", 0, arg0, arg1, arg2).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) FlipImageVertical(arg0 string, arg1 string, arg2 string) (_err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.FlipImageVertical", 0, arg0, arg1, arg2).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) GetDominantColorOfImage(arg0 string) (arg1 float64, arg2 float64, arg3 float64, _err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.GetDominantColorOfImage", 0, arg0).Store(&arg1, &arg2, &arg3)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) GetImageSize(arg0 string) (arg1 int32, arg2 int32, _err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.GetImageSize", 0, arg0).Store(&arg1, &arg2)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) Hsv2Rgb(arg0 float64, arg1 float64, arg2 float64) (arg3 uint8, arg4 uint8, arg5 uint8, _err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.Hsv2Rgb", 0, arg0, arg1, arg2).Store(&arg3, &arg4, &arg5)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) ResizeImage(arg0 string, arg1 string, arg2 int32, arg3 int32, arg4 string) (_err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.ResizeImage", 0, arg0, arg1, arg2, arg3, arg4).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) Rgb2Hsv(arg0 uint8, arg1 uint8, arg2 uint8) (arg3 float64, arg4 float64, arg5 float64, _err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.Rgb2Hsv", 0, arg0, arg1, arg2).Store(&arg3, &arg4, &arg5)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) RotateImageLeft(arg0 string, arg1 string, arg2 string) (_err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.RotateImageLeft", 0, arg0, arg1, arg2).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) RotateImageRight(arg0 string, arg1 string, arg2 string) (_err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.RotateImageRight", 0, arg0, arg1, arg2).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Graphic) ThumbnailImage(arg0 string, arg1 string, arg2 uint32, arg3 uint32, arg4 string) (_err error) {
	_err = obj.core.Call("com.deepin.api.Graphic.ThumbnailImage", 0, arg0, arg1, arg2, arg3, arg4).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func NewGraphic(destName string, path dbus.ObjectPath) (*Graphic, error) {
	if !path.IsValid() {
		return nil, errors.New("The path of '" + string(path) + "' is invalid.")
	}

	core := getBus().Object(destName, path)

	obj := &Graphic{Path: path, DestName: destName, core: core}

	return obj, nil
}
