4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 810)
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
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
47 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
48 extern PyObject
*SWIG_newvarlink(void);
52 #define SWIG_init initimagec
54 #define SWIG_name "imagec"
59 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
64 } else if (target
== Py_None
) {
68 if (!PyList_Check(target
)) {
70 target
= PyList_New(0);
71 PyList_Append(target
, o2
);
74 PyList_Append(target
,o
);
80 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
86 } else if (target
== Py_None
) {
90 if (!PyTuple_Check(target
)) {
92 target
= PyTuple_New(1);
93 PyTuple_SetItem(target
, 0, o2
);
96 PyTuple_SetItem(o3
, 0, o
);
99 target
= PySequence_Concat(o2
, o3
);
106 static char* wxStringErrorMsg
= "string type is required for parameter";
108 wxImage
* wxNullImage() {
112 wxImage
* wxEmptyImage(int width
, int height
) {
113 return new wxImage(width
, height
);
116 wxImage
* wxImageFromMime(const wxString
& name
, const wxString
& mimetype
) {
117 return new wxImage(name
, mimetype
);
120 wxImage
* wxImageFromBitmap(const wxBitmap
&bitmap
) {
121 return new wxImage(bitmap
);
124 void wxImage_AddHandler(wxImageHandler
*handler
) {
125 wxImage::AddHandler(handler
);
130 static PyObject
*_wrap_wxNullImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
131 PyObject
* _resultobj
;
133 char *_kwnames
[] = { NULL
};
137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxNullImage",_kwnames
))
140 wxPy_BEGIN_ALLOW_THREADS
;
141 _result
= (wxImage
*)wxNullImage();
143 wxPy_END_ALLOW_THREADS
;
145 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
146 _resultobj
= Py_BuildValue("s",_ptemp
);
149 _resultobj
= Py_None
;
154 static PyObject
*_wrap_wxEmptyImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
155 PyObject
* _resultobj
;
159 char *_kwnames
[] = { "width","height", NULL
};
163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii:wxEmptyImage",_kwnames
,&_arg0
,&_arg1
))
166 wxPy_BEGIN_ALLOW_THREADS
;
167 _result
= (wxImage
*)wxEmptyImage(_arg0
,_arg1
);
169 wxPy_END_ALLOW_THREADS
;
171 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
172 _resultobj
= Py_BuildValue("s",_ptemp
);
175 _resultobj
= Py_None
;
180 static PyObject
*_wrap_wxImageFromMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
181 PyObject
* _resultobj
;
185 PyObject
* _obj0
= 0;
186 PyObject
* _obj1
= 0;
187 char *_kwnames
[] = { "name","mimetype", NULL
};
191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageFromMime",_kwnames
,&_obj0
,&_obj1
))
194 if (!PyString_Check(_obj0
)) {
195 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
198 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
201 if (!PyString_Check(_obj1
)) {
202 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
205 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
208 wxPy_BEGIN_ALLOW_THREADS
;
209 _result
= (wxImage
*)wxImageFromMime(*_arg0
,*_arg1
);
211 wxPy_END_ALLOW_THREADS
;
213 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
214 _resultobj
= Py_BuildValue("s",_ptemp
);
217 _resultobj
= Py_None
;
230 static PyObject
*_wrap_wxImageFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
231 PyObject
* _resultobj
;
234 PyObject
* _argo0
= 0;
235 char *_kwnames
[] = { "bitmap", NULL
};
239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageFromBitmap",_kwnames
,&_argo0
))
242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
249 wxPy_BEGIN_ALLOW_THREADS
;
250 _result
= (wxImage
*)wxImageFromBitmap(*_arg0
);
252 wxPy_END_ALLOW_THREADS
;
254 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
255 _resultobj
= Py_BuildValue("s",_ptemp
);
258 _resultobj
= Py_None
;
263 static PyObject
*_wrap_wxImage_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
264 PyObject
* _resultobj
;
265 wxImageHandler
* _arg0
;
266 PyObject
* _argo0
= 0;
267 char *_kwnames
[] = { "handler", NULL
};
270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_AddHandler",_kwnames
,&_argo0
))
273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
280 wxPy_BEGIN_ALLOW_THREADS
;
281 wxImage_AddHandler(_arg0
);
283 wxPy_END_ALLOW_THREADS
;
284 } Py_INCREF(Py_None
);
285 _resultobj
= Py_None
;
289 #define new_wxImageHandler() (new wxImageHandler())
290 static PyObject
*_wrap_new_wxImageHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
291 PyObject
* _resultobj
;
292 wxImageHandler
* _result
;
293 char *_kwnames
[] = { NULL
};
297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxImageHandler",_kwnames
))
300 wxPy_BEGIN_ALLOW_THREADS
;
301 _result
= (wxImageHandler
*)new_wxImageHandler();
303 wxPy_END_ALLOW_THREADS
;
305 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageHandler_p");
306 _resultobj
= Py_BuildValue("s",_ptemp
);
309 _resultobj
= Py_None
;
314 #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
315 static PyObject
*_wrap_wxImageHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
316 PyObject
* _resultobj
;
318 wxImageHandler
* _arg0
;
319 PyObject
* _argo0
= 0;
320 char *_kwnames
[] = { "self", NULL
};
323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetName",_kwnames
,&_argo0
))
326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
333 wxPy_BEGIN_ALLOW_THREADS
;
334 _result
= new wxString (wxImageHandler_GetName(_arg0
));
336 wxPy_END_ALLOW_THREADS
;
338 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
346 #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
347 static PyObject
*_wrap_wxImageHandler_GetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
348 PyObject
* _resultobj
;
350 wxImageHandler
* _arg0
;
351 PyObject
* _argo0
= 0;
352 char *_kwnames
[] = { "self", NULL
};
355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetExtension",_kwnames
,&_argo0
))
358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
365 wxPy_BEGIN_ALLOW_THREADS
;
366 _result
= new wxString (wxImageHandler_GetExtension(_arg0
));
368 wxPy_END_ALLOW_THREADS
;
370 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
378 #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
379 static PyObject
*_wrap_wxImageHandler_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
380 PyObject
* _resultobj
;
382 wxImageHandler
* _arg0
;
383 PyObject
* _argo0
= 0;
384 char *_kwnames
[] = { "self", NULL
};
387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetType",_kwnames
,&_argo0
))
390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
397 wxPy_BEGIN_ALLOW_THREADS
;
398 _result
= (long )wxImageHandler_GetType(_arg0
);
400 wxPy_END_ALLOW_THREADS
;
401 } _resultobj
= Py_BuildValue("l",_result
);
405 #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
406 static PyObject
*_wrap_wxImageHandler_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
407 PyObject
* _resultobj
;
409 wxImageHandler
* _arg0
;
410 PyObject
* _argo0
= 0;
411 char *_kwnames
[] = { "self", NULL
};
414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetMimeType",_kwnames
,&_argo0
))
417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
424 wxPy_BEGIN_ALLOW_THREADS
;
425 _result
= new wxString (wxImageHandler_GetMimeType(_arg0
));
427 wxPy_END_ALLOW_THREADS
;
429 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
437 #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
438 static PyObject
*_wrap_wxImageHandler_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
439 PyObject
* _resultobj
;
440 wxImageHandler
* _arg0
;
442 PyObject
* _argo0
= 0;
443 PyObject
* _obj1
= 0;
444 char *_kwnames
[] = { "self","name", NULL
};
447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetName",_kwnames
,&_argo0
,&_obj1
))
450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
457 if (!PyString_Check(_obj1
)) {
458 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
461 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
464 wxPy_BEGIN_ALLOW_THREADS
;
465 wxImageHandler_SetName(_arg0
,*_arg1
);
467 wxPy_END_ALLOW_THREADS
;
468 } Py_INCREF(Py_None
);
469 _resultobj
= Py_None
;
477 #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
478 static PyObject
*_wrap_wxImageHandler_SetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
479 PyObject
* _resultobj
;
480 wxImageHandler
* _arg0
;
482 PyObject
* _argo0
= 0;
483 PyObject
* _obj1
= 0;
484 char *_kwnames
[] = { "self","extension", NULL
};
487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetExtension",_kwnames
,&_argo0
,&_obj1
))
490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
497 if (!PyString_Check(_obj1
)) {
498 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
501 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
504 wxPy_BEGIN_ALLOW_THREADS
;
505 wxImageHandler_SetExtension(_arg0
,*_arg1
);
507 wxPy_END_ALLOW_THREADS
;
508 } Py_INCREF(Py_None
);
509 _resultobj
= Py_None
;
517 #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
518 static PyObject
*_wrap_wxImageHandler_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
519 PyObject
* _resultobj
;
520 wxImageHandler
* _arg0
;
522 PyObject
* _argo0
= 0;
523 char *_kwnames
[] = { "self","type", NULL
};
526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxImageHandler_SetType",_kwnames
,&_argo0
,&_arg1
))
529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
536 wxPy_BEGIN_ALLOW_THREADS
;
537 wxImageHandler_SetType(_arg0
,_arg1
);
539 wxPy_END_ALLOW_THREADS
;
540 } Py_INCREF(Py_None
);
541 _resultobj
= Py_None
;
545 #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
546 static PyObject
*_wrap_wxImageHandler_SetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
547 PyObject
* _resultobj
;
548 wxImageHandler
* _arg0
;
550 PyObject
* _argo0
= 0;
551 PyObject
* _obj1
= 0;
552 char *_kwnames
[] = { "self","mimetype", NULL
};
555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetMimeType",_kwnames
,&_argo0
,&_obj1
))
558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
565 if (!PyString_Check(_obj1
)) {
566 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
569 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
572 wxPy_BEGIN_ALLOW_THREADS
;
573 wxImageHandler_SetMimeType(_arg0
,*_arg1
);
575 wxPy_END_ALLOW_THREADS
;
576 } Py_INCREF(Py_None
);
577 _resultobj
= Py_None
;
585 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr
) {
587 wxImageHandler
*dest
;
588 src
= (wxPNGHandler
*) ptr
;
589 dest
= (wxImageHandler
*) src
;
590 return (void *) dest
;
593 #define new_wxPNGHandler() (new wxPNGHandler())
594 static PyObject
*_wrap_new_wxPNGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
595 PyObject
* _resultobj
;
596 wxPNGHandler
* _result
;
597 char *_kwnames
[] = { NULL
};
601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNGHandler",_kwnames
))
604 wxPy_BEGIN_ALLOW_THREADS
;
605 _result
= (wxPNGHandler
*)new_wxPNGHandler();
607 wxPy_END_ALLOW_THREADS
;
609 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNGHandler_p");
610 _resultobj
= Py_BuildValue("s",_ptemp
);
613 _resultobj
= Py_None
;
618 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr
) {
620 wxImageHandler
*dest
;
621 src
= (wxJPEGHandler
*) ptr
;
622 dest
= (wxImageHandler
*) src
;
623 return (void *) dest
;
626 #define new_wxJPEGHandler() (new wxJPEGHandler())
627 static PyObject
*_wrap_new_wxJPEGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
628 PyObject
* _resultobj
;
629 wxJPEGHandler
* _result
;
630 char *_kwnames
[] = { NULL
};
634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxJPEGHandler",_kwnames
))
637 wxPy_BEGIN_ALLOW_THREADS
;
638 _result
= (wxJPEGHandler
*)new_wxJPEGHandler();
640 wxPy_END_ALLOW_THREADS
;
642 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxJPEGHandler_p");
643 _resultobj
= Py_BuildValue("s",_ptemp
);
646 _resultobj
= Py_None
;
651 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr
) {
653 wxImageHandler
*dest
;
654 src
= (wxBMPHandler
*) ptr
;
655 dest
= (wxImageHandler
*) src
;
656 return (void *) dest
;
659 #define new_wxBMPHandler() (new wxBMPHandler())
660 static PyObject
*_wrap_new_wxBMPHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
661 PyObject
* _resultobj
;
662 wxBMPHandler
* _result
;
663 char *_kwnames
[] = { NULL
};
667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxBMPHandler",_kwnames
))
670 wxPy_BEGIN_ALLOW_THREADS
;
671 _result
= (wxBMPHandler
*)new_wxBMPHandler();
673 wxPy_END_ALLOW_THREADS
;
675 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBMPHandler_p");
676 _resultobj
= Py_BuildValue("s",_ptemp
);
679 _resultobj
= Py_None
;
684 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr
) {
686 wxImageHandler
*dest
;
687 src
= (wxGIFHandler
*) ptr
;
688 dest
= (wxImageHandler
*) src
;
689 return (void *) dest
;
692 #define new_wxGIFHandler() (new wxGIFHandler())
693 static PyObject
*_wrap_new_wxGIFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
694 PyObject
* _resultobj
;
695 wxGIFHandler
* _result
;
696 char *_kwnames
[] = { NULL
};
700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGIFHandler",_kwnames
))
703 wxPy_BEGIN_ALLOW_THREADS
;
704 _result
= (wxGIFHandler
*)new_wxGIFHandler();
706 wxPy_END_ALLOW_THREADS
;
708 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGIFHandler_p");
709 _resultobj
= Py_BuildValue("s",_ptemp
);
712 _resultobj
= Py_None
;
717 #define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1))
718 static PyObject
*_wrap_new_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
719 PyObject
* _resultobj
;
722 long _arg1
= (long ) wxBITMAP_TYPE_PNG
;
723 PyObject
* _obj0
= 0;
724 char *_kwnames
[] = { "name","type", NULL
};
728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:new_wxImage",_kwnames
,&_obj0
,&_arg1
))
731 if (!PyString_Check(_obj0
)) {
732 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
735 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
738 wxPy_BEGIN_ALLOW_THREADS
;
739 _result
= (wxImage
*)new_wxImage(*_arg0
,_arg1
);
741 wxPy_END_ALLOW_THREADS
;
743 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
744 _resultobj
= Py_BuildValue("s",_ptemp
);
747 _resultobj
= Py_None
;
756 #define delete_wxImage(_swigobj) (delete _swigobj)
757 static PyObject
*_wrap_delete_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
758 PyObject
* _resultobj
;
760 PyObject
* _argo0
= 0;
761 char *_kwnames
[] = { "self", NULL
};
764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImage",_kwnames
,&_argo0
))
767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
774 wxPy_BEGIN_ALLOW_THREADS
;
775 delete_wxImage(_arg0
);
777 wxPy_END_ALLOW_THREADS
;
778 } Py_INCREF(Py_None
);
779 _resultobj
= Py_None
;
783 #define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
784 static PyObject
*_wrap_wxImage_ConvertToBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
785 PyObject
* _resultobj
;
788 PyObject
* _argo0
= 0;
789 char *_kwnames
[] = { "self", NULL
};
793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_ConvertToBitmap",_kwnames
,&_argo0
))
796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
803 wxPy_BEGIN_ALLOW_THREADS
;
804 _result
= new wxBitmap (wxImage_ConvertToBitmap(_arg0
));
806 wxPy_END_ALLOW_THREADS
;
807 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
808 _resultobj
= Py_BuildValue("s",_ptemp
);
812 #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
813 static PyObject
*_wrap_wxImage_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
814 PyObject
* _resultobj
;
818 PyObject
* _argo0
= 0;
819 char *_kwnames
[] = { "self","width","height", NULL
};
822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Create",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
832 wxPy_BEGIN_ALLOW_THREADS
;
833 wxImage_Create(_arg0
,_arg1
,_arg2
);
835 wxPy_END_ALLOW_THREADS
;
836 } Py_INCREF(Py_None
);
837 _resultobj
= Py_None
;
841 #define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
842 static PyObject
*_wrap_wxImage_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
843 PyObject
* _resultobj
;
845 PyObject
* _argo0
= 0;
846 char *_kwnames
[] = { "self", NULL
};
849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Destroy",_kwnames
,&_argo0
))
852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
859 wxPy_BEGIN_ALLOW_THREADS
;
860 wxImage_Destroy(_arg0
);
862 wxPy_END_ALLOW_THREADS
;
863 } Py_INCREF(Py_None
);
864 _resultobj
= Py_None
;
868 #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
869 static PyObject
*_wrap_wxImage_Scale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
870 PyObject
* _resultobj
;
875 PyObject
* _argo0
= 0;
876 char *_kwnames
[] = { "self","width","height", NULL
};
880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Scale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
890 wxPy_BEGIN_ALLOW_THREADS
;
891 _result
= new wxImage (wxImage_Scale(_arg0
,_arg1
,_arg2
));
893 wxPy_END_ALLOW_THREADS
;
894 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
895 _resultobj
= Py_BuildValue("s",_ptemp
);
899 #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
900 static PyObject
*_wrap_wxImage_Rescale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
901 PyObject
* _resultobj
;
905 PyObject
* _argo0
= 0;
906 char *_kwnames
[] = { "self","width","height", NULL
};
909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Rescale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
919 wxPy_BEGIN_ALLOW_THREADS
;
920 wxImage_Rescale(_arg0
,_arg1
,_arg2
);
922 wxPy_END_ALLOW_THREADS
;
923 } Py_INCREF(Py_None
);
924 _resultobj
= Py_None
;
928 #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
929 static PyObject
*_wrap_wxImage_SetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
930 PyObject
* _resultobj
;
937 PyObject
* _argo0
= 0;
938 char *_kwnames
[] = { "self","x","y","r","g","b", NULL
};
941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiibbb:wxImage_SetRGB",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
951 wxPy_BEGIN_ALLOW_THREADS
;
952 wxImage_SetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
954 wxPy_END_ALLOW_THREADS
;
955 } Py_INCREF(Py_None
);
956 _resultobj
= Py_None
;
960 #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
961 static PyObject
*_wrap_wxImage_GetRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
962 PyObject
* _resultobj
;
963 unsigned char _result
;
967 PyObject
* _argo0
= 0;
968 char *_kwnames
[] = { "self","x","y", NULL
};
971 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetRed",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
974 if (_argo0
== Py_None
) { _arg0
= NULL
; }
975 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
976 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
981 wxPy_BEGIN_ALLOW_THREADS
;
982 _result
= (unsigned char )wxImage_GetRed(_arg0
,_arg1
,_arg2
);
984 wxPy_END_ALLOW_THREADS
;
985 } _resultobj
= Py_BuildValue("b",_result
);
989 #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
990 static PyObject
*_wrap_wxImage_GetGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
991 PyObject
* _resultobj
;
992 unsigned char _result
;
996 PyObject
* _argo0
= 0;
997 char *_kwnames
[] = { "self","x","y", NULL
};
1000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetGreen",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1010 wxPy_BEGIN_ALLOW_THREADS
;
1011 _result
= (unsigned char )wxImage_GetGreen(_arg0
,_arg1
,_arg2
);
1013 wxPy_END_ALLOW_THREADS
;
1014 } _resultobj
= Py_BuildValue("b",_result
);
1018 #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
1019 static PyObject
*_wrap_wxImage_GetBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1020 PyObject
* _resultobj
;
1021 unsigned char _result
;
1025 PyObject
* _argo0
= 0;
1026 char *_kwnames
[] = { "self","x","y", NULL
};
1029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetBlue",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1039 wxPy_BEGIN_ALLOW_THREADS
;
1040 _result
= (unsigned char )wxImage_GetBlue(_arg0
,_arg1
,_arg2
);
1042 wxPy_END_ALLOW_THREADS
;
1043 } _resultobj
= Py_BuildValue("b",_result
);
1047 #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1048 static PyObject
*_wrap_wxImage_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1049 PyObject
* _resultobj
;
1053 long _arg2
= (long ) wxBITMAP_TYPE_PNG
;
1054 PyObject
* _argo0
= 0;
1055 PyObject
* _obj1
= 0;
1056 char *_kwnames
[] = { "self","name","type", NULL
};
1059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|l:wxImage_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1069 if (!PyString_Check(_obj1
)) {
1070 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1073 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1076 wxPy_BEGIN_ALLOW_THREADS
;
1077 _result
= (bool )wxImage_LoadFile(_arg0
,*_arg1
,_arg2
);
1079 wxPy_END_ALLOW_THREADS
;
1080 } _resultobj
= Py_BuildValue("i",_result
);
1088 #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1089 static PyObject
*_wrap_wxImage_LoadMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1090 PyObject
* _resultobj
;
1095 PyObject
* _argo0
= 0;
1096 PyObject
* _obj1
= 0;
1097 PyObject
* _obj2
= 0;
1098 char *_kwnames
[] = { "self","name","mimetype", NULL
};
1101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_LoadMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1111 if (!PyString_Check(_obj1
)) {
1112 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1115 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1118 if (!PyString_Check(_obj2
)) {
1119 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1122 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1125 wxPy_BEGIN_ALLOW_THREADS
;
1126 _result
= (bool )wxImage_LoadMimeFile(_arg0
,*_arg1
,*_arg2
);
1128 wxPy_END_ALLOW_THREADS
;
1129 } _resultobj
= Py_BuildValue("i",_result
);
1141 #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1142 static PyObject
*_wrap_wxImage_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1143 PyObject
* _resultobj
;
1148 PyObject
* _argo0
= 0;
1149 PyObject
* _obj1
= 0;
1150 char *_kwnames
[] = { "self","name","type", NULL
};
1153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1163 if (!PyString_Check(_obj1
)) {
1164 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1167 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1170 wxPy_BEGIN_ALLOW_THREADS
;
1171 _result
= (bool )wxImage_SaveFile(_arg0
,*_arg1
,_arg2
);
1173 wxPy_END_ALLOW_THREADS
;
1174 } _resultobj
= Py_BuildValue("i",_result
);
1182 #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1183 static PyObject
*_wrap_wxImage_SaveMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1184 PyObject
* _resultobj
;
1189 PyObject
* _argo0
= 0;
1190 PyObject
* _obj1
= 0;
1191 PyObject
* _obj2
= 0;
1192 char *_kwnames
[] = { "self","name","mimetype", NULL
};
1195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SaveMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1205 if (!PyString_Check(_obj1
)) {
1206 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1209 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1212 if (!PyString_Check(_obj2
)) {
1213 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1216 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1219 wxPy_BEGIN_ALLOW_THREADS
;
1220 _result
= (bool )wxImage_SaveMimeFile(_arg0
,*_arg1
,*_arg2
);
1222 wxPy_END_ALLOW_THREADS
;
1223 } _resultobj
= Py_BuildValue("i",_result
);
1235 #define wxImage_Ok(_swigobj) (_swigobj->Ok())
1236 static PyObject
*_wrap_wxImage_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1237 PyObject
* _resultobj
;
1240 PyObject
* _argo0
= 0;
1241 char *_kwnames
[] = { "self", NULL
};
1244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Ok",_kwnames
,&_argo0
))
1247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
1254 wxPy_BEGIN_ALLOW_THREADS
;
1255 _result
= (bool )wxImage_Ok(_arg0
);
1257 wxPy_END_ALLOW_THREADS
;
1258 } _resultobj
= Py_BuildValue("i",_result
);
1262 #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
1263 static PyObject
*_wrap_wxImage_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1264 PyObject
* _resultobj
;
1267 PyObject
* _argo0
= 0;
1268 char *_kwnames
[] = { "self", NULL
};
1271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetWidth",_kwnames
,&_argo0
))
1274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
1281 wxPy_BEGIN_ALLOW_THREADS
;
1282 _result
= (int )wxImage_GetWidth(_arg0
);
1284 wxPy_END_ALLOW_THREADS
;
1285 } _resultobj
= Py_BuildValue("i",_result
);
1289 #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
1290 static PyObject
*_wrap_wxImage_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1291 PyObject
* _resultobj
;
1294 PyObject
* _argo0
= 0;
1295 char *_kwnames
[] = { "self", NULL
};
1298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetHeight",_kwnames
,&_argo0
))
1301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
1308 wxPy_BEGIN_ALLOW_THREADS
;
1309 _result
= (int )wxImage_GetHeight(_arg0
);
1311 wxPy_END_ALLOW_THREADS
;
1312 } _resultobj
= Py_BuildValue("i",_result
);
1316 static PyObject
* wxImage_GetData(wxImage
*self
) {
1317 unsigned char* data
= self
->GetData();
1318 int len
= self
->GetWidth() * self
->GetHeight() * 3;
1319 return PyString_FromStringAndSize((char*)data
, len
);
1321 static PyObject
*_wrap_wxImage_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1322 PyObject
* _resultobj
;
1325 PyObject
* _argo0
= 0;
1326 char *_kwnames
[] = { "self", NULL
};
1329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetData",_kwnames
,&_argo0
))
1332 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1333 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
1339 wxPy_BEGIN_ALLOW_THREADS
;
1340 _result
= (PyObject
*)wxImage_GetData(_arg0
);
1342 wxPy_END_ALLOW_THREADS
;
1344 _resultobj
= _result
;
1349 static void wxImage_SetData(wxImage
*self
,PyObject
* data
) {
1350 unsigned char* dataPtr
;
1352 if (! PyString_Check(data
)) {
1353 PyErr_SetString(PyExc_TypeError
, "Expected string object");
1356 dataPtr
= (unsigned char*)PyString_AsString(data
);
1357 self
->SetData(dataPtr
);
1359 static PyObject
*_wrap_wxImage_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1360 PyObject
* _resultobj
;
1363 PyObject
* _argo0
= 0;
1364 PyObject
* _obj1
= 0;
1365 char *_kwnames
[] = { "self","data", NULL
};
1368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetData",_kwnames
,&_argo0
,&_obj1
))
1371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
1381 wxPy_BEGIN_ALLOW_THREADS
;
1382 wxImage_SetData(_arg0
,_arg1
);
1384 wxPy_END_ALLOW_THREADS
;
1385 } Py_INCREF(Py_None
);
1386 _resultobj
= Py_None
;
1390 #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
1391 static PyObject
*_wrap_wxImage_SetMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1392 PyObject
* _resultobj
;
1394 unsigned char _arg1
;
1395 unsigned char _arg2
;
1396 unsigned char _arg3
;
1397 PyObject
* _argo0
= 0;
1398 char *_kwnames
[] = { "self","r","g","b", NULL
};
1401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_SetMaskColour",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
1411 wxPy_BEGIN_ALLOW_THREADS
;
1412 wxImage_SetMaskColour(_arg0
,_arg1
,_arg2
,_arg3
);
1414 wxPy_END_ALLOW_THREADS
;
1415 } Py_INCREF(Py_None
);
1416 _resultobj
= Py_None
;
1420 #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
1421 static PyObject
*_wrap_wxImage_GetMaskRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1422 PyObject
* _resultobj
;
1423 unsigned char _result
;
1425 PyObject
* _argo0
= 0;
1426 char *_kwnames
[] = { "self", NULL
};
1429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskRed",_kwnames
,&_argo0
))
1432 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1433 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1434 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
1439 wxPy_BEGIN_ALLOW_THREADS
;
1440 _result
= (unsigned char )wxImage_GetMaskRed(_arg0
);
1442 wxPy_END_ALLOW_THREADS
;
1443 } _resultobj
= Py_BuildValue("b",_result
);
1447 #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
1448 static PyObject
*_wrap_wxImage_GetMaskGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1449 PyObject
* _resultobj
;
1450 unsigned char _result
;
1452 PyObject
* _argo0
= 0;
1453 char *_kwnames
[] = { "self", NULL
};
1456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskGreen",_kwnames
,&_argo0
))
1459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
1466 wxPy_BEGIN_ALLOW_THREADS
;
1467 _result
= (unsigned char )wxImage_GetMaskGreen(_arg0
);
1469 wxPy_END_ALLOW_THREADS
;
1470 } _resultobj
= Py_BuildValue("b",_result
);
1474 #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
1475 static PyObject
*_wrap_wxImage_GetMaskBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1476 PyObject
* _resultobj
;
1477 unsigned char _result
;
1479 PyObject
* _argo0
= 0;
1480 char *_kwnames
[] = { "self", NULL
};
1483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskBlue",_kwnames
,&_argo0
))
1486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
1493 wxPy_BEGIN_ALLOW_THREADS
;
1494 _result
= (unsigned char )wxImage_GetMaskBlue(_arg0
);
1496 wxPy_END_ALLOW_THREADS
;
1497 } _resultobj
= Py_BuildValue("b",_result
);
1501 #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1502 static PyObject
*_wrap_wxImage_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1503 PyObject
* _resultobj
;
1505 bool _arg1
= (bool ) TRUE
;
1506 PyObject
* _argo0
= 0;
1507 int tempbool1
= (int) TRUE
;
1508 char *_kwnames
[] = { "self","mask", NULL
};
1511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_SetMask",_kwnames
,&_argo0
,&tempbool1
))
1514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
1520 _arg1
= (bool ) tempbool1
;
1522 wxPy_BEGIN_ALLOW_THREADS
;
1523 wxImage_SetMask(_arg0
,_arg1
);
1525 wxPy_END_ALLOW_THREADS
;
1526 } Py_INCREF(Py_None
);
1527 _resultobj
= Py_None
;
1531 #define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
1532 static PyObject
*_wrap_wxImage_HasMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1533 PyObject
* _resultobj
;
1536 PyObject
* _argo0
= 0;
1537 char *_kwnames
[] = { "self", NULL
};
1540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_HasMask",_kwnames
,&_argo0
))
1543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
1550 wxPy_BEGIN_ALLOW_THREADS
;
1551 _result
= (bool )wxImage_HasMask(_arg0
);
1553 wxPy_END_ALLOW_THREADS
;
1554 } _resultobj
= Py_BuildValue("i",_result
);
1558 static PyMethodDef imagecMethods
[] = {
1559 { "wxImage_HasMask", (PyCFunction
) _wrap_wxImage_HasMask
, METH_VARARGS
| METH_KEYWORDS
},
1560 { "wxImage_SetMask", (PyCFunction
) _wrap_wxImage_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
1561 { "wxImage_GetMaskBlue", (PyCFunction
) _wrap_wxImage_GetMaskBlue
, METH_VARARGS
| METH_KEYWORDS
},
1562 { "wxImage_GetMaskGreen", (PyCFunction
) _wrap_wxImage_GetMaskGreen
, METH_VARARGS
| METH_KEYWORDS
},
1563 { "wxImage_GetMaskRed", (PyCFunction
) _wrap_wxImage_GetMaskRed
, METH_VARARGS
| METH_KEYWORDS
},
1564 { "wxImage_SetMaskColour", (PyCFunction
) _wrap_wxImage_SetMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
1565 { "wxImage_SetData", (PyCFunction
) _wrap_wxImage_SetData
, METH_VARARGS
| METH_KEYWORDS
},
1566 { "wxImage_GetData", (PyCFunction
) _wrap_wxImage_GetData
, METH_VARARGS
| METH_KEYWORDS
},
1567 { "wxImage_GetHeight", (PyCFunction
) _wrap_wxImage_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
1568 { "wxImage_GetWidth", (PyCFunction
) _wrap_wxImage_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
1569 { "wxImage_Ok", (PyCFunction
) _wrap_wxImage_Ok
, METH_VARARGS
| METH_KEYWORDS
},
1570 { "wxImage_SaveMimeFile", (PyCFunction
) _wrap_wxImage_SaveMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
1571 { "wxImage_SaveFile", (PyCFunction
) _wrap_wxImage_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
1572 { "wxImage_LoadMimeFile", (PyCFunction
) _wrap_wxImage_LoadMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
1573 { "wxImage_LoadFile", (PyCFunction
) _wrap_wxImage_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
1574 { "wxImage_GetBlue", (PyCFunction
) _wrap_wxImage_GetBlue
, METH_VARARGS
| METH_KEYWORDS
},
1575 { "wxImage_GetGreen", (PyCFunction
) _wrap_wxImage_GetGreen
, METH_VARARGS
| METH_KEYWORDS
},
1576 { "wxImage_GetRed", (PyCFunction
) _wrap_wxImage_GetRed
, METH_VARARGS
| METH_KEYWORDS
},
1577 { "wxImage_SetRGB", (PyCFunction
) _wrap_wxImage_SetRGB
, METH_VARARGS
| METH_KEYWORDS
},
1578 { "wxImage_Rescale", (PyCFunction
) _wrap_wxImage_Rescale
, METH_VARARGS
| METH_KEYWORDS
},
1579 { "wxImage_Scale", (PyCFunction
) _wrap_wxImage_Scale
, METH_VARARGS
| METH_KEYWORDS
},
1580 { "wxImage_Destroy", (PyCFunction
) _wrap_wxImage_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
1581 { "wxImage_Create", (PyCFunction
) _wrap_wxImage_Create
, METH_VARARGS
| METH_KEYWORDS
},
1582 { "wxImage_ConvertToBitmap", (PyCFunction
) _wrap_wxImage_ConvertToBitmap
, METH_VARARGS
| METH_KEYWORDS
},
1583 { "delete_wxImage", (PyCFunction
) _wrap_delete_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
1584 { "new_wxImage", (PyCFunction
) _wrap_new_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
1585 { "new_wxGIFHandler", (PyCFunction
) _wrap_new_wxGIFHandler
, METH_VARARGS
| METH_KEYWORDS
},
1586 { "new_wxBMPHandler", (PyCFunction
) _wrap_new_wxBMPHandler
, METH_VARARGS
| METH_KEYWORDS
},
1587 { "new_wxJPEGHandler", (PyCFunction
) _wrap_new_wxJPEGHandler
, METH_VARARGS
| METH_KEYWORDS
},
1588 { "new_wxPNGHandler", (PyCFunction
) _wrap_new_wxPNGHandler
, METH_VARARGS
| METH_KEYWORDS
},
1589 { "wxImageHandler_SetMimeType", (PyCFunction
) _wrap_wxImageHandler_SetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
1590 { "wxImageHandler_SetType", (PyCFunction
) _wrap_wxImageHandler_SetType
, METH_VARARGS
| METH_KEYWORDS
},
1591 { "wxImageHandler_SetExtension", (PyCFunction
) _wrap_wxImageHandler_SetExtension
, METH_VARARGS
| METH_KEYWORDS
},
1592 { "wxImageHandler_SetName", (PyCFunction
) _wrap_wxImageHandler_SetName
, METH_VARARGS
| METH_KEYWORDS
},
1593 { "wxImageHandler_GetMimeType", (PyCFunction
) _wrap_wxImageHandler_GetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
1594 { "wxImageHandler_GetType", (PyCFunction
) _wrap_wxImageHandler_GetType
, METH_VARARGS
| METH_KEYWORDS
},
1595 { "wxImageHandler_GetExtension", (PyCFunction
) _wrap_wxImageHandler_GetExtension
, METH_VARARGS
| METH_KEYWORDS
},
1596 { "wxImageHandler_GetName", (PyCFunction
) _wrap_wxImageHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
1597 { "new_wxImageHandler", (PyCFunction
) _wrap_new_wxImageHandler
, METH_VARARGS
| METH_KEYWORDS
},
1598 { "wxImage_AddHandler", (PyCFunction
) _wrap_wxImage_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
1599 { "wxImageFromBitmap", (PyCFunction
) _wrap_wxImageFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
1600 { "wxImageFromMime", (PyCFunction
) _wrap_wxImageFromMime
, METH_VARARGS
| METH_KEYWORDS
},
1601 { "wxEmptyImage", (PyCFunction
) _wrap_wxEmptyImage
, METH_VARARGS
| METH_KEYWORDS
},
1602 { "wxNullImage", (PyCFunction
) _wrap_wxNullImage
, METH_VARARGS
| METH_KEYWORDS
},
1609 * This table is used by the pointer type-checker
1611 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1612 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
1613 { "_signed_long","_long",0},
1614 { "_class_wxJPEGHandler","_wxJPEGHandler",0},
1615 { "_wxBMPHandler","_class_wxBMPHandler",0},
1616 { "_wxImage","_class_wxImage",0},
1617 { "_wxPrintQuality","_int",0},
1618 { "_wxPrintQuality","_signed_int",0},
1619 { "_wxPrintQuality","_unsigned_int",0},
1620 { "_wxPrintQuality","_wxWindowID",0},
1621 { "_wxPrintQuality","_uint",0},
1622 { "_wxPrintQuality","_EBool",0},
1623 { "_wxPrintQuality","_size_t",0},
1624 { "_class_wxRegionIterator","_wxRegionIterator",0},
1625 { "_wxGIFHandler","_class_wxGIFHandler",0},
1626 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
1627 { "_wxCursor","_class_wxCursor",0},
1628 { "_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1629 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1630 { "_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1631 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1632 { "_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1633 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1634 { "_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1635 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1636 { "_wxImageHandler","_class_wxImageHandler",0},
1637 { "_wxMask","_class_wxMask",0},
1638 { "_wxPNGHandler","_class_wxPNGHandler",0},
1639 { "_wxPen","_class_wxPen",0},
1640 { "_byte","_unsigned_char",0},
1641 { "_long","_wxDash",0},
1642 { "_long","_unsigned_long",0},
1643 { "_long","_signed_long",0},
1644 { "_wxImageList","_class_wxImageList",0},
1645 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
1646 { "_wxDC","_class_wxDC",0},
1647 { "_class_wxBMPHandler","_wxBMPHandler",0},
1648 { "_size_t","_wxPrintQuality",0},
1649 { "_size_t","_unsigned_int",0},
1650 { "_size_t","_int",0},
1651 { "_size_t","_wxWindowID",0},
1652 { "_size_t","_uint",0},
1653 { "_class_wxRealPoint","_wxRealPoint",0},
1654 { "_class_wxGIFHandler","_wxGIFHandler",0},
1655 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
1656 { "_class_wxMask","_wxMask",0},
1657 { "_class_wxPNGHandler","_wxPNGHandler",0},
1658 { "_wxColour","_class_wxColour",0},
1659 { "_wxBrush","_class_wxBrush",0},
1660 { "_uint","_wxPrintQuality",0},
1661 { "_uint","_size_t",0},
1662 { "_uint","_unsigned_int",0},
1663 { "_uint","_int",0},
1664 { "_uint","_wxWindowID",0},
1665 { "_wxRect","_class_wxRect",0},
1666 { "_class_wxImage","_wxImage",0},
1667 { "_wxPoint","_class_wxPoint",0},
1668 { "_wxBitmap","_class_wxBitmap",0},
1669 { "_wxPyTimer","_class_wxPyTimer",0},
1670 { "_wxWindowDC","_class_wxWindowDC",0},
1671 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
1672 { "_EBool","_wxPrintQuality",0},
1673 { "_EBool","_signed_int",0},
1674 { "_EBool","_int",0},
1675 { "_EBool","_wxWindowID",0},
1676 { "_class_wxRegion","_wxRegion",0},
1677 { "_wxFont","_class_wxFont",0},
1678 { "_unsigned_long","_wxDash",0},
1679 { "_unsigned_long","_long",0},
1680 { "_class_wxRect","_wxRect",0},
1681 { "_class_wxDC","_wxDC",0},
1682 { "_class_wxPyTimer","_wxPyTimer",0},
1683 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
1684 { "_signed_int","_wxPrintQuality",0},
1685 { "_signed_int","_EBool",0},
1686 { "_signed_int","_wxWindowID",0},
1687 { "_signed_int","_int",0},
1688 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
1689 { "_wxScreenDC","_class_wxScreenDC",0},
1690 { "_WXTYPE","_short",0},
1691 { "_WXTYPE","_signed_short",0},
1692 { "_WXTYPE","_unsigned_short",0},
1693 { "_class_wxBrush","_wxBrush",0},
1694 { "_unsigned_short","_WXTYPE",0},
1695 { "_unsigned_short","_short",0},
1696 { "_class_wxFont","_wxFont",0},
1697 { "_wxClientDC","_class_wxClientDC",0},
1698 { "_class_wxPoint","_wxPoint",0},
1699 { "_wxRealPoint","_class_wxRealPoint",0},
1700 { "_signed_short","_WXTYPE",0},
1701 { "_signed_short","_short",0},
1702 { "_wxMemoryDC","_class_wxMemoryDC",0},
1703 { "_wxPaintDC","_class_wxPaintDC",0},
1704 { "_class_wxWindowDC","_wxWindowDC",0},
1705 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1706 { "_class_wxCursor","_wxCursor",0},
1707 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
1708 { "_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1709 { "_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1710 { "_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1711 { "_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1712 { "_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1713 { "_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1714 { "_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1715 { "_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1716 { "_class_wxImageHandler","_wxImageHandler",0},
1717 { "_unsigned_char","_byte",0},
1718 { "_unsigned_int","_wxPrintQuality",0},
1719 { "_unsigned_int","_size_t",0},
1720 { "_unsigned_int","_uint",0},
1721 { "_unsigned_int","_wxWindowID",0},
1722 { "_unsigned_int","_int",0},
1723 { "_wxIcon","_class_wxIcon",0},
1724 { "_class_wxPen","_wxPen",0},
1725 { "_short","_WXTYPE",0},
1726 { "_short","_unsigned_short",0},
1727 { "_short","_signed_short",0},
1728 { "_class_wxImageList","_wxImageList",0},
1729 { "_wxJPEGHandler","_class_wxJPEGHandler",0},
1730 { "_wxWindowID","_wxPrintQuality",0},
1731 { "_wxWindowID","_size_t",0},
1732 { "_wxWindowID","_EBool",0},
1733 { "_wxWindowID","_uint",0},
1734 { "_wxWindowID","_int",0},
1735 { "_wxWindowID","_signed_int",0},
1736 { "_wxWindowID","_unsigned_int",0},
1737 { "_int","_wxPrintQuality",0},
1738 { "_int","_size_t",0},
1739 { "_int","_EBool",0},
1740 { "_int","_uint",0},
1741 { "_int","_wxWindowID",0},
1742 { "_int","_unsigned_int",0},
1743 { "_int","_signed_int",0},
1744 { "_wxSize","_class_wxSize",0},
1745 { "_wxRegionIterator","_class_wxRegionIterator",0},
1746 { "_class_wxPaintDC","_wxPaintDC",0},
1747 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
1748 { "_class_wxIcon","_wxIcon",0},
1749 { "_class_wxColour","_wxColour",0},
1750 { "_class_wxScreenDC","_wxScreenDC",0},
1751 { "_wxPalette","_class_wxPalette",0},
1752 { "_wxRegion","_class_wxRegion",0},
1753 { "_class_wxClientDC","_wxClientDC",0},
1754 { "_class_wxSize","_wxSize",0},
1755 { "_class_wxBitmap","_wxBitmap",0},
1756 { "_class_wxMemoryDC","_wxMemoryDC",0},
1757 { "_wxDash","_unsigned_long",0},
1758 { "_wxDash","_long",0},
1759 { "_class_wxPalette","_wxPalette",0},
1762 static PyObject
*SWIG_globals
;
1766 SWIGEXPORT(void) initimagec() {
1768 SWIG_globals
= SWIG_newvarlink();
1769 m
= Py_InitModule("imagec", imagecMethods
);
1770 d
= PyModule_GetDict(m
);
1773 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1774 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);