2  * FILE : src/gtk/image.cpp 
   4  * This file was automatically generated by : 
   5  * Simplified Wrapper and Interface Generator (SWIG) 
   6  * Version 1.1 (Build 883) 
   8  * Portions Copyright (c) 1995-1998 
   9  * The University of Utah and The Regents of the University of California. 
  10  * Permission is granted to distribute this file in any manner provided 
  11  * this notice remains intact. 
  13  * Do not make changes to this file--changes will be lost! 
  19 /* Implementation : PYTHON */ 
  24 /* Definitions for Windows/Unix exporting */ 
  25 #if defined(__WIN32__) 
  26 #   if defined(_MSC_VER) 
  27 #       define SWIGEXPORT(a) __declspec(dllexport) a 
  29 #       if defined(__BORLANDC__) 
  30 #           define SWIGEXPORT(a) a _export 
  32 #           define SWIGEXPORT(a) a 
  36 #   define SWIGEXPORT(a) a 
  45 extern void SWIG_MakePtr(char *, void *, char *); 
  46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); 
  47 extern char *SWIG_GetPtr(char *, void **, char *); 
  48 extern char *SWIG_GetPtrObj(PyObject 
*, void **, char *); 
  49 extern void SWIG_addvarlink(PyObject 
*, char *, PyObject 
*(*)(void), int (*)(PyObject 
*)); 
  50 extern PyObject 
*SWIG_newvarlink(void); 
  54 #define SWIG_init    initimagec 
  56 #define SWIG_name    "imagec" 
  61 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) { 
  65     } else if (target 
== Py_None
) { 
  69         if (!PyList_Check(target
)) { 
  71             target 
= PyList_New(0); 
  72             PyList_Append(target
, o2
); 
  75         PyList_Append(target
,o
); 
  81 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) { 
  87     } else if (target 
== Py_None
) { 
  91         if (!PyTuple_Check(target
)) { 
  93             target 
= PyTuple_New(1); 
  94             PyTuple_SetItem(target
, 0, o2
); 
  97         PyTuple_SetItem(o3
, 0, o
); 
 100         target 
= PySequence_Concat(o2
, o3
); 
 107 #if PYTHON_API_VERSION >= 1009 
 108     static char* wxStringErrorMsg 
= "String or Unicode type required"; 
 110     static char* wxStringErrorMsg 
= "string type is required for parameter"; 
 113     wxImage
* wxEmptyImage(int width
=0, int height
=0) { 
 114         if (width 
== 0 && height 
== 0) 
 117             return new wxImage(width
, height
); 
 120     wxImage
* wxImageFromMime(const wxString
& name
, const wxString
& mimetype
) { 
 121         return new wxImage(name
, mimetype
); 
 124     wxImage
* wxImageFromBitmap(const wxBitmap 
&bitmap
) { 
 125         return new wxImage(bitmap
); 
 129 extern wxImage  wxNullImage
;  
 133     wxBitmap
* wxBitmapFromImage(const wxImage
& img
, int depth
=-1) { 
 134         return new wxBitmap(img
, depth
); 
 140 static PyObject 
*_wrap_wxEmptyImage(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 141     PyObject 
* _resultobj
; 
 143     int  _arg0 
= (int ) 0; 
 144     int  _arg1 
= (int ) 0; 
 145     char *_kwnames
[] = { "width","height", NULL 
}; 
 149     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|ii:wxEmptyImage",_kwnames
,&_arg0
,&_arg1
))  
 152     wxPy_BEGIN_ALLOW_THREADS
; 
 153         _result 
= (wxImage 
*)wxEmptyImage(_arg0
,_arg1
); 
 155     wxPy_END_ALLOW_THREADS
; 
 157         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p"); 
 158         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 161         _resultobj 
= Py_None
; 
 166 static PyObject 
*_wrap_wxImageFromMime(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 167     PyObject 
* _resultobj
; 
 171     PyObject 
* _obj0 
= 0; 
 172     PyObject 
* _obj1 
= 0; 
 173     char *_kwnames
[] = { "name","mimetype", NULL 
}; 
 177     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageFromMime",_kwnames
,&_obj0
,&_obj1
))  
 180 #if PYTHON_API_VERSION >= 1009 
 181     char* tmpPtr
; int tmpSize
; 
 182     if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) { 
 183         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 186     if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1) 
 188     _arg0 
= new wxString(tmpPtr
, tmpSize
); 
 190     if (!PyString_Check(_obj0
)) { 
 191         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 194     _arg0 
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
)); 
 198 #if PYTHON_API_VERSION >= 1009 
 199     char* tmpPtr
; int tmpSize
; 
 200     if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) { 
 201         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 204     if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1) 
 206     _arg1 
= new wxString(tmpPtr
, tmpSize
); 
 208     if (!PyString_Check(_obj1
)) { 
 209         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 212     _arg1 
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
)); 
 216     wxPy_BEGIN_ALLOW_THREADS
; 
 217         _result 
= (wxImage 
*)wxImageFromMime(*_arg0
,*_arg1
); 
 219     wxPy_END_ALLOW_THREADS
; 
 221         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p"); 
 222         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 225         _resultobj 
= Py_None
; 
 238 static PyObject 
*_wrap_wxImageFromBitmap(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 239     PyObject 
* _resultobj
; 
 242     PyObject 
* _argo0 
= 0; 
 243     char *_kwnames
[] = { "bitmap", NULL 
}; 
 247     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageFromBitmap",_kwnames
,&_argo0
))  
 250         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 251         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) { 
 252             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p."); 
 257     wxPy_BEGIN_ALLOW_THREADS
; 
 258         _result 
= (wxImage 
*)wxImageFromBitmap(*_arg0
); 
 260     wxPy_END_ALLOW_THREADS
; 
 262         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p"); 
 263         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 266         _resultobj 
= Py_None
; 
 271 static PyObject 
*_wrap_wxInitAllImageHandlers(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 272     PyObject 
* _resultobj
; 
 273     char *_kwnames
[] = {  NULL 
}; 
 276     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxInitAllImageHandlers",_kwnames
))  
 279     wxPy_BEGIN_ALLOW_THREADS
; 
 280         wxInitAllImageHandlers(); 
 282     wxPy_END_ALLOW_THREADS
; 
 283 }    Py_INCREF(Py_None
); 
 284     _resultobj 
= Py_None
; 
 288 static int _wrap_wxNullImage_set(PyObject 
*val
) { 
 290     PyErr_SetString(PyExc_TypeError
,"Variable wxNullImage is read-only."); 
 294 static PyObject 
*_wrap_wxNullImage_get() { 
 298     SWIG_MakePtr(ptemp
,(char *) &wxNullImage
,"_wxImage_p"); 
 299     pyobj 
= PyString_FromString(ptemp
); 
 303 static PyObject 
*_wrap_wxBitmapFromImage(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 304     PyObject 
* _resultobj
; 
 307     int  _arg1 
= (int ) -1; 
 308     PyObject 
* _argo0 
= 0; 
 309     char *_kwnames
[] = { "img","depth", NULL 
}; 
 313     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxBitmapFromImage",_kwnames
,&_argo0
,&_arg1
))  
 316         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 317         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
 318             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromImage. Expected _wxImage_p."); 
 323     wxPy_BEGIN_ALLOW_THREADS
; 
 324         _result 
= (wxBitmap 
*)wxBitmapFromImage(*_arg0
,_arg1
); 
 326     wxPy_END_ALLOW_THREADS
; 
 328         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p"); 
 329         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 332         _resultobj 
= Py_None
; 
 337 #define wxImageHandler_GetName(_swigobj)  (_swigobj->GetName()) 
 338 static PyObject 
*_wrap_wxImageHandler_GetName(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 339     PyObject 
* _resultobj
; 
 341     wxImageHandler 
* _arg0
; 
 342     PyObject 
* _argo0 
= 0; 
 343     char *_kwnames
[] = { "self", NULL 
}; 
 346     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetName",_kwnames
,&_argo0
))  
 349         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 350         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) { 
 351             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p."); 
 356     wxPy_BEGIN_ALLOW_THREADS
; 
 357         _result 
= new wxString (wxImageHandler_GetName(_arg0
)); 
 359     wxPy_END_ALLOW_THREADS
; 
 361     _resultobj 
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len()); 
 369 #define wxImageHandler_GetExtension(_swigobj)  (_swigobj->GetExtension()) 
 370 static PyObject 
*_wrap_wxImageHandler_GetExtension(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 371     PyObject 
* _resultobj
; 
 373     wxImageHandler 
* _arg0
; 
 374     PyObject 
* _argo0 
= 0; 
 375     char *_kwnames
[] = { "self", NULL 
}; 
 378     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetExtension",_kwnames
,&_argo0
))  
 381         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 382         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) { 
 383             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p."); 
 388     wxPy_BEGIN_ALLOW_THREADS
; 
 389         _result 
= new wxString (wxImageHandler_GetExtension(_arg0
)); 
 391     wxPy_END_ALLOW_THREADS
; 
 393     _resultobj 
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len()); 
 401 #define wxImageHandler_GetType(_swigobj)  (_swigobj->GetType()) 
 402 static PyObject 
*_wrap_wxImageHandler_GetType(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 403     PyObject 
* _resultobj
; 
 405     wxImageHandler 
* _arg0
; 
 406     PyObject 
* _argo0 
= 0; 
 407     char *_kwnames
[] = { "self", NULL 
}; 
 410     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetType",_kwnames
,&_argo0
))  
 413         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 414         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) { 
 415             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p."); 
 420     wxPy_BEGIN_ALLOW_THREADS
; 
 421         _result 
= (long )wxImageHandler_GetType(_arg0
); 
 423     wxPy_END_ALLOW_THREADS
; 
 424 }    _resultobj 
= Py_BuildValue("l",_result
); 
 428 #define wxImageHandler_GetMimeType(_swigobj)  (_swigobj->GetMimeType()) 
 429 static PyObject 
*_wrap_wxImageHandler_GetMimeType(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 430     PyObject 
* _resultobj
; 
 432     wxImageHandler 
* _arg0
; 
 433     PyObject 
* _argo0 
= 0; 
 434     char *_kwnames
[] = { "self", NULL 
}; 
 437     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetMimeType",_kwnames
,&_argo0
))  
 440         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 441         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) { 
 442             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p."); 
 447     wxPy_BEGIN_ALLOW_THREADS
; 
 448         _result 
= new wxString (wxImageHandler_GetMimeType(_arg0
)); 
 450     wxPy_END_ALLOW_THREADS
; 
 452     _resultobj 
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len()); 
 460 #define wxImageHandler_SetName(_swigobj,_swigarg0)  (_swigobj->SetName(_swigarg0)) 
 461 static PyObject 
*_wrap_wxImageHandler_SetName(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 462     PyObject 
* _resultobj
; 
 463     wxImageHandler 
* _arg0
; 
 465     PyObject 
* _argo0 
= 0; 
 466     PyObject 
* _obj1 
= 0; 
 467     char *_kwnames
[] = { "self","name", NULL 
}; 
 470     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetName",_kwnames
,&_argo0
,&_obj1
))  
 473         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 474         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) { 
 475             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p."); 
 480 #if PYTHON_API_VERSION >= 1009 
 481     char* tmpPtr
; int tmpSize
; 
 482     if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) { 
 483         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 486     if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1) 
 488     _arg1 
= new wxString(tmpPtr
, tmpSize
); 
 490     if (!PyString_Check(_obj1
)) { 
 491         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 494     _arg1 
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
)); 
 498     wxPy_BEGIN_ALLOW_THREADS
; 
 499         wxImageHandler_SetName(_arg0
,*_arg1
); 
 501     wxPy_END_ALLOW_THREADS
; 
 502 }    Py_INCREF(Py_None
); 
 503     _resultobj 
= Py_None
; 
 511 #define wxImageHandler_SetExtension(_swigobj,_swigarg0)  (_swigobj->SetExtension(_swigarg0)) 
 512 static PyObject 
*_wrap_wxImageHandler_SetExtension(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 513     PyObject 
* _resultobj
; 
 514     wxImageHandler 
* _arg0
; 
 516     PyObject 
* _argo0 
= 0; 
 517     PyObject 
* _obj1 
= 0; 
 518     char *_kwnames
[] = { "self","extension", NULL 
}; 
 521     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetExtension",_kwnames
,&_argo0
,&_obj1
))  
 524         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 525         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) { 
 526             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p."); 
 531 #if PYTHON_API_VERSION >= 1009 
 532     char* tmpPtr
; int tmpSize
; 
 533     if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) { 
 534         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 537     if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1) 
 539     _arg1 
= new wxString(tmpPtr
, tmpSize
); 
 541     if (!PyString_Check(_obj1
)) { 
 542         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 545     _arg1 
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
)); 
 549     wxPy_BEGIN_ALLOW_THREADS
; 
 550         wxImageHandler_SetExtension(_arg0
,*_arg1
); 
 552     wxPy_END_ALLOW_THREADS
; 
 553 }    Py_INCREF(Py_None
); 
 554     _resultobj 
= Py_None
; 
 562 #define wxImageHandler_SetType(_swigobj,_swigarg0)  (_swigobj->SetType(_swigarg0)) 
 563 static PyObject 
*_wrap_wxImageHandler_SetType(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 564     PyObject 
* _resultobj
; 
 565     wxImageHandler 
* _arg0
; 
 567     PyObject 
* _argo0 
= 0; 
 568     char *_kwnames
[] = { "self","type", NULL 
}; 
 571     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxImageHandler_SetType",_kwnames
,&_argo0
,&_arg1
))  
 574         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 575         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) { 
 576             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p."); 
 581     wxPy_BEGIN_ALLOW_THREADS
; 
 582         wxImageHandler_SetType(_arg0
,_arg1
); 
 584     wxPy_END_ALLOW_THREADS
; 
 585 }    Py_INCREF(Py_None
); 
 586     _resultobj 
= Py_None
; 
 590 #define wxImageHandler_SetMimeType(_swigobj,_swigarg0)  (_swigobj->SetMimeType(_swigarg0)) 
 591 static PyObject 
*_wrap_wxImageHandler_SetMimeType(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 592     PyObject 
* _resultobj
; 
 593     wxImageHandler 
* _arg0
; 
 595     PyObject 
* _argo0 
= 0; 
 596     PyObject 
* _obj1 
= 0; 
 597     char *_kwnames
[] = { "self","mimetype", NULL 
}; 
 600     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetMimeType",_kwnames
,&_argo0
,&_obj1
))  
 603         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 604         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) { 
 605             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p."); 
 610 #if PYTHON_API_VERSION >= 1009 
 611     char* tmpPtr
; int tmpSize
; 
 612     if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) { 
 613         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 616     if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1) 
 618     _arg1 
= new wxString(tmpPtr
, tmpSize
); 
 620     if (!PyString_Check(_obj1
)) { 
 621         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 624     _arg1 
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
)); 
 628     wxPy_BEGIN_ALLOW_THREADS
; 
 629         wxImageHandler_SetMimeType(_arg0
,*_arg1
); 
 631     wxPy_END_ALLOW_THREADS
; 
 632 }    Py_INCREF(Py_None
); 
 633     _resultobj 
= Py_None
; 
 641 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr
) { 
 643     wxImageHandler 
*dest
; 
 644     src 
= (wxPNGHandler 
*) ptr
; 
 645     dest 
= (wxImageHandler 
*) src
; 
 646     return (void *) dest
; 
 649 #define new_wxPNGHandler() (new wxPNGHandler()) 
 650 static PyObject 
*_wrap_new_wxPNGHandler(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 651     PyObject 
* _resultobj
; 
 652     wxPNGHandler 
* _result
; 
 653     char *_kwnames
[] = {  NULL 
}; 
 657     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNGHandler",_kwnames
))  
 660     wxPy_BEGIN_ALLOW_THREADS
; 
 661         _result 
= (wxPNGHandler 
*)new_wxPNGHandler(); 
 663     wxPy_END_ALLOW_THREADS
; 
 665         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNGHandler_p"); 
 666         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 669         _resultobj 
= Py_None
; 
 674 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr
) { 
 676     wxImageHandler 
*dest
; 
 677     src 
= (wxJPEGHandler 
*) ptr
; 
 678     dest 
= (wxImageHandler 
*) src
; 
 679     return (void *) dest
; 
 682 #define new_wxJPEGHandler() (new wxJPEGHandler()) 
 683 static PyObject 
*_wrap_new_wxJPEGHandler(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 684     PyObject 
* _resultobj
; 
 685     wxJPEGHandler 
* _result
; 
 686     char *_kwnames
[] = {  NULL 
}; 
 690     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxJPEGHandler",_kwnames
))  
 693     wxPy_BEGIN_ALLOW_THREADS
; 
 694         _result 
= (wxJPEGHandler 
*)new_wxJPEGHandler(); 
 696     wxPy_END_ALLOW_THREADS
; 
 698         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxJPEGHandler_p"); 
 699         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 702         _resultobj 
= Py_None
; 
 707 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr
) { 
 709     wxImageHandler 
*dest
; 
 710     src 
= (wxBMPHandler 
*) ptr
; 
 711     dest 
= (wxImageHandler 
*) src
; 
 712     return (void *) dest
; 
 715 #define new_wxBMPHandler() (new wxBMPHandler()) 
 716 static PyObject 
*_wrap_new_wxBMPHandler(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 717     PyObject 
* _resultobj
; 
 718     wxBMPHandler 
* _result
; 
 719     char *_kwnames
[] = {  NULL 
}; 
 723     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxBMPHandler",_kwnames
))  
 726     wxPy_BEGIN_ALLOW_THREADS
; 
 727         _result 
= (wxBMPHandler 
*)new_wxBMPHandler(); 
 729     wxPy_END_ALLOW_THREADS
; 
 731         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBMPHandler_p"); 
 732         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 735         _resultobj 
= Py_None
; 
 740 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr
) { 
 742     wxImageHandler 
*dest
; 
 743     src 
= (wxGIFHandler 
*) ptr
; 
 744     dest 
= (wxImageHandler 
*) src
; 
 745     return (void *) dest
; 
 748 #define new_wxGIFHandler() (new wxGIFHandler()) 
 749 static PyObject 
*_wrap_new_wxGIFHandler(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 750     PyObject 
* _resultobj
; 
 751     wxGIFHandler 
* _result
; 
 752     char *_kwnames
[] = {  NULL 
}; 
 756     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGIFHandler",_kwnames
))  
 759     wxPy_BEGIN_ALLOW_THREADS
; 
 760         _result 
= (wxGIFHandler 
*)new_wxGIFHandler(); 
 762     wxPy_END_ALLOW_THREADS
; 
 764         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGIFHandler_p"); 
 765         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 768         _resultobj 
= Py_None
; 
 773 static void *SwigwxPNMHandlerTowxImageHandler(void *ptr
) { 
 775     wxImageHandler 
*dest
; 
 776     src 
= (wxPNMHandler 
*) ptr
; 
 777     dest 
= (wxImageHandler 
*) src
; 
 778     return (void *) dest
; 
 781 #define new_wxPNMHandler() (new wxPNMHandler()) 
 782 static PyObject 
*_wrap_new_wxPNMHandler(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 783     PyObject 
* _resultobj
; 
 784     wxPNMHandler 
* _result
; 
 785     char *_kwnames
[] = {  NULL 
}; 
 789     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNMHandler",_kwnames
))  
 792     wxPy_BEGIN_ALLOW_THREADS
; 
 793         _result 
= (wxPNMHandler 
*)new_wxPNMHandler(); 
 795     wxPy_END_ALLOW_THREADS
; 
 797         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNMHandler_p"); 
 798         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 801         _resultobj 
= Py_None
; 
 806 static void *SwigwxPCXHandlerTowxImageHandler(void *ptr
) { 
 808     wxImageHandler 
*dest
; 
 809     src 
= (wxPCXHandler 
*) ptr
; 
 810     dest 
= (wxImageHandler 
*) src
; 
 811     return (void *) dest
; 
 814 #define new_wxPCXHandler() (new wxPCXHandler()) 
 815 static PyObject 
*_wrap_new_wxPCXHandler(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 816     PyObject 
* _resultobj
; 
 817     wxPCXHandler 
* _result
; 
 818     char *_kwnames
[] = {  NULL 
}; 
 822     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPCXHandler",_kwnames
))  
 825     wxPy_BEGIN_ALLOW_THREADS
; 
 826         _result 
= (wxPCXHandler 
*)new_wxPCXHandler(); 
 828     wxPy_END_ALLOW_THREADS
; 
 830         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPCXHandler_p"); 
 831         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 834         _resultobj 
= Py_None
; 
 839 static void *SwigwxTIFFHandlerTowxImageHandler(void *ptr
) { 
 841     wxImageHandler 
*dest
; 
 842     src 
= (wxTIFFHandler 
*) ptr
; 
 843     dest 
= (wxImageHandler 
*) src
; 
 844     return (void *) dest
; 
 847 #define new_wxTIFFHandler() (new wxTIFFHandler()) 
 848 static PyObject 
*_wrap_new_wxTIFFHandler(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 849     PyObject 
* _resultobj
; 
 850     wxTIFFHandler 
* _result
; 
 851     char *_kwnames
[] = {  NULL 
}; 
 855     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTIFFHandler",_kwnames
))  
 858     wxPy_BEGIN_ALLOW_THREADS
; 
 859         _result 
= (wxTIFFHandler 
*)new_wxTIFFHandler(); 
 861     wxPy_END_ALLOW_THREADS
; 
 863         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTIFFHandler_p"); 
 864         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 867         _resultobj 
= Py_None
; 
 872 #define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1)) 
 873 static PyObject 
*_wrap_new_wxImage(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 874     PyObject 
* _resultobj
; 
 877     long  _arg1 
= (long ) wxBITMAP_TYPE_ANY
; 
 878     PyObject 
* _obj0 
= 0; 
 879     char *_kwnames
[] = { "name","type", NULL 
}; 
 883     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:new_wxImage",_kwnames
,&_obj0
,&_arg1
))  
 886 #if PYTHON_API_VERSION >= 1009 
 887     char* tmpPtr
; int tmpSize
; 
 888     if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) { 
 889         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 892     if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1) 
 894     _arg0 
= new wxString(tmpPtr
, tmpSize
); 
 896     if (!PyString_Check(_obj0
)) { 
 897         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
 900     _arg0 
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
)); 
 904     wxPy_BEGIN_ALLOW_THREADS
; 
 905         _result 
= (wxImage 
*)new_wxImage(*_arg0
,_arg1
); 
 907     wxPy_END_ALLOW_THREADS
; 
 909         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p"); 
 910         _resultobj 
= Py_BuildValue("s",_ptemp
); 
 913         _resultobj 
= Py_None
; 
 922 #define delete_wxImage(_swigobj) (delete _swigobj) 
 923 static PyObject 
*_wrap_delete_wxImage(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 924     PyObject 
* _resultobj
; 
 926     PyObject 
* _argo0 
= 0; 
 927     char *_kwnames
[] = { "self", NULL 
}; 
 930     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImage",_kwnames
,&_argo0
))  
 933         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 934         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
 935             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p."); 
 940     wxPy_BEGIN_ALLOW_THREADS
; 
 941         delete_wxImage(_arg0
); 
 943     wxPy_END_ALLOW_THREADS
; 
 944 }    Py_INCREF(Py_None
); 
 945     _resultobj 
= Py_None
; 
 949 #define wxImage_ConvertToBitmap(_swigobj)  (_swigobj->ConvertToBitmap()) 
 950 static PyObject 
*_wrap_wxImage_ConvertToBitmap(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 951     PyObject 
* _resultobj
; 
 954     PyObject 
* _argo0 
= 0; 
 955     char *_kwnames
[] = { "self", NULL 
}; 
 959     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_ConvertToBitmap",_kwnames
,&_argo0
))  
 962         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 963         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
 964             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p."); 
 969     wxPy_BEGIN_ALLOW_THREADS
; 
 970         _result 
= new wxBitmap (wxImage_ConvertToBitmap(_arg0
)); 
 972     wxPy_END_ALLOW_THREADS
; 
 973 }    SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p"); 
 974     _resultobj 
= Py_BuildValue("s",_ptemp
); 
 978 #define wxImage_ConvertToMonoBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2)  (_swigobj->ConvertToMonoBitmap(_swigarg0,_swigarg1,_swigarg2)) 
 979 static PyObject 
*_wrap_wxImage_ConvertToMonoBitmap(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
 980     PyObject 
* _resultobj
; 
 986     PyObject 
* _argo0 
= 0; 
 987     char *_kwnames
[] = { "self","red","green","blue", NULL 
}; 
 991     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_ConvertToMonoBitmap",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))  
 994         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
 995         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
 996             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToMonoBitmap. Expected _wxImage_p."); 
1001     wxPy_BEGIN_ALLOW_THREADS
; 
1002         _result 
= new wxBitmap (wxImage_ConvertToMonoBitmap(_arg0
,_arg1
,_arg2
,_arg3
)); 
1004     wxPy_END_ALLOW_THREADS
; 
1005 }    SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p"); 
1006     _resultobj 
= Py_BuildValue("s",_ptemp
); 
1010 #define wxImage_Create(_swigobj,_swigarg0,_swigarg1)  (_swigobj->Create(_swigarg0,_swigarg1)) 
1011 static PyObject 
*_wrap_wxImage_Create(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1012     PyObject 
* _resultobj
; 
1016     PyObject 
* _argo0 
= 0; 
1017     char *_kwnames
[] = { "self","width","height", NULL 
}; 
1020     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Create",_kwnames
,&_argo0
,&_arg1
,&_arg2
))  
1023         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1024         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1025             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p."); 
1030     wxPy_BEGIN_ALLOW_THREADS
; 
1031         wxImage_Create(_arg0
,_arg1
,_arg2
); 
1033     wxPy_END_ALLOW_THREADS
; 
1034 }    Py_INCREF(Py_None
); 
1035     _resultobj 
= Py_None
; 
1039 #define wxImage_Destroy(_swigobj)  (_swigobj->Destroy()) 
1040 static PyObject 
*_wrap_wxImage_Destroy(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1041     PyObject 
* _resultobj
; 
1043     PyObject 
* _argo0 
= 0; 
1044     char *_kwnames
[] = { "self", NULL 
}; 
1047     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Destroy",_kwnames
,&_argo0
))  
1050         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1051         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1052             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p."); 
1057     wxPy_BEGIN_ALLOW_THREADS
; 
1058         wxImage_Destroy(_arg0
); 
1060     wxPy_END_ALLOW_THREADS
; 
1061 }    Py_INCREF(Py_None
); 
1062     _resultobj 
= Py_None
; 
1066 #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1)  (_swigobj->Scale(_swigarg0,_swigarg1)) 
1067 static PyObject 
*_wrap_wxImage_Scale(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1068     PyObject 
* _resultobj
; 
1073     PyObject 
* _argo0 
= 0; 
1074     char *_kwnames
[] = { "self","width","height", NULL 
}; 
1078     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Scale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))  
1081         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1082         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1083             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p."); 
1088     wxPy_BEGIN_ALLOW_THREADS
; 
1089         _result 
= new wxImage (wxImage_Scale(_arg0
,_arg1
,_arg2
)); 
1091     wxPy_END_ALLOW_THREADS
; 
1092 }    SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p"); 
1093     _resultobj 
= Py_BuildValue("s",_ptemp
); 
1097 #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1)  (_swigobj->Rescale(_swigarg0,_swigarg1)) 
1098 static PyObject 
*_wrap_wxImage_Rescale(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1099     PyObject 
* _resultobj
; 
1104     PyObject 
* _argo0 
= 0; 
1105     char *_kwnames
[] = { "self","width","height", NULL 
}; 
1109     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Rescale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))  
1112         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1113         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1114             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p."); 
1119     wxPy_BEGIN_ALLOW_THREADS
; 
1120         wxImage 
& _result_ref 
= wxImage_Rescale(_arg0
,_arg1
,_arg2
); 
1121     _result 
= (wxImage 
*) &_result_ref
; 
1123     wxPy_END_ALLOW_THREADS
; 
1125         SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p"); 
1126         _resultobj 
= Py_BuildValue("s",_ptemp
); 
1129         _resultobj 
= Py_None
; 
1134 #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)  (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) 
1135 static PyObject 
*_wrap_wxImage_SetRGB(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1136     PyObject 
* _resultobj
; 
1140     unsigned char  _arg3
; 
1141     unsigned char  _arg4
; 
1142     unsigned char  _arg5
; 
1143     PyObject 
* _argo0 
= 0; 
1144     char *_kwnames
[] = { "self","x","y","r","g","b", NULL 
}; 
1147     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiibbb:wxImage_SetRGB",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))  
1150         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1151         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1152             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p."); 
1157     wxPy_BEGIN_ALLOW_THREADS
; 
1158         wxImage_SetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
); 
1160     wxPy_END_ALLOW_THREADS
; 
1161 }    Py_INCREF(Py_None
); 
1162     _resultobj 
= Py_None
; 
1166 #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1)  (_swigobj->GetRed(_swigarg0,_swigarg1)) 
1167 static PyObject 
*_wrap_wxImage_GetRed(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1168     PyObject 
* _resultobj
; 
1169     unsigned char  _result
; 
1173     PyObject 
* _argo0 
= 0; 
1174     char *_kwnames
[] = { "self","x","y", NULL 
}; 
1177     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetRed",_kwnames
,&_argo0
,&_arg1
,&_arg2
))  
1180         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1181         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1182             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p."); 
1187     wxPy_BEGIN_ALLOW_THREADS
; 
1188         _result 
= (unsigned char )wxImage_GetRed(_arg0
,_arg1
,_arg2
); 
1190     wxPy_END_ALLOW_THREADS
; 
1191 }    _resultobj 
= Py_BuildValue("b",_result
); 
1195 #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1)  (_swigobj->GetGreen(_swigarg0,_swigarg1)) 
1196 static PyObject 
*_wrap_wxImage_GetGreen(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1197     PyObject 
* _resultobj
; 
1198     unsigned char  _result
; 
1202     PyObject 
* _argo0 
= 0; 
1203     char *_kwnames
[] = { "self","x","y", NULL 
}; 
1206     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetGreen",_kwnames
,&_argo0
,&_arg1
,&_arg2
))  
1209         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1210         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1211             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p."); 
1216     wxPy_BEGIN_ALLOW_THREADS
; 
1217         _result 
= (unsigned char )wxImage_GetGreen(_arg0
,_arg1
,_arg2
); 
1219     wxPy_END_ALLOW_THREADS
; 
1220 }    _resultobj 
= Py_BuildValue("b",_result
); 
1224 #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1)  (_swigobj->GetBlue(_swigarg0,_swigarg1)) 
1225 static PyObject 
*_wrap_wxImage_GetBlue(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1226     PyObject 
* _resultobj
; 
1227     unsigned char  _result
; 
1231     PyObject 
* _argo0 
= 0; 
1232     char *_kwnames
[] = { "self","x","y", NULL 
}; 
1235     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetBlue",_kwnames
,&_argo0
,&_arg1
,&_arg2
))  
1238         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1239         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1240             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p."); 
1245     wxPy_BEGIN_ALLOW_THREADS
; 
1246         _result 
= (unsigned char )wxImage_GetBlue(_arg0
,_arg1
,_arg2
); 
1248     wxPy_END_ALLOW_THREADS
; 
1249 }    _resultobj 
= Py_BuildValue("b",_result
); 
1253 static PyObject 
*_wrap_wxImage_CanRead(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1254     PyObject 
* _resultobj
; 
1257     PyObject 
* _obj0 
= 0; 
1258     char *_kwnames
[] = { "name", NULL 
}; 
1261     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_CanRead",_kwnames
,&_obj0
))  
1264 #if PYTHON_API_VERSION >= 1009 
1265     char* tmpPtr
; int tmpSize
; 
1266     if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) { 
1267         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1270     if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1) 
1272     _arg0 
= new wxString(tmpPtr
, tmpSize
); 
1274     if (!PyString_Check(_obj0
)) { 
1275         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1278     _arg0 
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
)); 
1282     wxPy_BEGIN_ALLOW_THREADS
; 
1283         _result 
= (bool )wxImage::CanRead(*_arg0
); 
1285     wxPy_END_ALLOW_THREADS
; 
1286 }    _resultobj 
= Py_BuildValue("i",_result
); 
1294 #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1)  (_swigobj->LoadFile(_swigarg0,_swigarg1)) 
1295 static PyObject 
*_wrap_wxImage_LoadFile(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1296     PyObject 
* _resultobj
; 
1300     long  _arg2 
= (long ) wxBITMAP_TYPE_ANY
; 
1301     PyObject 
* _argo0 
= 0; 
1302     PyObject 
* _obj1 
= 0; 
1303     char *_kwnames
[] = { "self","name","type", NULL 
}; 
1306     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|l:wxImage_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))  
1309         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1310         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1311             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p."); 
1316 #if PYTHON_API_VERSION >= 1009 
1317     char* tmpPtr
; int tmpSize
; 
1318     if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) { 
1319         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1322     if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1) 
1324     _arg1 
= new wxString(tmpPtr
, tmpSize
); 
1326     if (!PyString_Check(_obj1
)) { 
1327         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1330     _arg1 
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
)); 
1334     wxPy_BEGIN_ALLOW_THREADS
; 
1335         _result 
= (bool )wxImage_LoadFile(_arg0
,*_arg1
,_arg2
); 
1337     wxPy_END_ALLOW_THREADS
; 
1338 }    _resultobj 
= Py_BuildValue("i",_result
); 
1346 #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1)  (_swigobj->LoadFile(_swigarg0,_swigarg1)) 
1347 static PyObject 
*_wrap_wxImage_LoadMimeFile(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1348     PyObject 
* _resultobj
; 
1353     PyObject 
* _argo0 
= 0; 
1354     PyObject 
* _obj1 
= 0; 
1355     PyObject 
* _obj2 
= 0; 
1356     char *_kwnames
[] = { "self","name","mimetype", NULL 
}; 
1359     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_LoadMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))  
1362         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1363         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1364             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p."); 
1369 #if PYTHON_API_VERSION >= 1009 
1370     char* tmpPtr
; int tmpSize
; 
1371     if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) { 
1372         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1375     if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1) 
1377     _arg1 
= new wxString(tmpPtr
, tmpSize
); 
1379     if (!PyString_Check(_obj1
)) { 
1380         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1383     _arg1 
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
)); 
1387 #if PYTHON_API_VERSION >= 1009 
1388     char* tmpPtr
; int tmpSize
; 
1389     if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) { 
1390         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1393     if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1) 
1395     _arg2 
= new wxString(tmpPtr
, tmpSize
); 
1397     if (!PyString_Check(_obj2
)) { 
1398         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1401     _arg2 
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
)); 
1405     wxPy_BEGIN_ALLOW_THREADS
; 
1406         _result 
= (bool )wxImage_LoadMimeFile(_arg0
,*_arg1
,*_arg2
); 
1408     wxPy_END_ALLOW_THREADS
; 
1409 }    _resultobj 
= Py_BuildValue("i",_result
); 
1421 #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1)  (_swigobj->SaveFile(_swigarg0,_swigarg1)) 
1422 static PyObject 
*_wrap_wxImage_SaveFile(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1423     PyObject 
* _resultobj
; 
1428     PyObject 
* _argo0 
= 0; 
1429     PyObject 
* _obj1 
= 0; 
1430     char *_kwnames
[] = { "self","name","type", NULL 
}; 
1433     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))  
1436         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1437         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1438             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p."); 
1443 #if PYTHON_API_VERSION >= 1009 
1444     char* tmpPtr
; int tmpSize
; 
1445     if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) { 
1446         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1449     if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1) 
1451     _arg1 
= new wxString(tmpPtr
, tmpSize
); 
1453     if (!PyString_Check(_obj1
)) { 
1454         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1457     _arg1 
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
)); 
1461     wxPy_BEGIN_ALLOW_THREADS
; 
1462         _result 
= (bool )wxImage_SaveFile(_arg0
,*_arg1
,_arg2
); 
1464     wxPy_END_ALLOW_THREADS
; 
1465 }    _resultobj 
= Py_BuildValue("i",_result
); 
1473 #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1)  (_swigobj->SaveFile(_swigarg0,_swigarg1)) 
1474 static PyObject 
*_wrap_wxImage_SaveMimeFile(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1475     PyObject 
* _resultobj
; 
1480     PyObject 
* _argo0 
= 0; 
1481     PyObject 
* _obj1 
= 0; 
1482     PyObject 
* _obj2 
= 0; 
1483     char *_kwnames
[] = { "self","name","mimetype", NULL 
}; 
1486     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SaveMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))  
1489         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1490         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1491             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p."); 
1496 #if PYTHON_API_VERSION >= 1009 
1497     char* tmpPtr
; int tmpSize
; 
1498     if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) { 
1499         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1502     if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1) 
1504     _arg1 
= new wxString(tmpPtr
, tmpSize
); 
1506     if (!PyString_Check(_obj1
)) { 
1507         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1510     _arg1 
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
)); 
1514 #if PYTHON_API_VERSION >= 1009 
1515     char* tmpPtr
; int tmpSize
; 
1516     if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) { 
1517         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1520     if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1) 
1522     _arg2 
= new wxString(tmpPtr
, tmpSize
); 
1524     if (!PyString_Check(_obj2
)) { 
1525         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
1528     _arg2 
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
)); 
1532     wxPy_BEGIN_ALLOW_THREADS
; 
1533         _result 
= (bool )wxImage_SaveMimeFile(_arg0
,*_arg1
,*_arg2
); 
1535     wxPy_END_ALLOW_THREADS
; 
1536 }    _resultobj 
= Py_BuildValue("i",_result
); 
1548 #define wxImage_Ok(_swigobj)  (_swigobj->Ok()) 
1549 static PyObject 
*_wrap_wxImage_Ok(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1550     PyObject 
* _resultobj
; 
1553     PyObject 
* _argo0 
= 0; 
1554     char *_kwnames
[] = { "self", NULL 
}; 
1557     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Ok",_kwnames
,&_argo0
))  
1560         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1561         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1562             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p."); 
1567     wxPy_BEGIN_ALLOW_THREADS
; 
1568         _result 
= (bool )wxImage_Ok(_arg0
); 
1570     wxPy_END_ALLOW_THREADS
; 
1571 }    _resultobj 
= Py_BuildValue("i",_result
); 
1575 #define wxImage_GetWidth(_swigobj)  (_swigobj->GetWidth()) 
1576 static PyObject 
*_wrap_wxImage_GetWidth(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1577     PyObject 
* _resultobj
; 
1580     PyObject 
* _argo0 
= 0; 
1581     char *_kwnames
[] = { "self", NULL 
}; 
1584     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetWidth",_kwnames
,&_argo0
))  
1587         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1588         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1589             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p."); 
1594     wxPy_BEGIN_ALLOW_THREADS
; 
1595         _result 
= (int )wxImage_GetWidth(_arg0
); 
1597     wxPy_END_ALLOW_THREADS
; 
1598 }    _resultobj 
= Py_BuildValue("i",_result
); 
1602 #define wxImage_GetHeight(_swigobj)  (_swigobj->GetHeight()) 
1603 static PyObject 
*_wrap_wxImage_GetHeight(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1604     PyObject 
* _resultobj
; 
1607     PyObject 
* _argo0 
= 0; 
1608     char *_kwnames
[] = { "self", NULL 
}; 
1611     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetHeight",_kwnames
,&_argo0
))  
1614         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1615         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1616             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p."); 
1621     wxPy_BEGIN_ALLOW_THREADS
; 
1622         _result 
= (int )wxImage_GetHeight(_arg0
); 
1624     wxPy_END_ALLOW_THREADS
; 
1625 }    _resultobj 
= Py_BuildValue("i",_result
); 
1629 #define wxImage_GetSubImage(_swigobj,_swigarg0)  (_swigobj->GetSubImage(_swigarg0)) 
1630 static PyObject 
*_wrap_wxImage_GetSubImage(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1631     PyObject 
* _resultobj
; 
1635     PyObject 
* _argo0 
= 0; 
1637     PyObject 
* _obj1 
= 0; 
1638     char *_kwnames
[] = { "self","rect", NULL 
}; 
1642     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetSubImage",_kwnames
,&_argo0
,&_obj1
))  
1645         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1646         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1647             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetSubImage. Expected _wxImage_p."); 
1653     if (! wxRect_helper(_obj1
, &_arg1
)) 
1657     wxPy_BEGIN_ALLOW_THREADS
; 
1658         _result 
= new wxImage (wxImage_GetSubImage(_arg0
,*_arg1
)); 
1660     wxPy_END_ALLOW_THREADS
; 
1661 }    SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p"); 
1662     _resultobj 
= Py_BuildValue("s",_ptemp
); 
1666 #define wxImage_Copy(_swigobj)  (_swigobj->Copy()) 
1667 static PyObject 
*_wrap_wxImage_Copy(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1668     PyObject 
* _resultobj
; 
1671     PyObject 
* _argo0 
= 0; 
1672     char *_kwnames
[] = { "self", NULL 
}; 
1676     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Copy",_kwnames
,&_argo0
))  
1679         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1680         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1681             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Copy. Expected _wxImage_p."); 
1686     wxPy_BEGIN_ALLOW_THREADS
; 
1687         _result 
= new wxImage (wxImage_Copy(_arg0
)); 
1689     wxPy_END_ALLOW_THREADS
; 
1690 }    SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p"); 
1691     _resultobj 
= Py_BuildValue("s",_ptemp
); 
1695 #define wxImage_Paste(_swigobj,_swigarg0,_swigarg1,_swigarg2)  (_swigobj->Paste(_swigarg0,_swigarg1,_swigarg2)) 
1696 static PyObject 
*_wrap_wxImage_Paste(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1697     PyObject 
* _resultobj
; 
1702     PyObject 
* _argo0 
= 0; 
1703     PyObject 
* _argo1 
= 0; 
1704     char *_kwnames
[] = { "self","image","x","y", NULL 
}; 
1707     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxImage_Paste",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))  
1710         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1711         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1712             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Paste. Expected _wxImage_p."); 
1717         if (_argo1 
== Py_None
) { _arg1 
= NULL
; } 
1718         else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) { 
1719             PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImage_Paste. Expected _wxImage_p."); 
1724     wxPy_BEGIN_ALLOW_THREADS
; 
1725         wxImage_Paste(_arg0
,*_arg1
,_arg2
,_arg3
); 
1727     wxPy_END_ALLOW_THREADS
; 
1728 }    Py_INCREF(Py_None
); 
1729     _resultobj 
= Py_None
; 
1733 static PyObject 
* wxImage_GetData(wxImage 
*self
) { 
1734             unsigned char* data 
= self
->GetData(); 
1735             int len 
= self
->GetWidth() * self
->GetHeight() * 3; 
1736             return PyString_FromStringAndSize((char*)data
, len
); 
1738 static PyObject 
*_wrap_wxImage_GetData(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1739     PyObject 
* _resultobj
; 
1742     PyObject 
* _argo0 
= 0; 
1743     char *_kwnames
[] = { "self", NULL 
}; 
1746     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetData",_kwnames
,&_argo0
))  
1749         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1750         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1751             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p."); 
1756     wxPy_BEGIN_ALLOW_THREADS
; 
1757         _result 
= (PyObject 
*)wxImage_GetData(_arg0
); 
1759     wxPy_END_ALLOW_THREADS
; 
1761   _resultobj 
= _result
; 
1766 static void  wxImage_SetData(wxImage 
*self
,PyObject 
* data
) { 
1767             unsigned char* dataPtr
; 
1769             if (! PyString_Check(data
)) { 
1770                 PyErr_SetString(PyExc_TypeError
, "Expected string object"); 
1774             size_t len 
= self
->GetWidth() * self
->GetHeight() * 3; 
1775             dataPtr 
= (unsigned char*) malloc(len
); 
1776             memcpy(dataPtr
, PyString_AsString(data
), len
); 
1777             self
->SetData(dataPtr
); 
1779 static PyObject 
*_wrap_wxImage_SetData(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1780     PyObject 
* _resultobj
; 
1783     PyObject 
* _argo0 
= 0; 
1784     PyObject 
* _obj1 
= 0; 
1785     char *_kwnames
[] = { "self","data", NULL 
}; 
1788     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetData",_kwnames
,&_argo0
,&_obj1
))  
1791         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1792         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1793             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p."); 
1801     wxPy_BEGIN_ALLOW_THREADS
; 
1802         wxImage_SetData(_arg0
,_arg1
); 
1804     wxPy_END_ALLOW_THREADS
; 
1805 }    Py_INCREF(Py_None
); 
1806     _resultobj 
= Py_None
; 
1810 #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2)  (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2)) 
1811 static PyObject 
*_wrap_wxImage_SetMaskColour(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1812     PyObject 
* _resultobj
; 
1814     unsigned char  _arg1
; 
1815     unsigned char  _arg2
; 
1816     unsigned char  _arg3
; 
1817     PyObject 
* _argo0 
= 0; 
1818     char *_kwnames
[] = { "self","r","g","b", NULL 
}; 
1821     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_SetMaskColour",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))  
1824         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1825         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1826             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p."); 
1831     wxPy_BEGIN_ALLOW_THREADS
; 
1832         wxImage_SetMaskColour(_arg0
,_arg1
,_arg2
,_arg3
); 
1834     wxPy_END_ALLOW_THREADS
; 
1835 }    Py_INCREF(Py_None
); 
1836     _resultobj 
= Py_None
; 
1840 #define wxImage_GetMaskRed(_swigobj)  (_swigobj->GetMaskRed()) 
1841 static PyObject 
*_wrap_wxImage_GetMaskRed(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1842     PyObject 
* _resultobj
; 
1843     unsigned char  _result
; 
1845     PyObject 
* _argo0 
= 0; 
1846     char *_kwnames
[] = { "self", NULL 
}; 
1849     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskRed",_kwnames
,&_argo0
))  
1852         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1853         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1854             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p."); 
1859     wxPy_BEGIN_ALLOW_THREADS
; 
1860         _result 
= (unsigned char )wxImage_GetMaskRed(_arg0
); 
1862     wxPy_END_ALLOW_THREADS
; 
1863 }    _resultobj 
= Py_BuildValue("b",_result
); 
1867 #define wxImage_GetMaskGreen(_swigobj)  (_swigobj->GetMaskGreen()) 
1868 static PyObject 
*_wrap_wxImage_GetMaskGreen(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1869     PyObject 
* _resultobj
; 
1870     unsigned char  _result
; 
1872     PyObject 
* _argo0 
= 0; 
1873     char *_kwnames
[] = { "self", NULL 
}; 
1876     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskGreen",_kwnames
,&_argo0
))  
1879         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1880         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1881             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p."); 
1886     wxPy_BEGIN_ALLOW_THREADS
; 
1887         _result 
= (unsigned char )wxImage_GetMaskGreen(_arg0
); 
1889     wxPy_END_ALLOW_THREADS
; 
1890 }    _resultobj 
= Py_BuildValue("b",_result
); 
1894 #define wxImage_GetMaskBlue(_swigobj)  (_swigobj->GetMaskBlue()) 
1895 static PyObject 
*_wrap_wxImage_GetMaskBlue(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1896     PyObject 
* _resultobj
; 
1897     unsigned char  _result
; 
1899     PyObject 
* _argo0 
= 0; 
1900     char *_kwnames
[] = { "self", NULL 
}; 
1903     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskBlue",_kwnames
,&_argo0
))  
1906         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1907         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1908             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p."); 
1913     wxPy_BEGIN_ALLOW_THREADS
; 
1914         _result 
= (unsigned char )wxImage_GetMaskBlue(_arg0
); 
1916     wxPy_END_ALLOW_THREADS
; 
1917 }    _resultobj 
= Py_BuildValue("b",_result
); 
1921 #define wxImage_SetMask(_swigobj,_swigarg0)  (_swigobj->SetMask(_swigarg0)) 
1922 static PyObject 
*_wrap_wxImage_SetMask(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1923     PyObject 
* _resultobj
; 
1925     bool  _arg1 
= (bool ) TRUE
; 
1926     PyObject 
* _argo0 
= 0; 
1927     int tempbool1 
= (int) TRUE
; 
1928     char *_kwnames
[] = { "self","mask", NULL 
}; 
1931     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_SetMask",_kwnames
,&_argo0
,&tempbool1
))  
1934         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1935         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1936             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p."); 
1940     _arg1 
= (bool ) tempbool1
; 
1942     wxPy_BEGIN_ALLOW_THREADS
; 
1943         wxImage_SetMask(_arg0
,_arg1
); 
1945     wxPy_END_ALLOW_THREADS
; 
1946 }    Py_INCREF(Py_None
); 
1947     _resultobj 
= Py_None
; 
1951 #define wxImage_HasMask(_swigobj)  (_swigobj->HasMask()) 
1952 static PyObject 
*_wrap_wxImage_HasMask(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1953     PyObject 
* _resultobj
; 
1956     PyObject 
* _argo0 
= 0; 
1957     char *_kwnames
[] = { "self", NULL 
}; 
1960     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_HasMask",_kwnames
,&_argo0
))  
1963         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
1964         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
1965             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p."); 
1970     wxPy_BEGIN_ALLOW_THREADS
; 
1971         _result 
= (bool )wxImage_HasMask(_arg0
); 
1973     wxPy_END_ALLOW_THREADS
; 
1974 }    _resultobj 
= Py_BuildValue("i",_result
); 
1978 #define wxImage_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3)  (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) 
1979 static PyObject 
*_wrap_wxImage_Rotate(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
1980     PyObject 
* _resultobj
; 
1985     bool  _arg3 
= (bool ) TRUE
; 
1986     wxPoint 
* _arg4 
= (wxPoint 
*) NULL
; 
1987     PyObject 
* _argo0 
= 0; 
1989     PyObject 
* _obj2 
= 0; 
1990     int tempbool3 
= (int) TRUE
; 
1992     PyObject 
* _obj4 
= 0; 
1993     char *_kwnames
[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL 
}; 
1997     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OdO|iO:wxImage_Rotate",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
,&_obj4
))  
2000         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
2001         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
2002             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rotate. Expected _wxImage_p."); 
2008     if (! wxPoint_helper(_obj2
, &_arg2
)) 
2011     _arg3 
= (bool ) tempbool3
; 
2015     if (! wxPoint_helper(_obj4
, &_arg4
)) 
2019     wxPy_BEGIN_ALLOW_THREADS
; 
2020         _result 
= new wxImage (wxImage_Rotate(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
)); 
2022     wxPy_END_ALLOW_THREADS
; 
2023 }    SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p"); 
2024     _resultobj 
= Py_BuildValue("s",_ptemp
); 
2028 #define wxImage_Rotate90(_swigobj,_swigarg0)  (_swigobj->Rotate90(_swigarg0)) 
2029 static PyObject 
*_wrap_wxImage_Rotate90(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
2030     PyObject 
* _resultobj
; 
2033     bool  _arg1 
= (bool ) TRUE
; 
2034     PyObject 
* _argo0 
= 0; 
2035     int tempbool1 
= (int) TRUE
; 
2036     char *_kwnames
[] = { "self","clockwise", NULL 
}; 
2040     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Rotate90",_kwnames
,&_argo0
,&tempbool1
))  
2043         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
2044         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
2045             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rotate90. Expected _wxImage_p."); 
2049     _arg1 
= (bool ) tempbool1
; 
2051     wxPy_BEGIN_ALLOW_THREADS
; 
2052         _result 
= new wxImage (wxImage_Rotate90(_arg0
,_arg1
)); 
2054     wxPy_END_ALLOW_THREADS
; 
2055 }    SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p"); 
2056     _resultobj 
= Py_BuildValue("s",_ptemp
); 
2060 #define wxImage_Mirror(_swigobj,_swigarg0)  (_swigobj->Mirror(_swigarg0)) 
2061 static PyObject 
*_wrap_wxImage_Mirror(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
2062     PyObject 
* _resultobj
; 
2065     bool  _arg1 
= (bool ) TRUE
; 
2066     PyObject 
* _argo0 
= 0; 
2067     int tempbool1 
= (int) TRUE
; 
2068     char *_kwnames
[] = { "self","horizontally", NULL 
}; 
2072     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Mirror",_kwnames
,&_argo0
,&tempbool1
))  
2075         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
2076         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
2077             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Mirror. Expected _wxImage_p."); 
2081     _arg1 
= (bool ) tempbool1
; 
2083     wxPy_BEGIN_ALLOW_THREADS
; 
2084         _result 
= new wxImage (wxImage_Mirror(_arg0
,_arg1
)); 
2086     wxPy_END_ALLOW_THREADS
; 
2087 }    SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p"); 
2088     _resultobj 
= Py_BuildValue("s",_ptemp
); 
2092 #define wxImage_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)  (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) 
2093 static PyObject 
*_wrap_wxImage_Replace(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
2094     PyObject 
* _resultobj
; 
2096     unsigned char  _arg1
; 
2097     unsigned char  _arg2
; 
2098     unsigned char  _arg3
; 
2099     unsigned char  _arg4
; 
2100     unsigned char  _arg5
; 
2101     unsigned char  _arg6
; 
2102     PyObject 
* _argo0 
= 0; 
2103     char *_kwnames
[] = { "self","r1","g1","b1","r2","g2","b2", NULL 
}; 
2106     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbbbbb:wxImage_Replace",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))  
2109         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
2110         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
2111             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Replace. Expected _wxImage_p."); 
2116     wxPy_BEGIN_ALLOW_THREADS
; 
2117         wxImage_Replace(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
); 
2119     wxPy_END_ALLOW_THREADS
; 
2120 }    Py_INCREF(Py_None
); 
2121     _resultobj 
= Py_None
; 
2125 #define wxImage_CountColours(_swigobj,_swigarg0)  (_swigobj->CountColours(_swigarg0)) 
2126 static PyObject 
*_wrap_wxImage_CountColours(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
2127     PyObject 
* _resultobj
; 
2128     unsigned long  _result
; 
2130     unsigned long  _arg1 
= (unsigned long ) (unsigned long)-1; 
2131     PyObject 
* _argo0 
= 0; 
2132     char *_kwnames
[] = { "self","stopafter", NULL 
}; 
2135     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:wxImage_CountColours",_kwnames
,&_argo0
,&_arg1
))  
2138         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
2139         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) { 
2140             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_CountColours. Expected _wxImage_p."); 
2145     wxPy_BEGIN_ALLOW_THREADS
; 
2146         _result 
= (unsigned long )wxImage_CountColours(_arg0
,_arg1
); 
2148     wxPy_END_ALLOW_THREADS
; 
2149 }    _resultobj 
= Py_BuildValue("l",_result
); 
2153 static PyObject 
*_wrap_wxImage_AddHandler(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
2154     PyObject 
* _resultobj
; 
2155     wxImageHandler 
* _arg0
; 
2156     PyObject 
* _argo0 
= 0; 
2157     char *_kwnames
[] = { "handler", NULL 
}; 
2160     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_AddHandler",_kwnames
,&_argo0
))  
2163         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
2164         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) { 
2165             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p."); 
2170     wxPy_BEGIN_ALLOW_THREADS
; 
2171         wxImage::AddHandler(_arg0
); 
2173     wxPy_END_ALLOW_THREADS
; 
2174 }    Py_INCREF(Py_None
); 
2175     _resultobj 
= Py_None
; 
2179 static PyObject 
*_wrap_wxImage_InsertHandler(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
2180     PyObject 
* _resultobj
; 
2181     wxImageHandler 
* _arg0
; 
2182     PyObject 
* _argo0 
= 0; 
2183     char *_kwnames
[] = { "handler", NULL 
}; 
2186     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_InsertHandler",_kwnames
,&_argo0
))  
2189         if (_argo0 
== Py_None
) { _arg0 
= NULL
; } 
2190         else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) { 
2191             PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_InsertHandler. Expected _wxImageHandler_p."); 
2196     wxPy_BEGIN_ALLOW_THREADS
; 
2197         wxImage::InsertHandler(_arg0
); 
2199     wxPy_END_ALLOW_THREADS
; 
2200 }    Py_INCREF(Py_None
); 
2201     _resultobj 
= Py_None
; 
2205 static PyObject 
*_wrap_wxImage_RemoveHandler(PyObject 
*self
, PyObject 
*args
, PyObject 
*kwargs
) { 
2206     PyObject 
* _resultobj
; 
2209     PyObject 
* _obj0 
= 0; 
2210     char *_kwnames
[] = { "name", NULL 
}; 
2213     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_RemoveHandler",_kwnames
,&_obj0
))  
2216 #if PYTHON_API_VERSION >= 1009 
2217     char* tmpPtr
; int tmpSize
; 
2218     if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) { 
2219         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
2222     if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1) 
2224     _arg0 
= new wxString(tmpPtr
, tmpSize
); 
2226     if (!PyString_Check(_obj0
)) { 
2227         PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
); 
2230     _arg0 
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
)); 
2234     wxPy_BEGIN_ALLOW_THREADS
; 
2235         _result 
= (bool )wxImage::RemoveHandler(*_arg0
); 
2237     wxPy_END_ALLOW_THREADS
; 
2238 }    _resultobj 
= Py_BuildValue("i",_result
); 
2246 static PyMethodDef imagecMethods
[] = { 
2247          { "wxImage_RemoveHandler", (PyCFunction
) _wrap_wxImage_RemoveHandler
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2248          { "wxImage_InsertHandler", (PyCFunction
) _wrap_wxImage_InsertHandler
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2249          { "wxImage_AddHandler", (PyCFunction
) _wrap_wxImage_AddHandler
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2250          { "wxImage_CountColours", (PyCFunction
) _wrap_wxImage_CountColours
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2251          { "wxImage_Replace", (PyCFunction
) _wrap_wxImage_Replace
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2252          { "wxImage_Mirror", (PyCFunction
) _wrap_wxImage_Mirror
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2253          { "wxImage_Rotate90", (PyCFunction
) _wrap_wxImage_Rotate90
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2254          { "wxImage_Rotate", (PyCFunction
) _wrap_wxImage_Rotate
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2255          { "wxImage_HasMask", (PyCFunction
) _wrap_wxImage_HasMask
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2256          { "wxImage_SetMask", (PyCFunction
) _wrap_wxImage_SetMask
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2257          { "wxImage_GetMaskBlue", (PyCFunction
) _wrap_wxImage_GetMaskBlue
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2258          { "wxImage_GetMaskGreen", (PyCFunction
) _wrap_wxImage_GetMaskGreen
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2259          { "wxImage_GetMaskRed", (PyCFunction
) _wrap_wxImage_GetMaskRed
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2260          { "wxImage_SetMaskColour", (PyCFunction
) _wrap_wxImage_SetMaskColour
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2261          { "wxImage_SetData", (PyCFunction
) _wrap_wxImage_SetData
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2262          { "wxImage_GetData", (PyCFunction
) _wrap_wxImage_GetData
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2263          { "wxImage_Paste", (PyCFunction
) _wrap_wxImage_Paste
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2264          { "wxImage_Copy", (PyCFunction
) _wrap_wxImage_Copy
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2265          { "wxImage_GetSubImage", (PyCFunction
) _wrap_wxImage_GetSubImage
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2266          { "wxImage_GetHeight", (PyCFunction
) _wrap_wxImage_GetHeight
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2267          { "wxImage_GetWidth", (PyCFunction
) _wrap_wxImage_GetWidth
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2268          { "wxImage_Ok", (PyCFunction
) _wrap_wxImage_Ok
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2269          { "wxImage_SaveMimeFile", (PyCFunction
) _wrap_wxImage_SaveMimeFile
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2270          { "wxImage_SaveFile", (PyCFunction
) _wrap_wxImage_SaveFile
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2271          { "wxImage_LoadMimeFile", (PyCFunction
) _wrap_wxImage_LoadMimeFile
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2272          { "wxImage_LoadFile", (PyCFunction
) _wrap_wxImage_LoadFile
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2273          { "wxImage_CanRead", (PyCFunction
) _wrap_wxImage_CanRead
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2274          { "wxImage_GetBlue", (PyCFunction
) _wrap_wxImage_GetBlue
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2275          { "wxImage_GetGreen", (PyCFunction
) _wrap_wxImage_GetGreen
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2276          { "wxImage_GetRed", (PyCFunction
) _wrap_wxImage_GetRed
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2277          { "wxImage_SetRGB", (PyCFunction
) _wrap_wxImage_SetRGB
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2278          { "wxImage_Rescale", (PyCFunction
) _wrap_wxImage_Rescale
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2279          { "wxImage_Scale", (PyCFunction
) _wrap_wxImage_Scale
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2280          { "wxImage_Destroy", (PyCFunction
) _wrap_wxImage_Destroy
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2281          { "wxImage_Create", (PyCFunction
) _wrap_wxImage_Create
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2282          { "wxImage_ConvertToMonoBitmap", (PyCFunction
) _wrap_wxImage_ConvertToMonoBitmap
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2283          { "wxImage_ConvertToBitmap", (PyCFunction
) _wrap_wxImage_ConvertToBitmap
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2284          { "delete_wxImage", (PyCFunction
) _wrap_delete_wxImage
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2285          { "new_wxImage", (PyCFunction
) _wrap_new_wxImage
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2286          { "new_wxTIFFHandler", (PyCFunction
) _wrap_new_wxTIFFHandler
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2287          { "new_wxPCXHandler", (PyCFunction
) _wrap_new_wxPCXHandler
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2288          { "new_wxPNMHandler", (PyCFunction
) _wrap_new_wxPNMHandler
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2289          { "new_wxGIFHandler", (PyCFunction
) _wrap_new_wxGIFHandler
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2290          { "new_wxBMPHandler", (PyCFunction
) _wrap_new_wxBMPHandler
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2291          { "new_wxJPEGHandler", (PyCFunction
) _wrap_new_wxJPEGHandler
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2292          { "new_wxPNGHandler", (PyCFunction
) _wrap_new_wxPNGHandler
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2293          { "wxImageHandler_SetMimeType", (PyCFunction
) _wrap_wxImageHandler_SetMimeType
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2294          { "wxImageHandler_SetType", (PyCFunction
) _wrap_wxImageHandler_SetType
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2295          { "wxImageHandler_SetExtension", (PyCFunction
) _wrap_wxImageHandler_SetExtension
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2296          { "wxImageHandler_SetName", (PyCFunction
) _wrap_wxImageHandler_SetName
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2297          { "wxImageHandler_GetMimeType", (PyCFunction
) _wrap_wxImageHandler_GetMimeType
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2298          { "wxImageHandler_GetType", (PyCFunction
) _wrap_wxImageHandler_GetType
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2299          { "wxImageHandler_GetExtension", (PyCFunction
) _wrap_wxImageHandler_GetExtension
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2300          { "wxImageHandler_GetName", (PyCFunction
) _wrap_wxImageHandler_GetName
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2301          { "wxBitmapFromImage", (PyCFunction
) _wrap_wxBitmapFromImage
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2302          { "wxInitAllImageHandlers", (PyCFunction
) _wrap_wxInitAllImageHandlers
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2303          { "wxImageFromBitmap", (PyCFunction
) _wrap_wxImageFromBitmap
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2304          { "wxImageFromMime", (PyCFunction
) _wrap_wxImageFromMime
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2305          { "wxEmptyImage", (PyCFunction
) _wrap_wxEmptyImage
, METH_VARARGS 
| METH_KEYWORDS 
}, 
2312  * This table is used by the pointer type-checker 
2314 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = { 
2315     { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, 
2316     { "_signed_long","_long",0}, 
2317     { "_class_wxJPEGHandler","_wxJPEGHandler",0}, 
2318     { "_wxBMPHandler","_class_wxBMPHandler",0}, 
2319     { "_wxImage","_class_wxImage",0}, 
2320     { "_wxPrintQuality","_wxCoord",0}, 
2321     { "_wxPrintQuality","_int",0}, 
2322     { "_wxPrintQuality","_signed_int",0}, 
2323     { "_wxPrintQuality","_unsigned_int",0}, 
2324     { "_wxPrintQuality","_wxWindowID",0}, 
2325     { "_wxPrintQuality","_uint",0}, 
2326     { "_wxPrintQuality","_EBool",0}, 
2327     { "_wxPrintQuality","_size_t",0}, 
2328     { "_wxPrintQuality","_time_t",0}, 
2329     { "_class_wxRegionIterator","_wxRegionIterator",0}, 
2330     { "_wxGIFHandler","_class_wxGIFHandler",0}, 
2331     { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, 
2332     { "_wxCursor","_class_wxCursor",0}, 
2333     { "_wxImageHandler","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler
}, 
2334     { "_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler
}, 
2335     { "_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
}, 
2336     { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
}, 
2337     { "_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
}, 
2338     { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
}, 
2339     { "_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
}, 
2340     { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
}, 
2341     { "_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
}, 
2342     { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
}, 
2343     { "_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
}, 
2344     { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
}, 
2345     { "_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
}, 
2346     { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
}, 
2347     { "_wxImageHandler","_class_wxImageHandler",0}, 
2348     { "_wxMask","_class_wxMask",0}, 
2349     { "_wxPNGHandler","_class_wxPNGHandler",0}, 
2350     { "_wxPen","_class_wxPen",0}, 
2351     { "_byte","_unsigned_char",0}, 
2352     { "_wxColourDatabase","_class_wxColourDatabase",0}, 
2353     { "_long","_unsigned_long",0}, 
2354     { "_long","_signed_long",0}, 
2355     { "_wxImageList","_class_wxImageList",0}, 
2356     { "_class_wxTIFFHandler","_wxTIFFHandler",0}, 
2357     { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, 
2358     { "_wxDC","_class_wxDC",0}, 
2359     { "_class_wxBMPHandler","_wxBMPHandler",0}, 
2360     { "_size_t","_wxCoord",0}, 
2361     { "_size_t","_wxPrintQuality",0}, 
2362     { "_size_t","_time_t",0}, 
2363     { "_size_t","_unsigned_int",0}, 
2364     { "_size_t","_int",0}, 
2365     { "_size_t","_wxWindowID",0}, 
2366     { "_size_t","_uint",0}, 
2367     { "_class_wxRealPoint","_wxRealPoint",0}, 
2368     { "_wxPNMHandler","_class_wxPNMHandler",0}, 
2369     { "_class_wxGIFHandler","_wxGIFHandler",0}, 
2370     { "_class_wxPostScriptDC","_wxPostScriptDC",0}, 
2371     { "_class_wxMask","_wxMask",0}, 
2372     { "_class_wxPNGHandler","_wxPNGHandler",0}, 
2373     { "_wxColour","_class_wxColour",0}, 
2374     { "_wxBrush","_class_wxBrush",0}, 
2375     { "_uint","_wxCoord",0}, 
2376     { "_uint","_wxPrintQuality",0}, 
2377     { "_uint","_time_t",0}, 
2378     { "_uint","_size_t",0}, 
2379     { "_uint","_unsigned_int",0}, 
2380     { "_uint","_int",0}, 
2381     { "_uint","_wxWindowID",0}, 
2382     { "_wxChar","_char",0}, 
2383     { "_wxRect","_class_wxRect",0}, 
2384     { "_class_wxImage","_wxImage",0}, 
2385     { "_wxPoint","_class_wxPoint",0}, 
2386     { "_class_wxPNMHandler","_wxPNMHandler",0}, 
2387     { "_char","_wxChar",0}, 
2388     { "_wxBitmap","_class_wxBitmap",0}, 
2389     { "_wxPenList","_class_wxPenList",0}, 
2390     { "_wxWindowDC","_class_wxWindowDC",0}, 
2391     { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, 
2392     { "_class_wxColourDatabase","_wxColourDatabase",0}, 
2393     { "_EBool","_wxCoord",0}, 
2394     { "_EBool","_wxPrintQuality",0}, 
2395     { "_EBool","_signed_int",0}, 
2396     { "_EBool","_int",0}, 
2397     { "_EBool","_wxWindowID",0}, 
2398     { "_class_wxRegion","_wxRegion",0}, 
2399     { "_wxFont","_class_wxFont",0}, 
2400     { "_unsigned_long","_long",0}, 
2401     { "_class_wxRect","_wxRect",0}, 
2402     { "_class_wxDC","_wxDC",0}, 
2403     { "_class_wxBrushList","_wxBrushList",0}, 
2404     { "_class_wxPenList","_wxPenList",0}, 
2405     { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, 
2406     { "_signed_int","_wxCoord",0}, 
2407     { "_signed_int","_wxPrintQuality",0}, 
2408     { "_signed_int","_EBool",0}, 
2409     { "_signed_int","_wxWindowID",0}, 
2410     { "_signed_int","_int",0}, 
2411     { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, 
2412     { "_wxScreenDC","_class_wxScreenDC",0}, 
2413     { "_WXTYPE","_short",0}, 
2414     { "_WXTYPE","_signed_short",0}, 
2415     { "_WXTYPE","_unsigned_short",0}, 
2416     { "_class_wxBrush","_wxBrush",0}, 
2417     { "_unsigned_short","_WXTYPE",0}, 
2418     { "_unsigned_short","_short",0}, 
2419     { "_class_wxFont","_wxFont",0}, 
2420     { "_wxBusyInfo","_class_wxBusyInfo",0}, 
2421     { "_wxFontList","_class_wxFontList",0}, 
2422     { "_wxClientDC","_class_wxClientDC",0}, 
2423     { "_class_wxPoint","_wxPoint",0}, 
2424     { "_wxRealPoint","_class_wxRealPoint",0}, 
2425     { "_signed_short","_WXTYPE",0}, 
2426     { "_signed_short","_short",0}, 
2427     { "_wxMemoryDC","_class_wxMemoryDC",0}, 
2428     { "_wxPaintDC","_class_wxPaintDC",0}, 
2429     { "_class_wxWindowDC","_wxWindowDC",0}, 
2430     { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, 
2431     { "_class_wxCursor","_wxCursor",0}, 
2432     { "_wxPostScriptDC","_class_wxPostScriptDC",0}, 
2433     { "_class_wxImageHandler","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler
}, 
2434     { "_class_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler
}, 
2435     { "_class_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
}, 
2436     { "_class_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
}, 
2437     { "_class_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
}, 
2438     { "_class_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
}, 
2439     { "_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
}, 
2440     { "_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
}, 
2441     { "_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
}, 
2442     { "_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
}, 
2443     { "_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
}, 
2444     { "_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
}, 
2445     { "_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
}, 
2446     { "_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
}, 
2447     { "_class_wxImageHandler","_wxImageHandler",0}, 
2448     { "_unsigned_char","_byte",0}, 
2449     { "_unsigned_int","_wxCoord",0}, 
2450     { "_unsigned_int","_wxPrintQuality",0}, 
2451     { "_unsigned_int","_time_t",0}, 
2452     { "_unsigned_int","_size_t",0}, 
2453     { "_unsigned_int","_uint",0}, 
2454     { "_unsigned_int","_wxWindowID",0}, 
2455     { "_unsigned_int","_int",0}, 
2456     { "_wxIcon","_class_wxIcon",0}, 
2457     { "_class_wxPen","_wxPen",0}, 
2458     { "_short","_WXTYPE",0}, 
2459     { "_short","_unsigned_short",0}, 
2460     { "_short","_signed_short",0}, 
2461     { "_class_wxImageList","_wxImageList",0}, 
2462     { "_wxPCXHandler","_class_wxPCXHandler",0}, 
2463     { "_wxJPEGHandler","_class_wxJPEGHandler",0}, 
2464     { "_wxWindowID","_wxCoord",0}, 
2465     { "_wxWindowID","_wxPrintQuality",0}, 
2466     { "_wxWindowID","_time_t",0}, 
2467     { "_wxWindowID","_size_t",0}, 
2468     { "_wxWindowID","_EBool",0}, 
2469     { "_wxWindowID","_uint",0}, 
2470     { "_wxWindowID","_int",0}, 
2471     { "_wxWindowID","_signed_int",0}, 
2472     { "_wxWindowID","_unsigned_int",0}, 
2473     { "_int","_wxCoord",0}, 
2474     { "_int","_wxPrintQuality",0}, 
2475     { "_int","_time_t",0}, 
2476     { "_int","_size_t",0}, 
2477     { "_int","_EBool",0}, 
2478     { "_int","_uint",0}, 
2479     { "_int","_wxWindowID",0}, 
2480     { "_int","_unsigned_int",0}, 
2481     { "_int","_signed_int",0}, 
2482     { "_time_t","_wxCoord",0}, 
2483     { "_time_t","_wxPrintQuality",0}, 
2484     { "_time_t","_unsigned_int",0}, 
2485     { "_time_t","_int",0}, 
2486     { "_time_t","_wxWindowID",0}, 
2487     { "_time_t","_uint",0}, 
2488     { "_time_t","_size_t",0}, 
2489     { "_wxSize","_class_wxSize",0}, 
2490     { "_wxRegionIterator","_class_wxRegionIterator",0}, 
2491     { "_class_wxPaintDC","_wxPaintDC",0}, 
2492     { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, 
2493     { "_class_wxIcon","_wxIcon",0}, 
2494     { "_class_wxColour","_wxColour",0}, 
2495     { "_class_wxScreenDC","_wxScreenDC",0}, 
2496     { "_wxPalette","_class_wxPalette",0}, 
2497     { "_wxCoord","_int",0}, 
2498     { "_wxCoord","_signed_int",0}, 
2499     { "_wxCoord","_unsigned_int",0}, 
2500     { "_wxCoord","_wxWindowID",0}, 
2501     { "_wxCoord","_uint",0}, 
2502     { "_wxCoord","_EBool",0}, 
2503     { "_wxCoord","_size_t",0}, 
2504     { "_wxCoord","_time_t",0}, 
2505     { "_wxCoord","_wxPrintQuality",0}, 
2506     { "_wxRegion","_class_wxRegion",0}, 
2507     { "_class_wxPCXHandler","_wxPCXHandler",0}, 
2508     { "_wxTIFFHandler","_class_wxTIFFHandler",0}, 
2509     { "_class_wxBusyInfo","_wxBusyInfo",0}, 
2510     { "_class_wxFontList","_wxFontList",0}, 
2511     { "_class_wxClientDC","_wxClientDC",0}, 
2512     { "_wxBrushList","_class_wxBrushList",0}, 
2513     { "_class_wxSize","_wxSize",0}, 
2514     { "_class_wxBitmap","_wxBitmap",0}, 
2515     { "_class_wxMemoryDC","_wxMemoryDC",0}, 
2516     { "_class_wxPalette","_wxPalette",0}, 
2519 static PyObject 
*SWIG_globals
; 
2523 SWIGEXPORT(void) initimagec() { 
2525          SWIG_globals 
= SWIG_newvarlink(); 
2526          m 
= Py_InitModule("imagec", imagecMethods
); 
2527          d 
= PyModule_GetDict(m
); 
2528          PyDict_SetItemString(d
,"cvar", SWIG_globals
); 
2529          SWIG_addvarlink(SWIG_globals
,"wxNullImage",_wrap_wxNullImage_get
, _wrap_wxNullImage_set
); 
2532    for (i 
= 0; _swig_mapping
[i
].n1
; i
++) 
2533         SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);