+static PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxImage *arg1 = (wxImage *) 0 ;
+ unsigned char arg2 ;
+ unsigned char arg3 ;
+ unsigned char arg4 ;
+ bool result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ char *kwnames[] = {
+ (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
+ SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
+ arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
+ if (PyErr_Occurred()) SWIG_fail;
+ arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
+ if (PyErr_Occurred()) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+