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"
59 #include "pyistream.h"
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 wxImage
* wxEmptyImage(int width
=0, int height
=0) {
90 if (width
== 0 && height
== 0)
93 return new wxImage(width
, height
);
97 wxImage
* wxImageFromMime(const wxString
& name
, const wxString
& mimetype
, int index
) {
98 return new wxImage(name
, mimetype
, index
);
102 wxImage
* wxImageFromBitmap(const wxBitmap
&bitmap
) {
103 return new wxImage(bitmap
);
107 wxImage
* wxImageFromData(int width
, int height
, unsigned char* data
) {
108 // Copy the source data so the wxImage can clean it up later
109 unsigned char* copy
= (unsigned char*)malloc(width
*height
*3);
114 memcpy(copy
, data
, width
*height
*3);
115 return new wxImage(width
, height
, copy
, FALSE
);
119 wxImage
* wxImageFromStream(wxInputStream
& stream
,
120 long type
= wxBITMAP_TYPE_ANY
, int index
= -1) {
121 return new wxImage(stream
, type
, index
);
125 wxImage
* wxImageFromStreamMime(wxInputStream
& stream
,
126 const wxString
& mimetype
, int index
= -1 ) {
127 return new wxImage(stream
, mimetype
, index
);
131 extern wxImage wxNullImage
;
135 wxBitmap
* wxBitmapFromImage(const wxImage
& img
, int depth
=-1) {
136 return new wxBitmap(img
, depth
);
142 static PyObject
*_wrap_wxEmptyImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
143 PyObject
* _resultobj
;
145 int _arg0
= (int ) 0;
146 int _arg1
= (int ) 0;
147 char *_kwnames
[] = { "width","height", NULL
};
151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|ii:wxEmptyImage",_kwnames
,&_arg0
,&_arg1
))
154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
155 _result
= (wxImage
*)wxEmptyImage(_arg0
,_arg1
);
157 wxPyEndAllowThreads(__tstate
);
158 if (PyErr_Occurred()) return NULL
;
160 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
161 _resultobj
= Py_BuildValue("s",_ptemp
);
164 _resultobj
= Py_None
;
169 static PyObject
*_wrap_wxImageFromMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
170 PyObject
* _resultobj
;
174 int _arg2
= (int ) -1;
175 PyObject
* _obj0
= 0;
176 PyObject
* _obj1
= 0;
177 char *_kwnames
[] = { "name","mimetype","index", NULL
};
181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxImageFromMime",_kwnames
,&_obj0
,&_obj1
,&_arg2
))
184 _arg0
= wxString_in_helper(_obj0
);
189 _arg1
= wxString_in_helper(_obj1
);
194 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
195 _result
= (wxImage
*)wxImageFromMime(*_arg0
,*_arg1
,_arg2
);
197 wxPyEndAllowThreads(__tstate
);
198 if (PyErr_Occurred()) return NULL
;
200 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
201 _resultobj
= Py_BuildValue("s",_ptemp
);
204 _resultobj
= Py_None
;
217 static PyObject
*_wrap_wxImageFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
218 PyObject
* _resultobj
;
221 PyObject
* _argo0
= 0;
222 char *_kwnames
[] = { "bitmap", NULL
};
226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageFromBitmap",_kwnames
,&_argo0
))
229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
237 _result
= (wxImage
*)wxImageFromBitmap(*_arg0
);
239 wxPyEndAllowThreads(__tstate
);
240 if (PyErr_Occurred()) return NULL
;
242 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
243 _resultobj
= Py_BuildValue("s",_ptemp
);
246 _resultobj
= Py_None
;
251 static PyObject
*_wrap_wxImageFromData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
252 PyObject
* _resultobj
;
256 unsigned char * _arg2
;
257 PyObject
* _argo2
= 0;
258 char *_kwnames
[] = { "width","height","data", NULL
};
262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiO:wxImageFromData",_kwnames
,&_arg0
,&_arg1
,&_argo2
))
265 if (_argo2
== Py_None
) { _arg2
= NULL
; }
266 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_unsigned_char_p")) {
267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageFromData. Expected _unsigned_char_p.");
272 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
273 _result
= (wxImage
*)wxImageFromData(_arg0
,_arg1
,_arg2
);
275 wxPyEndAllowThreads(__tstate
);
276 if (PyErr_Occurred()) return NULL
;
278 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
279 _resultobj
= Py_BuildValue("s",_ptemp
);
282 _resultobj
= Py_None
;
287 static PyObject
*_wrap_wxImageFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
288 PyObject
* _resultobj
;
290 wxInputStream
* _arg0
;
291 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
292 int _arg2
= (int ) -1;
293 wxPyInputStream
* temp
;
295 PyObject
* _obj0
= 0;
296 char *_kwnames
[] = { "stream","type","index", NULL
};
300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|li:wxImageFromStream",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
303 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
304 _arg0
= temp
->m_wxis
;
307 _arg0
= wxPyCBInputStream::create(_obj0
, FALSE
);
309 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
316 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
317 _result
= (wxImage
*)wxImageFromStream(*_arg0
,_arg1
,_arg2
);
319 wxPyEndAllowThreads(__tstate
);
320 if (PyErr_Occurred()) return NULL
;
322 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
323 _resultobj
= Py_BuildValue("s",_ptemp
);
326 _resultobj
= Py_None
;
335 static PyObject
*_wrap_wxImageFromStreamMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
336 PyObject
* _resultobj
;
338 wxInputStream
* _arg0
;
340 int _arg2
= (int ) -1;
341 wxPyInputStream
* temp
;
343 PyObject
* _obj0
= 0;
344 PyObject
* _obj1
= 0;
345 char *_kwnames
[] = { "stream","mimetype","index", NULL
};
349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxImageFromStreamMime",_kwnames
,&_obj0
,&_obj1
,&_arg2
))
352 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
353 _arg0
= temp
->m_wxis
;
356 _arg0
= wxPyCBInputStream::create(_obj0
, FALSE
);
358 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
365 _arg1
= wxString_in_helper(_obj1
);
370 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
371 _result
= (wxImage
*)wxImageFromStreamMime(*_arg0
,*_arg1
,_arg2
);
373 wxPyEndAllowThreads(__tstate
);
374 if (PyErr_Occurred()) return NULL
;
376 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
377 _resultobj
= Py_BuildValue("s",_ptemp
);
380 _resultobj
= Py_None
;
393 static PyObject
*_wrap_wxInitAllImageHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
394 PyObject
* _resultobj
;
395 char *_kwnames
[] = { NULL
};
398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxInitAllImageHandlers",_kwnames
))
401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
402 wxInitAllImageHandlers();
404 wxPyEndAllowThreads(__tstate
);
405 if (PyErr_Occurred()) return NULL
;
406 } Py_INCREF(Py_None
);
407 _resultobj
= Py_None
;
411 static int _wrap_wxNullImage_set(PyObject
*val
) {
413 PyErr_SetString(PyExc_TypeError
,"Variable wxNullImage is read-only.");
417 static PyObject
*_wrap_wxNullImage_get() {
421 SWIG_MakePtr(ptemp
,(char *) &wxNullImage
,"_wxImage_p");
422 pyobj
= PyString_FromString(ptemp
);
426 static PyObject
*_wrap_wxBitmapFromImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
427 PyObject
* _resultobj
;
430 int _arg1
= (int ) -1;
431 PyObject
* _argo0
= 0;
432 char *_kwnames
[] = { "img","depth", NULL
};
436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxBitmapFromImage",_kwnames
,&_argo0
,&_arg1
))
439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromImage. Expected _wxImage_p.");
446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
447 _result
= (wxBitmap
*)wxBitmapFromImage(*_arg0
,_arg1
);
449 wxPyEndAllowThreads(__tstate
);
450 if (PyErr_Occurred()) return NULL
;
452 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
453 _resultobj
= Py_BuildValue("s",_ptemp
);
456 _resultobj
= Py_None
;
461 static void *SwigwxImageHandlerTowxObject(void *ptr
) {
464 src
= (wxImageHandler
*) ptr
;
465 dest
= (wxObject
*) src
;
466 return (void *) dest
;
469 #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
470 static PyObject
*_wrap_wxImageHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
471 PyObject
* _resultobj
;
473 wxImageHandler
* _arg0
;
474 PyObject
* _argo0
= 0;
475 char *_kwnames
[] = { "self", NULL
};
478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetName",_kwnames
,&_argo0
))
481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
489 _result
= new wxString (wxImageHandler_GetName(_arg0
));
491 wxPyEndAllowThreads(__tstate
);
492 if (PyErr_Occurred()) return NULL
;
495 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
497 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
506 #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
507 static PyObject
*_wrap_wxImageHandler_GetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
508 PyObject
* _resultobj
;
510 wxImageHandler
* _arg0
;
511 PyObject
* _argo0
= 0;
512 char *_kwnames
[] = { "self", NULL
};
515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetExtension",_kwnames
,&_argo0
))
518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
526 _result
= new wxString (wxImageHandler_GetExtension(_arg0
));
528 wxPyEndAllowThreads(__tstate
);
529 if (PyErr_Occurred()) return NULL
;
532 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
534 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
543 #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
544 static PyObject
*_wrap_wxImageHandler_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
545 PyObject
* _resultobj
;
547 wxImageHandler
* _arg0
;
548 PyObject
* _argo0
= 0;
549 char *_kwnames
[] = { "self", NULL
};
552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetType",_kwnames
,&_argo0
))
555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
563 _result
= (long )wxImageHandler_GetType(_arg0
);
565 wxPyEndAllowThreads(__tstate
);
566 if (PyErr_Occurred()) return NULL
;
567 } _resultobj
= Py_BuildValue("l",_result
);
571 #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
572 static PyObject
*_wrap_wxImageHandler_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
573 PyObject
* _resultobj
;
575 wxImageHandler
* _arg0
;
576 PyObject
* _argo0
= 0;
577 char *_kwnames
[] = { "self", NULL
};
580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetMimeType",_kwnames
,&_argo0
))
583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
590 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
591 _result
= new wxString (wxImageHandler_GetMimeType(_arg0
));
593 wxPyEndAllowThreads(__tstate
);
594 if (PyErr_Occurred()) return NULL
;
597 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
599 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
608 #define wxImageHandler_CanRead(_swigobj,_swigarg0) (_swigobj->CanRead(_swigarg0))
609 static PyObject
*_wrap_wxImageHandler_CanRead(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
610 PyObject
* _resultobj
;
612 wxImageHandler
* _arg0
;
614 PyObject
* _argo0
= 0;
615 PyObject
* _obj1
= 0;
616 char *_kwnames
[] = { "self","name", NULL
};
619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_CanRead",_kwnames
,&_argo0
,&_obj1
))
622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_CanRead. Expected _wxImageHandler_p.");
629 _arg1
= wxString_in_helper(_obj1
);
634 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
635 _result
= (bool )wxImageHandler_CanRead(_arg0
,*_arg1
);
637 wxPyEndAllowThreads(__tstate
);
638 if (PyErr_Occurred()) return NULL
;
639 } _resultobj
= Py_BuildValue("i",_result
);
647 #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
648 static PyObject
*_wrap_wxImageHandler_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
649 PyObject
* _resultobj
;
650 wxImageHandler
* _arg0
;
652 PyObject
* _argo0
= 0;
653 PyObject
* _obj1
= 0;
654 char *_kwnames
[] = { "self","name", NULL
};
657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetName",_kwnames
,&_argo0
,&_obj1
))
660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
667 _arg1
= wxString_in_helper(_obj1
);
672 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
673 wxImageHandler_SetName(_arg0
,*_arg1
);
675 wxPyEndAllowThreads(__tstate
);
676 if (PyErr_Occurred()) return NULL
;
677 } Py_INCREF(Py_None
);
678 _resultobj
= Py_None
;
686 #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
687 static PyObject
*_wrap_wxImageHandler_SetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
688 PyObject
* _resultobj
;
689 wxImageHandler
* _arg0
;
691 PyObject
* _argo0
= 0;
692 PyObject
* _obj1
= 0;
693 char *_kwnames
[] = { "self","extension", NULL
};
696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetExtension",_kwnames
,&_argo0
,&_obj1
))
699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
706 _arg1
= wxString_in_helper(_obj1
);
711 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
712 wxImageHandler_SetExtension(_arg0
,*_arg1
);
714 wxPyEndAllowThreads(__tstate
);
715 if (PyErr_Occurred()) return NULL
;
716 } Py_INCREF(Py_None
);
717 _resultobj
= Py_None
;
725 #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
726 static PyObject
*_wrap_wxImageHandler_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
727 PyObject
* _resultobj
;
728 wxImageHandler
* _arg0
;
730 PyObject
* _argo0
= 0;
731 char *_kwnames
[] = { "self","type", NULL
};
734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxImageHandler_SetType",_kwnames
,&_argo0
,&_arg1
))
737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
744 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
745 wxImageHandler_SetType(_arg0
,_arg1
);
747 wxPyEndAllowThreads(__tstate
);
748 if (PyErr_Occurred()) return NULL
;
749 } Py_INCREF(Py_None
);
750 _resultobj
= Py_None
;
754 #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
755 static PyObject
*_wrap_wxImageHandler_SetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
756 PyObject
* _resultobj
;
757 wxImageHandler
* _arg0
;
759 PyObject
* _argo0
= 0;
760 PyObject
* _obj1
= 0;
761 char *_kwnames
[] = { "self","mimetype", NULL
};
764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetMimeType",_kwnames
,&_argo0
,&_obj1
))
767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
774 _arg1
= wxString_in_helper(_obj1
);
779 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
780 wxImageHandler_SetMimeType(_arg0
,*_arg1
);
782 wxPyEndAllowThreads(__tstate
);
783 if (PyErr_Occurred()) return NULL
;
784 } Py_INCREF(Py_None
);
785 _resultobj
= Py_None
;
793 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr
) {
795 wxImageHandler
*dest
;
796 src
= (wxPNGHandler
*) ptr
;
797 dest
= (wxImageHandler
*) src
;
798 return (void *) dest
;
801 static void *SwigwxPNGHandlerTowxObject(void *ptr
) {
804 src
= (wxPNGHandler
*) ptr
;
805 dest
= (wxObject
*) src
;
806 return (void *) dest
;
809 #define new_wxPNGHandler() (new wxPNGHandler())
810 static PyObject
*_wrap_new_wxPNGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
811 PyObject
* _resultobj
;
812 wxPNGHandler
* _result
;
813 char *_kwnames
[] = { NULL
};
817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNGHandler",_kwnames
))
820 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
821 _result
= (wxPNGHandler
*)new_wxPNGHandler();
823 wxPyEndAllowThreads(__tstate
);
824 if (PyErr_Occurred()) return NULL
;
826 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNGHandler_p");
827 _resultobj
= Py_BuildValue("s",_ptemp
);
830 _resultobj
= Py_None
;
835 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr
) {
837 wxImageHandler
*dest
;
838 src
= (wxJPEGHandler
*) ptr
;
839 dest
= (wxImageHandler
*) src
;
840 return (void *) dest
;
843 static void *SwigwxJPEGHandlerTowxObject(void *ptr
) {
846 src
= (wxJPEGHandler
*) ptr
;
847 dest
= (wxObject
*) src
;
848 return (void *) dest
;
851 #define new_wxJPEGHandler() (new wxJPEGHandler())
852 static PyObject
*_wrap_new_wxJPEGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
853 PyObject
* _resultobj
;
854 wxJPEGHandler
* _result
;
855 char *_kwnames
[] = { NULL
};
859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxJPEGHandler",_kwnames
))
862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
863 _result
= (wxJPEGHandler
*)new_wxJPEGHandler();
865 wxPyEndAllowThreads(__tstate
);
866 if (PyErr_Occurred()) return NULL
;
868 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxJPEGHandler_p");
869 _resultobj
= Py_BuildValue("s",_ptemp
);
872 _resultobj
= Py_None
;
877 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr
) {
879 wxImageHandler
*dest
;
880 src
= (wxBMPHandler
*) ptr
;
881 dest
= (wxImageHandler
*) src
;
882 return (void *) dest
;
885 static void *SwigwxBMPHandlerTowxObject(void *ptr
) {
888 src
= (wxBMPHandler
*) ptr
;
889 dest
= (wxObject
*) src
;
890 return (void *) dest
;
893 #define new_wxBMPHandler() (new wxBMPHandler())
894 static PyObject
*_wrap_new_wxBMPHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
895 PyObject
* _resultobj
;
896 wxBMPHandler
* _result
;
897 char *_kwnames
[] = { NULL
};
901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxBMPHandler",_kwnames
))
904 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
905 _result
= (wxBMPHandler
*)new_wxBMPHandler();
907 wxPyEndAllowThreads(__tstate
);
908 if (PyErr_Occurred()) return NULL
;
910 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBMPHandler_p");
911 _resultobj
= Py_BuildValue("s",_ptemp
);
914 _resultobj
= Py_None
;
919 static void *SwigwxICOHandlerTowxBMPHandler(void *ptr
) {
922 src
= (wxICOHandler
*) ptr
;
923 dest
= (wxBMPHandler
*) src
;
924 return (void *) dest
;
927 static void *SwigwxICOHandlerTowxImageHandler(void *ptr
) {
929 wxImageHandler
*dest
;
930 src
= (wxICOHandler
*) ptr
;
931 dest
= (wxImageHandler
*) src
;
932 return (void *) dest
;
935 static void *SwigwxICOHandlerTowxObject(void *ptr
) {
938 src
= (wxICOHandler
*) ptr
;
939 dest
= (wxObject
*) src
;
940 return (void *) dest
;
943 #define new_wxICOHandler() (new wxICOHandler())
944 static PyObject
*_wrap_new_wxICOHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
945 PyObject
* _resultobj
;
946 wxICOHandler
* _result
;
947 char *_kwnames
[] = { NULL
};
951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxICOHandler",_kwnames
))
954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
955 _result
= (wxICOHandler
*)new_wxICOHandler();
957 wxPyEndAllowThreads(__tstate
);
958 if (PyErr_Occurred()) return NULL
;
960 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxICOHandler_p");
961 _resultobj
= Py_BuildValue("s",_ptemp
);
964 _resultobj
= Py_None
;
969 static void *SwigwxCURHandlerTowxICOHandler(void *ptr
) {
972 src
= (wxCURHandler
*) ptr
;
973 dest
= (wxICOHandler
*) src
;
974 return (void *) dest
;
977 static void *SwigwxCURHandlerTowxBMPHandler(void *ptr
) {
980 src
= (wxCURHandler
*) ptr
;
981 dest
= (wxBMPHandler
*) src
;
982 return (void *) dest
;
985 static void *SwigwxCURHandlerTowxImageHandler(void *ptr
) {
987 wxImageHandler
*dest
;
988 src
= (wxCURHandler
*) ptr
;
989 dest
= (wxImageHandler
*) src
;
990 return (void *) dest
;
993 static void *SwigwxCURHandlerTowxObject(void *ptr
) {
996 src
= (wxCURHandler
*) ptr
;
997 dest
= (wxObject
*) src
;
998 return (void *) dest
;
1001 #define new_wxCURHandler() (new wxCURHandler())
1002 static PyObject
*_wrap_new_wxCURHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1003 PyObject
* _resultobj
;
1004 wxCURHandler
* _result
;
1005 char *_kwnames
[] = { NULL
};
1009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxCURHandler",_kwnames
))
1012 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1013 _result
= (wxCURHandler
*)new_wxCURHandler();
1015 wxPyEndAllowThreads(__tstate
);
1016 if (PyErr_Occurred()) return NULL
;
1018 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCURHandler_p");
1019 _resultobj
= Py_BuildValue("s",_ptemp
);
1022 _resultobj
= Py_None
;
1027 static void *SwigwxANIHandlerTowxCURHandler(void *ptr
) {
1030 src
= (wxANIHandler
*) ptr
;
1031 dest
= (wxCURHandler
*) src
;
1032 return (void *) dest
;
1035 static void *SwigwxANIHandlerTowxICOHandler(void *ptr
) {
1038 src
= (wxANIHandler
*) ptr
;
1039 dest
= (wxICOHandler
*) src
;
1040 return (void *) dest
;
1043 static void *SwigwxANIHandlerTowxBMPHandler(void *ptr
) {
1046 src
= (wxANIHandler
*) ptr
;
1047 dest
= (wxBMPHandler
*) src
;
1048 return (void *) dest
;
1051 static void *SwigwxANIHandlerTowxImageHandler(void *ptr
) {
1053 wxImageHandler
*dest
;
1054 src
= (wxANIHandler
*) ptr
;
1055 dest
= (wxImageHandler
*) src
;
1056 return (void *) dest
;
1059 static void *SwigwxANIHandlerTowxObject(void *ptr
) {
1062 src
= (wxANIHandler
*) ptr
;
1063 dest
= (wxObject
*) src
;
1064 return (void *) dest
;
1067 #define new_wxANIHandler() (new wxANIHandler())
1068 static PyObject
*_wrap_new_wxANIHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1069 PyObject
* _resultobj
;
1070 wxANIHandler
* _result
;
1071 char *_kwnames
[] = { NULL
};
1075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxANIHandler",_kwnames
))
1078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1079 _result
= (wxANIHandler
*)new_wxANIHandler();
1081 wxPyEndAllowThreads(__tstate
);
1082 if (PyErr_Occurred()) return NULL
;
1084 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxANIHandler_p");
1085 _resultobj
= Py_BuildValue("s",_ptemp
);
1088 _resultobj
= Py_None
;
1093 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr
) {
1095 wxImageHandler
*dest
;
1096 src
= (wxGIFHandler
*) ptr
;
1097 dest
= (wxImageHandler
*) src
;
1098 return (void *) dest
;
1101 static void *SwigwxGIFHandlerTowxObject(void *ptr
) {
1104 src
= (wxGIFHandler
*) ptr
;
1105 dest
= (wxObject
*) src
;
1106 return (void *) dest
;
1109 #define new_wxGIFHandler() (new wxGIFHandler())
1110 static PyObject
*_wrap_new_wxGIFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1111 PyObject
* _resultobj
;
1112 wxGIFHandler
* _result
;
1113 char *_kwnames
[] = { NULL
};
1117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGIFHandler",_kwnames
))
1120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1121 _result
= (wxGIFHandler
*)new_wxGIFHandler();
1123 wxPyEndAllowThreads(__tstate
);
1124 if (PyErr_Occurred()) return NULL
;
1126 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGIFHandler_p");
1127 _resultobj
= Py_BuildValue("s",_ptemp
);
1130 _resultobj
= Py_None
;
1135 static void *SwigwxPNMHandlerTowxImageHandler(void *ptr
) {
1137 wxImageHandler
*dest
;
1138 src
= (wxPNMHandler
*) ptr
;
1139 dest
= (wxImageHandler
*) src
;
1140 return (void *) dest
;
1143 static void *SwigwxPNMHandlerTowxObject(void *ptr
) {
1146 src
= (wxPNMHandler
*) ptr
;
1147 dest
= (wxObject
*) src
;
1148 return (void *) dest
;
1151 #define new_wxPNMHandler() (new wxPNMHandler())
1152 static PyObject
*_wrap_new_wxPNMHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1153 PyObject
* _resultobj
;
1154 wxPNMHandler
* _result
;
1155 char *_kwnames
[] = { NULL
};
1159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNMHandler",_kwnames
))
1162 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1163 _result
= (wxPNMHandler
*)new_wxPNMHandler();
1165 wxPyEndAllowThreads(__tstate
);
1166 if (PyErr_Occurred()) return NULL
;
1168 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNMHandler_p");
1169 _resultobj
= Py_BuildValue("s",_ptemp
);
1172 _resultobj
= Py_None
;
1177 static void *SwigwxPCXHandlerTowxImageHandler(void *ptr
) {
1179 wxImageHandler
*dest
;
1180 src
= (wxPCXHandler
*) ptr
;
1181 dest
= (wxImageHandler
*) src
;
1182 return (void *) dest
;
1185 static void *SwigwxPCXHandlerTowxObject(void *ptr
) {
1188 src
= (wxPCXHandler
*) ptr
;
1189 dest
= (wxObject
*) src
;
1190 return (void *) dest
;
1193 #define new_wxPCXHandler() (new wxPCXHandler())
1194 static PyObject
*_wrap_new_wxPCXHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1195 PyObject
* _resultobj
;
1196 wxPCXHandler
* _result
;
1197 char *_kwnames
[] = { NULL
};
1201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPCXHandler",_kwnames
))
1204 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1205 _result
= (wxPCXHandler
*)new_wxPCXHandler();
1207 wxPyEndAllowThreads(__tstate
);
1208 if (PyErr_Occurred()) return NULL
;
1210 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPCXHandler_p");
1211 _resultobj
= Py_BuildValue("s",_ptemp
);
1214 _resultobj
= Py_None
;
1219 static void *SwigwxTIFFHandlerTowxImageHandler(void *ptr
) {
1221 wxImageHandler
*dest
;
1222 src
= (wxTIFFHandler
*) ptr
;
1223 dest
= (wxImageHandler
*) src
;
1224 return (void *) dest
;
1227 static void *SwigwxTIFFHandlerTowxObject(void *ptr
) {
1230 src
= (wxTIFFHandler
*) ptr
;
1231 dest
= (wxObject
*) src
;
1232 return (void *) dest
;
1235 #define new_wxTIFFHandler() (new wxTIFFHandler())
1236 static PyObject
*_wrap_new_wxTIFFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1237 PyObject
* _resultobj
;
1238 wxTIFFHandler
* _result
;
1239 char *_kwnames
[] = { NULL
};
1243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTIFFHandler",_kwnames
))
1246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1247 _result
= (wxTIFFHandler
*)new_wxTIFFHandler();
1249 wxPyEndAllowThreads(__tstate
);
1250 if (PyErr_Occurred()) return NULL
;
1252 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTIFFHandler_p");
1253 _resultobj
= Py_BuildValue("s",_ptemp
);
1256 _resultobj
= Py_None
;
1261 static void *SwigwxImageTowxObject(void *ptr
) {
1264 src
= (wxImage
*) ptr
;
1265 dest
= (wxObject
*) src
;
1266 return (void *) dest
;
1269 #define new_wxImage(_swigarg0,_swigarg1,_swigarg2) (new wxImage(_swigarg0,_swigarg1,_swigarg2))
1270 static PyObject
*_wrap_new_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1271 PyObject
* _resultobj
;
1274 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
1275 int _arg2
= (int ) -1;
1276 PyObject
* _obj0
= 0;
1277 char *_kwnames
[] = { "name","type","index", NULL
};
1281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|li:new_wxImage",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
1284 _arg0
= wxString_in_helper(_obj0
);
1289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1290 _result
= (wxImage
*)new_wxImage(*_arg0
,_arg1
,_arg2
);
1292 wxPyEndAllowThreads(__tstate
);
1293 if (PyErr_Occurred()) return NULL
;
1295 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
1296 _resultobj
= Py_BuildValue("s",_ptemp
);
1299 _resultobj
= Py_None
;
1308 #define delete_wxImage(_swigobj) (delete _swigobj)
1309 static PyObject
*_wrap_delete_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1310 PyObject
* _resultobj
;
1312 PyObject
* _argo0
= 0;
1313 char *_kwnames
[] = { "self", NULL
};
1316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImage",_kwnames
,&_argo0
))
1319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
1326 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1327 delete_wxImage(_arg0
);
1329 wxPyEndAllowThreads(__tstate
);
1330 if (PyErr_Occurred()) return NULL
;
1331 } Py_INCREF(Py_None
);
1332 _resultobj
= Py_None
;
1336 #define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
1337 static PyObject
*_wrap_wxImage_ConvertToBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1338 PyObject
* _resultobj
;
1341 PyObject
* _argo0
= 0;
1342 char *_kwnames
[] = { "self", NULL
};
1346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_ConvertToBitmap",_kwnames
,&_argo0
))
1349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
1356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1357 _result
= new wxBitmap (wxImage_ConvertToBitmap(_arg0
));
1359 wxPyEndAllowThreads(__tstate
);
1360 if (PyErr_Occurred()) return NULL
;
1361 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1362 _resultobj
= Py_BuildValue("s",_ptemp
);
1366 #define wxImage_ConvertToMonoBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ConvertToMonoBitmap(_swigarg0,_swigarg1,_swigarg2))
1367 static PyObject
*_wrap_wxImage_ConvertToMonoBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1368 PyObject
* _resultobj
;
1371 unsigned char _arg1
;
1372 unsigned char _arg2
;
1373 unsigned char _arg3
;
1374 PyObject
* _argo0
= 0;
1375 char *_kwnames
[] = { "self","red","green","blue", NULL
};
1379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_ConvertToMonoBitmap",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToMonoBitmap. Expected _wxImage_p.");
1389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1390 _result
= new wxBitmap (wxImage_ConvertToMonoBitmap(_arg0
,_arg1
,_arg2
,_arg3
));
1392 wxPyEndAllowThreads(__tstate
);
1393 if (PyErr_Occurred()) return NULL
;
1394 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1395 _resultobj
= Py_BuildValue("s",_ptemp
);
1399 #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
1400 static PyObject
*_wrap_wxImage_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1401 PyObject
* _resultobj
;
1405 PyObject
* _argo0
= 0;
1406 char *_kwnames
[] = { "self","width","height", NULL
};
1409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Create",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
1419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1420 wxImage_Create(_arg0
,_arg1
,_arg2
);
1422 wxPyEndAllowThreads(__tstate
);
1423 if (PyErr_Occurred()) return NULL
;
1424 } Py_INCREF(Py_None
);
1425 _resultobj
= Py_None
;
1429 #define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
1430 static PyObject
*_wrap_wxImage_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1431 PyObject
* _resultobj
;
1433 PyObject
* _argo0
= 0;
1434 char *_kwnames
[] = { "self", NULL
};
1437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Destroy",_kwnames
,&_argo0
))
1440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
1447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1448 wxImage_Destroy(_arg0
);
1450 wxPyEndAllowThreads(__tstate
);
1451 if (PyErr_Occurred()) return NULL
;
1452 } Py_INCREF(Py_None
);
1453 _resultobj
= Py_None
;
1457 #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
1458 static PyObject
*_wrap_wxImage_Scale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1459 PyObject
* _resultobj
;
1464 PyObject
* _argo0
= 0;
1465 char *_kwnames
[] = { "self","width","height", NULL
};
1469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Scale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
1479 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1480 _result
= new wxImage (wxImage_Scale(_arg0
,_arg1
,_arg2
));
1482 wxPyEndAllowThreads(__tstate
);
1483 if (PyErr_Occurred()) return NULL
;
1484 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1485 _resultobj
= Py_BuildValue("s",_ptemp
);
1489 #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
1490 static PyObject
*_wrap_wxImage_Rescale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1491 PyObject
* _resultobj
;
1496 PyObject
* _argo0
= 0;
1497 char *_kwnames
[] = { "self","width","height", NULL
};
1501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Rescale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1504 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1505 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1506 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
1511 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1512 wxImage
& _result_ref
= wxImage_Rescale(_arg0
,_arg1
,_arg2
);
1513 _result
= (wxImage
*) &_result_ref
;
1515 wxPyEndAllowThreads(__tstate
);
1516 if (PyErr_Occurred()) return NULL
;
1518 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
1519 _resultobj
= Py_BuildValue("s",_ptemp
);
1522 _resultobj
= Py_None
;
1527 #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1528 static PyObject
*_wrap_wxImage_SetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1529 PyObject
* _resultobj
;
1533 unsigned char _arg3
;
1534 unsigned char _arg4
;
1535 unsigned char _arg5
;
1536 PyObject
* _argo0
= 0;
1537 char *_kwnames
[] = { "self","x","y","r","g","b", NULL
};
1540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiibbb:wxImage_SetRGB",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
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_SetRGB. Expected _wxImage_p.");
1550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1551 wxImage_SetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
1553 wxPyEndAllowThreads(__tstate
);
1554 if (PyErr_Occurred()) return NULL
;
1555 } Py_INCREF(Py_None
);
1556 _resultobj
= Py_None
;
1560 #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
1561 static PyObject
*_wrap_wxImage_GetRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1562 PyObject
* _resultobj
;
1563 unsigned char _result
;
1567 PyObject
* _argo0
= 0;
1568 char *_kwnames
[] = { "self","x","y", NULL
};
1571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetRed",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
1581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1582 _result
= (unsigned char )wxImage_GetRed(_arg0
,_arg1
,_arg2
);
1584 wxPyEndAllowThreads(__tstate
);
1585 if (PyErr_Occurred()) return NULL
;
1586 } _resultobj
= Py_BuildValue("b",_result
);
1590 #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
1591 static PyObject
*_wrap_wxImage_GetGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1592 PyObject
* _resultobj
;
1593 unsigned char _result
;
1597 PyObject
* _argo0
= 0;
1598 char *_kwnames
[] = { "self","x","y", NULL
};
1601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetGreen",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1604 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1605 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1606 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1612 _result
= (unsigned char )wxImage_GetGreen(_arg0
,_arg1
,_arg2
);
1614 wxPyEndAllowThreads(__tstate
);
1615 if (PyErr_Occurred()) return NULL
;
1616 } _resultobj
= Py_BuildValue("b",_result
);
1620 #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
1621 static PyObject
*_wrap_wxImage_GetBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1622 PyObject
* _resultobj
;
1623 unsigned char _result
;
1627 PyObject
* _argo0
= 0;
1628 char *_kwnames
[] = { "self","x","y", NULL
};
1631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetBlue",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1641 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1642 _result
= (unsigned char )wxImage_GetBlue(_arg0
,_arg1
,_arg2
);
1644 wxPyEndAllowThreads(__tstate
);
1645 if (PyErr_Occurred()) return NULL
;
1646 } _resultobj
= Py_BuildValue("b",_result
);
1650 static PyObject
*_wrap_wxImage_CanRead(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1651 PyObject
* _resultobj
;
1654 PyObject
* _obj0
= 0;
1655 char *_kwnames
[] = { "name", NULL
};
1658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_CanRead",_kwnames
,&_obj0
))
1661 _arg0
= wxString_in_helper(_obj0
);
1666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1667 _result
= (bool )wxImage::CanRead(*_arg0
);
1669 wxPyEndAllowThreads(__tstate
);
1670 if (PyErr_Occurred()) return NULL
;
1671 } _resultobj
= Py_BuildValue("i",_result
);
1679 static PyObject
*_wrap_wxImage_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1680 PyObject
* _resultobj
;
1683 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
1684 PyObject
* _obj0
= 0;
1685 char *_kwnames
[] = { "name","type", NULL
};
1688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:wxImage_GetImageCount",_kwnames
,&_obj0
,&_arg1
))
1691 _arg0
= wxString_in_helper(_obj0
);
1696 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1697 _result
= (int )wxImage::GetImageCount(*_arg0
,_arg1
);
1699 wxPyEndAllowThreads(__tstate
);
1700 if (PyErr_Occurred()) return NULL
;
1701 } _resultobj
= Py_BuildValue("i",_result
);
1709 #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
1710 static PyObject
*_wrap_wxImage_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1711 PyObject
* _resultobj
;
1715 long _arg2
= (long ) wxBITMAP_TYPE_ANY
;
1716 int _arg3
= (int ) -1;
1717 PyObject
* _argo0
= 0;
1718 PyObject
* _obj1
= 0;
1719 char *_kwnames
[] = { "self","name","type","index", NULL
};
1722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|li:wxImage_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
1725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1732 _arg1
= wxString_in_helper(_obj1
);
1737 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1738 _result
= (bool )wxImage_LoadFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1740 wxPyEndAllowThreads(__tstate
);
1741 if (PyErr_Occurred()) return NULL
;
1742 } _resultobj
= Py_BuildValue("i",_result
);
1750 #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
1751 static PyObject
*_wrap_wxImage_LoadMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1752 PyObject
* _resultobj
;
1757 int _arg3
= (int ) -1;
1758 PyObject
* _argo0
= 0;
1759 PyObject
* _obj1
= 0;
1760 PyObject
* _obj2
= 0;
1761 char *_kwnames
[] = { "self","name","mimetype","index", NULL
};
1764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxImage_LoadMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
1767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1774 _arg1
= wxString_in_helper(_obj1
);
1779 _arg2
= wxString_in_helper(_obj2
);
1784 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1785 _result
= (bool )wxImage_LoadMimeFile(_arg0
,*_arg1
,*_arg2
,_arg3
);
1787 wxPyEndAllowThreads(__tstate
);
1788 if (PyErr_Occurred()) return NULL
;
1789 } _resultobj
= Py_BuildValue("i",_result
);
1801 #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1802 static PyObject
*_wrap_wxImage_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1803 PyObject
* _resultobj
;
1808 PyObject
* _argo0
= 0;
1809 PyObject
* _obj1
= 0;
1810 char *_kwnames
[] = { "self","name","type", NULL
};
1813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1816 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1817 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1823 _arg1
= wxString_in_helper(_obj1
);
1828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1829 _result
= (bool )wxImage_SaveFile(_arg0
,*_arg1
,_arg2
);
1831 wxPyEndAllowThreads(__tstate
);
1832 if (PyErr_Occurred()) return NULL
;
1833 } _resultobj
= Py_BuildValue("i",_result
);
1841 #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1842 static PyObject
*_wrap_wxImage_SaveMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1843 PyObject
* _resultobj
;
1848 PyObject
* _argo0
= 0;
1849 PyObject
* _obj1
= 0;
1850 PyObject
* _obj2
= 0;
1851 char *_kwnames
[] = { "self","name","mimetype", NULL
};
1854 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SaveMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1857 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1858 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1859 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1864 _arg1
= wxString_in_helper(_obj1
);
1869 _arg2
= wxString_in_helper(_obj2
);
1874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1875 _result
= (bool )wxImage_SaveMimeFile(_arg0
,*_arg1
,*_arg2
);
1877 wxPyEndAllowThreads(__tstate
);
1878 if (PyErr_Occurred()) return NULL
;
1879 } _resultobj
= Py_BuildValue("i",_result
);
1891 static PyObject
*_wrap_wxImage_CanReadStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1892 PyObject
* _resultobj
;
1894 wxInputStream
* _arg0
;
1895 wxPyInputStream
* temp
;
1897 PyObject
* _obj0
= 0;
1898 char *_kwnames
[] = { "stream", NULL
};
1901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_CanReadStream",_kwnames
,&_obj0
))
1904 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
1905 _arg0
= temp
->m_wxis
;
1908 _arg0
= wxPyCBInputStream::create(_obj0
, FALSE
);
1909 if (_arg0
== NULL
) {
1910 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
1917 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1918 _result
= (bool )wxImage::CanRead(*_arg0
);
1920 wxPyEndAllowThreads(__tstate
);
1921 if (PyErr_Occurred()) return NULL
;
1922 } _resultobj
= Py_BuildValue("i",_result
);
1930 #define wxImage_LoadStream(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
1931 static PyObject
*_wrap_wxImage_LoadStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1932 PyObject
* _resultobj
;
1935 wxInputStream
* _arg1
;
1936 long _arg2
= (long ) wxBITMAP_TYPE_ANY
;
1937 int _arg3
= (int ) -1;
1938 PyObject
* _argo0
= 0;
1939 wxPyInputStream
* temp
;
1941 PyObject
* _obj1
= 0;
1942 char *_kwnames
[] = { "self","stream","type","index", NULL
};
1945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|li:wxImage_LoadStream",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
1948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadStream. Expected _wxImage_p.");
1955 if (SWIG_GetPtrObj(_obj1
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
1956 _arg1
= temp
->m_wxis
;
1959 _arg1
= wxPyCBInputStream::create(_obj1
, FALSE
);
1960 if (_arg1
== NULL
) {
1961 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
1968 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1969 _result
= (bool )wxImage_LoadStream(_arg0
,*_arg1
,_arg2
,_arg3
);
1971 wxPyEndAllowThreads(__tstate
);
1972 if (PyErr_Occurred()) return NULL
;
1973 } _resultobj
= Py_BuildValue("i",_result
);
1981 #define wxImage_LoadMimeStream(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
1982 static PyObject
*_wrap_wxImage_LoadMimeStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1983 PyObject
* _resultobj
;
1986 wxInputStream
* _arg1
;
1988 int _arg3
= (int ) -1;
1989 PyObject
* _argo0
= 0;
1990 wxPyInputStream
* temp
;
1992 PyObject
* _obj1
= 0;
1993 PyObject
* _obj2
= 0;
1994 char *_kwnames
[] = { "self","stream","mimetype","index", NULL
};
1997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxImage_LoadMimeStream",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
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_LoadMimeStream. Expected _wxImage_p.");
2007 if (SWIG_GetPtrObj(_obj1
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
2008 _arg1
= temp
->m_wxis
;
2011 _arg1
= wxPyCBInputStream::create(_obj1
, FALSE
);
2012 if (_arg1
== NULL
) {
2013 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
2020 _arg2
= wxString_in_helper(_obj2
);
2025 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2026 _result
= (bool )wxImage_LoadMimeStream(_arg0
,*_arg1
,*_arg2
,_arg3
);
2028 wxPyEndAllowThreads(__tstate
);
2029 if (PyErr_Occurred()) return NULL
;
2030 } _resultobj
= Py_BuildValue("i",_result
);
2042 #define wxImage_Ok(_swigobj) (_swigobj->Ok())
2043 static PyObject
*_wrap_wxImage_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2044 PyObject
* _resultobj
;
2047 PyObject
* _argo0
= 0;
2048 char *_kwnames
[] = { "self", NULL
};
2051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Ok",_kwnames
,&_argo0
))
2054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
2061 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2062 _result
= (bool )wxImage_Ok(_arg0
);
2064 wxPyEndAllowThreads(__tstate
);
2065 if (PyErr_Occurred()) return NULL
;
2066 } _resultobj
= Py_BuildValue("i",_result
);
2070 #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
2071 static PyObject
*_wrap_wxImage_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2072 PyObject
* _resultobj
;
2075 PyObject
* _argo0
= 0;
2076 char *_kwnames
[] = { "self", NULL
};
2079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetWidth",_kwnames
,&_argo0
))
2082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
2089 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2090 _result
= (int )wxImage_GetWidth(_arg0
);
2092 wxPyEndAllowThreads(__tstate
);
2093 if (PyErr_Occurred()) return NULL
;
2094 } _resultobj
= Py_BuildValue("i",_result
);
2098 #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
2099 static PyObject
*_wrap_wxImage_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2100 PyObject
* _resultobj
;
2103 PyObject
* _argo0
= 0;
2104 char *_kwnames
[] = { "self", NULL
};
2107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetHeight",_kwnames
,&_argo0
))
2110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
2117 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2118 _result
= (int )wxImage_GetHeight(_arg0
);
2120 wxPyEndAllowThreads(__tstate
);
2121 if (PyErr_Occurred()) return NULL
;
2122 } _resultobj
= Py_BuildValue("i",_result
);
2126 #define wxImage_GetSubImage(_swigobj,_swigarg0) (_swigobj->GetSubImage(_swigarg0))
2127 static PyObject
*_wrap_wxImage_GetSubImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2128 PyObject
* _resultobj
;
2132 PyObject
* _argo0
= 0;
2134 PyObject
* _obj1
= 0;
2135 char *_kwnames
[] = { "self","rect", NULL
};
2139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetSubImage",_kwnames
,&_argo0
,&_obj1
))
2142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetSubImage. Expected _wxImage_p.");
2150 if (! wxRect_helper(_obj1
, &_arg1
))
2154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2155 _result
= new wxImage (wxImage_GetSubImage(_arg0
,*_arg1
));
2157 wxPyEndAllowThreads(__tstate
);
2158 if (PyErr_Occurred()) return NULL
;
2159 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2160 _resultobj
= Py_BuildValue("s",_ptemp
);
2164 #define wxImage_Copy(_swigobj) (_swigobj->Copy())
2165 static PyObject
*_wrap_wxImage_Copy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2166 PyObject
* _resultobj
;
2169 PyObject
* _argo0
= 0;
2170 char *_kwnames
[] = { "self", NULL
};
2174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Copy",_kwnames
,&_argo0
))
2177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Copy. Expected _wxImage_p.");
2184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2185 _result
= new wxImage (wxImage_Copy(_arg0
));
2187 wxPyEndAllowThreads(__tstate
);
2188 if (PyErr_Occurred()) return NULL
;
2189 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2190 _resultobj
= Py_BuildValue("s",_ptemp
);
2194 #define wxImage_Paste(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Paste(_swigarg0,_swigarg1,_swigarg2))
2195 static PyObject
*_wrap_wxImage_Paste(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2196 PyObject
* _resultobj
;
2201 PyObject
* _argo0
= 0;
2202 PyObject
* _argo1
= 0;
2203 char *_kwnames
[] = { "self","image","x","y", NULL
};
2206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxImage_Paste",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
2209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Paste. Expected _wxImage_p.");
2216 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2217 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) {
2218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImage_Paste. Expected _wxImage_p.");
2223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2224 wxImage_Paste(_arg0
,*_arg1
,_arg2
,_arg3
);
2226 wxPyEndAllowThreads(__tstate
);
2227 if (PyErr_Occurred()) return NULL
;
2228 } Py_INCREF(Py_None
);
2229 _resultobj
= Py_None
;
2233 static PyObject
* wxImage_GetData(wxImage
*self
) {
2234 unsigned char* data
= self
->GetData();
2235 int len
= self
->GetWidth() * self
->GetHeight() * 3;
2236 return PyString_FromStringAndSize((char*)data
, len
);
2238 static PyObject
*_wrap_wxImage_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2239 PyObject
* _resultobj
;
2242 PyObject
* _argo0
= 0;
2243 char *_kwnames
[] = { "self", NULL
};
2246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetData",_kwnames
,&_argo0
))
2249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
2256 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2257 _result
= (PyObject
*)wxImage_GetData(_arg0
);
2259 wxPyEndAllowThreads(__tstate
);
2260 if (PyErr_Occurred()) return NULL
;
2262 _resultobj
= _result
;
2267 static void wxImage_SetData(wxImage
*self
,PyObject
* data
) {
2268 unsigned char* dataPtr
;
2270 if (! PyString_Check(data
)) {
2271 PyErr_SetString(PyExc_TypeError
, "Expected string object");
2275 size_t len
= self
->GetWidth() * self
->GetHeight() * 3;
2276 dataPtr
= (unsigned char*) malloc(len
);
2277 memcpy(dataPtr
, PyString_AsString(data
), len
);
2278 self
->SetData(dataPtr
);
2280 static PyObject
*_wrap_wxImage_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2281 PyObject
* _resultobj
;
2284 PyObject
* _argo0
= 0;
2285 PyObject
* _obj1
= 0;
2286 char *_kwnames
[] = { "self","data", NULL
};
2289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetData",_kwnames
,&_argo0
,&_obj1
))
2292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
2302 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2303 wxImage_SetData(_arg0
,_arg1
);
2305 wxPyEndAllowThreads(__tstate
);
2306 if (PyErr_Occurred()) return NULL
;
2307 } Py_INCREF(Py_None
);
2308 _resultobj
= Py_None
;
2312 #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
2313 static PyObject
*_wrap_wxImage_SetMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2314 PyObject
* _resultobj
;
2316 unsigned char _arg1
;
2317 unsigned char _arg2
;
2318 unsigned char _arg3
;
2319 PyObject
* _argo0
= 0;
2320 char *_kwnames
[] = { "self","r","g","b", NULL
};
2323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_SetMaskColour",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
2333 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2334 wxImage_SetMaskColour(_arg0
,_arg1
,_arg2
,_arg3
);
2336 wxPyEndAllowThreads(__tstate
);
2337 if (PyErr_Occurred()) return NULL
;
2338 } Py_INCREF(Py_None
);
2339 _resultobj
= Py_None
;
2343 #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
2344 static PyObject
*_wrap_wxImage_GetMaskRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2345 PyObject
* _resultobj
;
2346 unsigned char _result
;
2348 PyObject
* _argo0
= 0;
2349 char *_kwnames
[] = { "self", NULL
};
2352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskRed",_kwnames
,&_argo0
))
2355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
2362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2363 _result
= (unsigned char )wxImage_GetMaskRed(_arg0
);
2365 wxPyEndAllowThreads(__tstate
);
2366 if (PyErr_Occurred()) return NULL
;
2367 } _resultobj
= Py_BuildValue("b",_result
);
2371 #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
2372 static PyObject
*_wrap_wxImage_GetMaskGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2373 PyObject
* _resultobj
;
2374 unsigned char _result
;
2376 PyObject
* _argo0
= 0;
2377 char *_kwnames
[] = { "self", NULL
};
2380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskGreen",_kwnames
,&_argo0
))
2383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
2390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2391 _result
= (unsigned char )wxImage_GetMaskGreen(_arg0
);
2393 wxPyEndAllowThreads(__tstate
);
2394 if (PyErr_Occurred()) return NULL
;
2395 } _resultobj
= Py_BuildValue("b",_result
);
2399 #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
2400 static PyObject
*_wrap_wxImage_GetMaskBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2401 PyObject
* _resultobj
;
2402 unsigned char _result
;
2404 PyObject
* _argo0
= 0;
2405 char *_kwnames
[] = { "self", NULL
};
2408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskBlue",_kwnames
,&_argo0
))
2411 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2412 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
2418 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2419 _result
= (unsigned char )wxImage_GetMaskBlue(_arg0
);
2421 wxPyEndAllowThreads(__tstate
);
2422 if (PyErr_Occurred()) return NULL
;
2423 } _resultobj
= Py_BuildValue("b",_result
);
2427 #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
2428 static PyObject
*_wrap_wxImage_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2429 PyObject
* _resultobj
;
2431 bool _arg1
= (bool ) TRUE
;
2432 PyObject
* _argo0
= 0;
2433 int tempbool1
= (int) TRUE
;
2434 char *_kwnames
[] = { "self","mask", NULL
};
2437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_SetMask",_kwnames
,&_argo0
,&tempbool1
))
2440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
2446 _arg1
= (bool ) tempbool1
;
2448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2449 wxImage_SetMask(_arg0
,_arg1
);
2451 wxPyEndAllowThreads(__tstate
);
2452 if (PyErr_Occurred()) return NULL
;
2453 } Py_INCREF(Py_None
);
2454 _resultobj
= Py_None
;
2458 #define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
2459 static PyObject
*_wrap_wxImage_HasMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2460 PyObject
* _resultobj
;
2463 PyObject
* _argo0
= 0;
2464 char *_kwnames
[] = { "self", NULL
};
2467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_HasMask",_kwnames
,&_argo0
))
2470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
2477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2478 _result
= (bool )wxImage_HasMask(_arg0
);
2480 wxPyEndAllowThreads(__tstate
);
2481 if (PyErr_Occurred()) return NULL
;
2482 } _resultobj
= Py_BuildValue("i",_result
);
2486 #define wxImage_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2487 static PyObject
*_wrap_wxImage_Rotate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2488 PyObject
* _resultobj
;
2493 bool _arg3
= (bool ) TRUE
;
2494 wxPoint
* _arg4
= (wxPoint
*) NULL
;
2495 PyObject
* _argo0
= 0;
2497 PyObject
* _obj2
= 0;
2498 int tempbool3
= (int) TRUE
;
2500 PyObject
* _obj4
= 0;
2501 char *_kwnames
[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL
};
2505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OdO|iO:wxImage_Rotate",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
,&_obj4
))
2508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rotate. Expected _wxImage_p.");
2516 if (! wxPoint_helper(_obj2
, &_arg2
))
2519 _arg3
= (bool ) tempbool3
;
2523 if (! wxPoint_helper(_obj4
, &_arg4
))
2527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2528 _result
= new wxImage (wxImage_Rotate(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
));
2530 wxPyEndAllowThreads(__tstate
);
2531 if (PyErr_Occurred()) return NULL
;
2532 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2533 _resultobj
= Py_BuildValue("s",_ptemp
);
2537 #define wxImage_Rotate90(_swigobj,_swigarg0) (_swigobj->Rotate90(_swigarg0))
2538 static PyObject
*_wrap_wxImage_Rotate90(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2539 PyObject
* _resultobj
;
2542 bool _arg1
= (bool ) TRUE
;
2543 PyObject
* _argo0
= 0;
2544 int tempbool1
= (int) TRUE
;
2545 char *_kwnames
[] = { "self","clockwise", NULL
};
2549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Rotate90",_kwnames
,&_argo0
,&tempbool1
))
2552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rotate90. Expected _wxImage_p.");
2558 _arg1
= (bool ) tempbool1
;
2560 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2561 _result
= new wxImage (wxImage_Rotate90(_arg0
,_arg1
));
2563 wxPyEndAllowThreads(__tstate
);
2564 if (PyErr_Occurred()) return NULL
;
2565 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2566 _resultobj
= Py_BuildValue("s",_ptemp
);
2570 #define wxImage_Mirror(_swigobj,_swigarg0) (_swigobj->Mirror(_swigarg0))
2571 static PyObject
*_wrap_wxImage_Mirror(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2572 PyObject
* _resultobj
;
2575 bool _arg1
= (bool ) TRUE
;
2576 PyObject
* _argo0
= 0;
2577 int tempbool1
= (int) TRUE
;
2578 char *_kwnames
[] = { "self","horizontally", NULL
};
2582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Mirror",_kwnames
,&_argo0
,&tempbool1
))
2585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Mirror. Expected _wxImage_p.");
2591 _arg1
= (bool ) tempbool1
;
2593 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2594 _result
= new wxImage (wxImage_Mirror(_arg0
,_arg1
));
2596 wxPyEndAllowThreads(__tstate
);
2597 if (PyErr_Occurred()) return NULL
;
2598 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2599 _resultobj
= Py_BuildValue("s",_ptemp
);
2603 #define wxImage_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2604 static PyObject
*_wrap_wxImage_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2605 PyObject
* _resultobj
;
2607 unsigned char _arg1
;
2608 unsigned char _arg2
;
2609 unsigned char _arg3
;
2610 unsigned char _arg4
;
2611 unsigned char _arg5
;
2612 unsigned char _arg6
;
2613 PyObject
* _argo0
= 0;
2614 char *_kwnames
[] = { "self","r1","g1","b1","r2","g2","b2", NULL
};
2617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbbbbb:wxImage_Replace",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
2620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Replace. Expected _wxImage_p.");
2627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2628 wxImage_Replace(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2630 wxPyEndAllowThreads(__tstate
);
2631 if (PyErr_Occurred()) return NULL
;
2632 } Py_INCREF(Py_None
);
2633 _resultobj
= Py_None
;
2637 #define wxImage_ConvertToMono(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ConvertToMono(_swigarg0,_swigarg1,_swigarg2))
2638 static PyObject
*_wrap_wxImage_ConvertToMono(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2639 PyObject
* _resultobj
;
2642 unsigned char _arg1
;
2643 unsigned char _arg2
;
2644 unsigned char _arg3
;
2645 PyObject
* _argo0
= 0;
2646 char *_kwnames
[] = { "self","r","g","b", NULL
};
2650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_ConvertToMono",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToMono. Expected _wxImage_p.");
2660 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2661 _result
= new wxImage (wxImage_ConvertToMono(_arg0
,_arg1
,_arg2
,_arg3
));
2663 wxPyEndAllowThreads(__tstate
);
2664 if (PyErr_Occurred()) return NULL
;
2665 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2666 _resultobj
= Py_BuildValue("s",_ptemp
);
2670 #define wxImage_SetOption(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOption(_swigarg0,_swigarg1))
2671 static PyObject
*_wrap_wxImage_SetOption(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2672 PyObject
* _resultobj
;
2676 PyObject
* _argo0
= 0;
2677 PyObject
* _obj1
= 0;
2678 PyObject
* _obj2
= 0;
2679 char *_kwnames
[] = { "self","name","value", NULL
};
2682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SetOption",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetOption. Expected _wxImage_p.");
2692 _arg1
= wxString_in_helper(_obj1
);
2697 _arg2
= wxString_in_helper(_obj2
);
2702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2703 wxImage_SetOption(_arg0
,*_arg1
,*_arg2
);
2705 wxPyEndAllowThreads(__tstate
);
2706 if (PyErr_Occurred()) return NULL
;
2707 } Py_INCREF(Py_None
);
2708 _resultobj
= Py_None
;
2720 #define wxImage_SetOptionInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOption(_swigarg0,_swigarg1))
2721 static PyObject
*_wrap_wxImage_SetOptionInt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2722 PyObject
* _resultobj
;
2726 PyObject
* _argo0
= 0;
2727 PyObject
* _obj1
= 0;
2728 char *_kwnames
[] = { "self","name","value", NULL
};
2731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SetOptionInt",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetOptionInt. Expected _wxImage_p.");
2741 _arg1
= wxString_in_helper(_obj1
);
2746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2747 wxImage_SetOptionInt(_arg0
,*_arg1
,_arg2
);
2749 wxPyEndAllowThreads(__tstate
);
2750 if (PyErr_Occurred()) return NULL
;
2751 } Py_INCREF(Py_None
);
2752 _resultobj
= Py_None
;
2760 #define wxImage_GetOption(_swigobj,_swigarg0) (_swigobj->GetOption(_swigarg0))
2761 static PyObject
*_wrap_wxImage_GetOption(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2762 PyObject
* _resultobj
;
2766 PyObject
* _argo0
= 0;
2767 PyObject
* _obj1
= 0;
2768 char *_kwnames
[] = { "self","name", NULL
};
2771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetOption",_kwnames
,&_argo0
,&_obj1
))
2774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetOption. Expected _wxImage_p.");
2781 _arg1
= wxString_in_helper(_obj1
);
2786 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2787 _result
= new wxString (wxImage_GetOption(_arg0
,*_arg1
));
2789 wxPyEndAllowThreads(__tstate
);
2790 if (PyErr_Occurred()) return NULL
;
2793 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
2795 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2808 #define wxImage_GetOptionInt(_swigobj,_swigarg0) (_swigobj->GetOptionInt(_swigarg0))
2809 static PyObject
*_wrap_wxImage_GetOptionInt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2810 PyObject
* _resultobj
;
2814 PyObject
* _argo0
= 0;
2815 PyObject
* _obj1
= 0;
2816 char *_kwnames
[] = { "self","name", NULL
};
2819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetOptionInt",_kwnames
,&_argo0
,&_obj1
))
2822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetOptionInt. Expected _wxImage_p.");
2829 _arg1
= wxString_in_helper(_obj1
);
2834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2835 _result
= (int )wxImage_GetOptionInt(_arg0
,*_arg1
);
2837 wxPyEndAllowThreads(__tstate
);
2838 if (PyErr_Occurred()) return NULL
;
2839 } _resultobj
= Py_BuildValue("i",_result
);
2847 #define wxImage_HasOption(_swigobj,_swigarg0) (_swigobj->HasOption(_swigarg0))
2848 static PyObject
*_wrap_wxImage_HasOption(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2849 PyObject
* _resultobj
;
2853 PyObject
* _argo0
= 0;
2854 PyObject
* _obj1
= 0;
2855 char *_kwnames
[] = { "self","name", NULL
};
2858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_HasOption",_kwnames
,&_argo0
,&_obj1
))
2861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasOption. Expected _wxImage_p.");
2868 _arg1
= wxString_in_helper(_obj1
);
2873 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2874 _result
= (bool )wxImage_HasOption(_arg0
,*_arg1
);
2876 wxPyEndAllowThreads(__tstate
);
2877 if (PyErr_Occurred()) return NULL
;
2878 } _resultobj
= Py_BuildValue("i",_result
);
2886 #define wxImage_CountColours(_swigobj,_swigarg0) (_swigobj->CountColours(_swigarg0))
2887 static PyObject
*_wrap_wxImage_CountColours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2888 PyObject
* _resultobj
;
2889 unsigned long _result
;
2891 unsigned long _arg1
= (unsigned long ) (unsigned long)-1;
2892 PyObject
* _argo0
= 0;
2893 char *_kwnames
[] = { "self","stopafter", NULL
};
2896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:wxImage_CountColours",_kwnames
,&_argo0
,&_arg1
))
2899 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2900 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2901 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_CountColours. Expected _wxImage_p.");
2906 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2907 _result
= (unsigned long )wxImage_CountColours(_arg0
,_arg1
);
2909 wxPyEndAllowThreads(__tstate
);
2910 if (PyErr_Occurred()) return NULL
;
2911 } _resultobj
= Py_BuildValue("l",_result
);
2915 static PyObject
*_wrap_wxImage_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2916 PyObject
* _resultobj
;
2917 wxImageHandler
* _arg0
;
2918 PyObject
* _argo0
= 0;
2919 char *_kwnames
[] = { "handler", NULL
};
2922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_AddHandler",_kwnames
,&_argo0
))
2925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
2927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
2932 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2933 wxImage::AddHandler(_arg0
);
2935 wxPyEndAllowThreads(__tstate
);
2936 if (PyErr_Occurred()) return NULL
;
2937 } Py_INCREF(Py_None
);
2938 _resultobj
= Py_None
;
2942 static PyObject
*_wrap_wxImage_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2943 PyObject
* _resultobj
;
2944 wxImageHandler
* _arg0
;
2945 PyObject
* _argo0
= 0;
2946 char *_kwnames
[] = { "handler", NULL
};
2949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_InsertHandler",_kwnames
,&_argo0
))
2952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
2954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_InsertHandler. Expected _wxImageHandler_p.");
2959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2960 wxImage::InsertHandler(_arg0
);
2962 wxPyEndAllowThreads(__tstate
);
2963 if (PyErr_Occurred()) return NULL
;
2964 } Py_INCREF(Py_None
);
2965 _resultobj
= Py_None
;
2969 static PyObject
*_wrap_wxImage_RemoveHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2970 PyObject
* _resultobj
;
2973 PyObject
* _obj0
= 0;
2974 char *_kwnames
[] = { "name", NULL
};
2977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_RemoveHandler",_kwnames
,&_obj0
))
2980 _arg0
= wxString_in_helper(_obj0
);
2985 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2986 _result
= (bool )wxImage::RemoveHandler(*_arg0
);
2988 wxPyEndAllowThreads(__tstate
);
2989 if (PyErr_Occurred()) return NULL
;
2990 } _resultobj
= Py_BuildValue("i",_result
);
2998 static PyMethodDef imagecMethods
[] = {
2999 { "wxImage_RemoveHandler", (PyCFunction
) _wrap_wxImage_RemoveHandler
, METH_VARARGS
| METH_KEYWORDS
},
3000 { "wxImage_InsertHandler", (PyCFunction
) _wrap_wxImage_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
3001 { "wxImage_AddHandler", (PyCFunction
) _wrap_wxImage_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
3002 { "wxImage_CountColours", (PyCFunction
) _wrap_wxImage_CountColours
, METH_VARARGS
| METH_KEYWORDS
},
3003 { "wxImage_HasOption", (PyCFunction
) _wrap_wxImage_HasOption
, METH_VARARGS
| METH_KEYWORDS
},
3004 { "wxImage_GetOptionInt", (PyCFunction
) _wrap_wxImage_GetOptionInt
, METH_VARARGS
| METH_KEYWORDS
},
3005 { "wxImage_GetOption", (PyCFunction
) _wrap_wxImage_GetOption
, METH_VARARGS
| METH_KEYWORDS
},
3006 { "wxImage_SetOptionInt", (PyCFunction
) _wrap_wxImage_SetOptionInt
, METH_VARARGS
| METH_KEYWORDS
},
3007 { "wxImage_SetOption", (PyCFunction
) _wrap_wxImage_SetOption
, METH_VARARGS
| METH_KEYWORDS
},
3008 { "wxImage_ConvertToMono", (PyCFunction
) _wrap_wxImage_ConvertToMono
, METH_VARARGS
| METH_KEYWORDS
},
3009 { "wxImage_Replace", (PyCFunction
) _wrap_wxImage_Replace
, METH_VARARGS
| METH_KEYWORDS
},
3010 { "wxImage_Mirror", (PyCFunction
) _wrap_wxImage_Mirror
, METH_VARARGS
| METH_KEYWORDS
},
3011 { "wxImage_Rotate90", (PyCFunction
) _wrap_wxImage_Rotate90
, METH_VARARGS
| METH_KEYWORDS
},
3012 { "wxImage_Rotate", (PyCFunction
) _wrap_wxImage_Rotate
, METH_VARARGS
| METH_KEYWORDS
},
3013 { "wxImage_HasMask", (PyCFunction
) _wrap_wxImage_HasMask
, METH_VARARGS
| METH_KEYWORDS
},
3014 { "wxImage_SetMask", (PyCFunction
) _wrap_wxImage_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
3015 { "wxImage_GetMaskBlue", (PyCFunction
) _wrap_wxImage_GetMaskBlue
, METH_VARARGS
| METH_KEYWORDS
},
3016 { "wxImage_GetMaskGreen", (PyCFunction
) _wrap_wxImage_GetMaskGreen
, METH_VARARGS
| METH_KEYWORDS
},
3017 { "wxImage_GetMaskRed", (PyCFunction
) _wrap_wxImage_GetMaskRed
, METH_VARARGS
| METH_KEYWORDS
},
3018 { "wxImage_SetMaskColour", (PyCFunction
) _wrap_wxImage_SetMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
3019 { "wxImage_SetData", (PyCFunction
) _wrap_wxImage_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3020 { "wxImage_GetData", (PyCFunction
) _wrap_wxImage_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3021 { "wxImage_Paste", (PyCFunction
) _wrap_wxImage_Paste
, METH_VARARGS
| METH_KEYWORDS
},
3022 { "wxImage_Copy", (PyCFunction
) _wrap_wxImage_Copy
, METH_VARARGS
| METH_KEYWORDS
},
3023 { "wxImage_GetSubImage", (PyCFunction
) _wrap_wxImage_GetSubImage
, METH_VARARGS
| METH_KEYWORDS
},
3024 { "wxImage_GetHeight", (PyCFunction
) _wrap_wxImage_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
3025 { "wxImage_GetWidth", (PyCFunction
) _wrap_wxImage_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
3026 { "wxImage_Ok", (PyCFunction
) _wrap_wxImage_Ok
, METH_VARARGS
| METH_KEYWORDS
},
3027 { "wxImage_LoadMimeStream", (PyCFunction
) _wrap_wxImage_LoadMimeStream
, METH_VARARGS
| METH_KEYWORDS
},
3028 { "wxImage_LoadStream", (PyCFunction
) _wrap_wxImage_LoadStream
, METH_VARARGS
| METH_KEYWORDS
},
3029 { "wxImage_CanReadStream", (PyCFunction
) _wrap_wxImage_CanReadStream
, METH_VARARGS
| METH_KEYWORDS
},
3030 { "wxImage_SaveMimeFile", (PyCFunction
) _wrap_wxImage_SaveMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
3031 { "wxImage_SaveFile", (PyCFunction
) _wrap_wxImage_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
3032 { "wxImage_LoadMimeFile", (PyCFunction
) _wrap_wxImage_LoadMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
3033 { "wxImage_LoadFile", (PyCFunction
) _wrap_wxImage_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
3034 { "wxImage_GetImageCount", (PyCFunction
) _wrap_wxImage_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
3035 { "wxImage_CanRead", (PyCFunction
) _wrap_wxImage_CanRead
, METH_VARARGS
| METH_KEYWORDS
},
3036 { "wxImage_GetBlue", (PyCFunction
) _wrap_wxImage_GetBlue
, METH_VARARGS
| METH_KEYWORDS
},
3037 { "wxImage_GetGreen", (PyCFunction
) _wrap_wxImage_GetGreen
, METH_VARARGS
| METH_KEYWORDS
},
3038 { "wxImage_GetRed", (PyCFunction
) _wrap_wxImage_GetRed
, METH_VARARGS
| METH_KEYWORDS
},
3039 { "wxImage_SetRGB", (PyCFunction
) _wrap_wxImage_SetRGB
, METH_VARARGS
| METH_KEYWORDS
},
3040 { "wxImage_Rescale", (PyCFunction
) _wrap_wxImage_Rescale
, METH_VARARGS
| METH_KEYWORDS
},
3041 { "wxImage_Scale", (PyCFunction
) _wrap_wxImage_Scale
, METH_VARARGS
| METH_KEYWORDS
},
3042 { "wxImage_Destroy", (PyCFunction
) _wrap_wxImage_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3043 { "wxImage_Create", (PyCFunction
) _wrap_wxImage_Create
, METH_VARARGS
| METH_KEYWORDS
},
3044 { "wxImage_ConvertToMonoBitmap", (PyCFunction
) _wrap_wxImage_ConvertToMonoBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3045 { "wxImage_ConvertToBitmap", (PyCFunction
) _wrap_wxImage_ConvertToBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3046 { "delete_wxImage", (PyCFunction
) _wrap_delete_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
3047 { "new_wxImage", (PyCFunction
) _wrap_new_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
3048 { "new_wxTIFFHandler", (PyCFunction
) _wrap_new_wxTIFFHandler
, METH_VARARGS
| METH_KEYWORDS
},
3049 { "new_wxPCXHandler", (PyCFunction
) _wrap_new_wxPCXHandler
, METH_VARARGS
| METH_KEYWORDS
},
3050 { "new_wxPNMHandler", (PyCFunction
) _wrap_new_wxPNMHandler
, METH_VARARGS
| METH_KEYWORDS
},
3051 { "new_wxGIFHandler", (PyCFunction
) _wrap_new_wxGIFHandler
, METH_VARARGS
| METH_KEYWORDS
},
3052 { "new_wxANIHandler", (PyCFunction
) _wrap_new_wxANIHandler
, METH_VARARGS
| METH_KEYWORDS
},
3053 { "new_wxCURHandler", (PyCFunction
) _wrap_new_wxCURHandler
, METH_VARARGS
| METH_KEYWORDS
},
3054 { "new_wxICOHandler", (PyCFunction
) _wrap_new_wxICOHandler
, METH_VARARGS
| METH_KEYWORDS
},
3055 { "new_wxBMPHandler", (PyCFunction
) _wrap_new_wxBMPHandler
, METH_VARARGS
| METH_KEYWORDS
},
3056 { "new_wxJPEGHandler", (PyCFunction
) _wrap_new_wxJPEGHandler
, METH_VARARGS
| METH_KEYWORDS
},
3057 { "new_wxPNGHandler", (PyCFunction
) _wrap_new_wxPNGHandler
, METH_VARARGS
| METH_KEYWORDS
},
3058 { "wxImageHandler_SetMimeType", (PyCFunction
) _wrap_wxImageHandler_SetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
3059 { "wxImageHandler_SetType", (PyCFunction
) _wrap_wxImageHandler_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3060 { "wxImageHandler_SetExtension", (PyCFunction
) _wrap_wxImageHandler_SetExtension
, METH_VARARGS
| METH_KEYWORDS
},
3061 { "wxImageHandler_SetName", (PyCFunction
) _wrap_wxImageHandler_SetName
, METH_VARARGS
| METH_KEYWORDS
},
3062 { "wxImageHandler_CanRead", (PyCFunction
) _wrap_wxImageHandler_CanRead
, METH_VARARGS
| METH_KEYWORDS
},
3063 { "wxImageHandler_GetMimeType", (PyCFunction
) _wrap_wxImageHandler_GetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
3064 { "wxImageHandler_GetType", (PyCFunction
) _wrap_wxImageHandler_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3065 { "wxImageHandler_GetExtension", (PyCFunction
) _wrap_wxImageHandler_GetExtension
, METH_VARARGS
| METH_KEYWORDS
},
3066 { "wxImageHandler_GetName", (PyCFunction
) _wrap_wxImageHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
3067 { "wxBitmapFromImage", (PyCFunction
) _wrap_wxBitmapFromImage
, METH_VARARGS
| METH_KEYWORDS
},
3068 { "wxInitAllImageHandlers", (PyCFunction
) _wrap_wxInitAllImageHandlers
, METH_VARARGS
| METH_KEYWORDS
},
3069 { "wxImageFromStreamMime", (PyCFunction
) _wrap_wxImageFromStreamMime
, METH_VARARGS
| METH_KEYWORDS
},
3070 { "wxImageFromStream", (PyCFunction
) _wrap_wxImageFromStream
, METH_VARARGS
| METH_KEYWORDS
},
3071 { "wxImageFromData", (PyCFunction
) _wrap_wxImageFromData
, METH_VARARGS
| METH_KEYWORDS
},
3072 { "wxImageFromBitmap", (PyCFunction
) _wrap_wxImageFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3073 { "wxImageFromMime", (PyCFunction
) _wrap_wxImageFromMime
, METH_VARARGS
| METH_KEYWORDS
},
3074 { "wxEmptyImage", (PyCFunction
) _wrap_wxEmptyImage
, METH_VARARGS
| METH_KEYWORDS
},
3081 * This table is used by the pointer type-checker
3083 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3084 { "_signed_long","_long",0},
3085 { "_wxBMPHandler","_wxANIHandler",SwigwxANIHandlerTowxBMPHandler
},
3086 { "_wxBMPHandler","_wxCURHandler",SwigwxCURHandlerTowxBMPHandler
},
3087 { "_wxBMPHandler","_wxICOHandler",SwigwxICOHandlerTowxBMPHandler
},
3088 { "_wxICOHandler","_wxANIHandler",SwigwxANIHandlerTowxICOHandler
},
3089 { "_wxICOHandler","_wxCURHandler",SwigwxCURHandlerTowxICOHandler
},
3090 { "_wxPrintQuality","_wxCoord",0},
3091 { "_wxPrintQuality","_int",0},
3092 { "_wxPrintQuality","_signed_int",0},
3093 { "_wxPrintQuality","_unsigned_int",0},
3094 { "_wxPrintQuality","_wxWindowID",0},
3095 { "_wxPrintQuality","_uint",0},
3096 { "_wxPrintQuality","_EBool",0},
3097 { "_wxPrintQuality","_size_t",0},
3098 { "_wxPrintQuality","_time_t",0},
3099 { "_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler
},
3100 { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
},
3101 { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
},
3102 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
3103 { "_wxImageHandler","_wxANIHandler",SwigwxANIHandlerTowxImageHandler
},
3104 { "_wxImageHandler","_wxCURHandler",SwigwxCURHandlerTowxImageHandler
},
3105 { "_wxImageHandler","_wxICOHandler",SwigwxICOHandlerTowxImageHandler
},
3106 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
3107 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
3108 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
3109 { "_byte","_unsigned_char",0},
3110 { "_long","_unsigned_long",0},
3111 { "_long","_signed_long",0},
3112 { "_size_t","_wxCoord",0},
3113 { "_size_t","_wxPrintQuality",0},
3114 { "_size_t","_time_t",0},
3115 { "_size_t","_unsigned_int",0},
3116 { "_size_t","_int",0},
3117 { "_size_t","_wxWindowID",0},
3118 { "_size_t","_uint",0},
3119 { "_uint","_wxCoord",0},
3120 { "_uint","_wxPrintQuality",0},
3121 { "_uint","_time_t",0},
3122 { "_uint","_size_t",0},
3123 { "_uint","_unsigned_int",0},
3124 { "_uint","_int",0},
3125 { "_uint","_wxWindowID",0},
3126 { "_wxChar","_char",0},
3127 { "_char","_wxChar",0},
3128 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3129 { "_EBool","_wxCoord",0},
3130 { "_EBool","_wxPrintQuality",0},
3131 { "_EBool","_signed_int",0},
3132 { "_EBool","_int",0},
3133 { "_EBool","_wxWindowID",0},
3134 { "_unsigned_long","_long",0},
3135 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3136 { "_signed_int","_wxCoord",0},
3137 { "_signed_int","_wxPrintQuality",0},
3138 { "_signed_int","_EBool",0},
3139 { "_signed_int","_wxWindowID",0},
3140 { "_signed_int","_int",0},
3141 { "_WXTYPE","_short",0},
3142 { "_WXTYPE","_signed_short",0},
3143 { "_WXTYPE","_unsigned_short",0},
3144 { "_unsigned_short","_WXTYPE",0},
3145 { "_unsigned_short","_short",0},
3146 { "_wxObject","_wxImage",SwigwxImageTowxObject
},
3147 { "_wxObject","_wxTIFFHandler",SwigwxTIFFHandlerTowxObject
},
3148 { "_wxObject","_wxPCXHandler",SwigwxPCXHandlerTowxObject
},
3149 { "_wxObject","_wxPNMHandler",SwigwxPNMHandlerTowxObject
},
3150 { "_wxObject","_wxGIFHandler",SwigwxGIFHandlerTowxObject
},
3151 { "_wxObject","_wxANIHandler",SwigwxANIHandlerTowxObject
},
3152 { "_wxObject","_wxCURHandler",SwigwxCURHandlerTowxObject
},
3153 { "_wxObject","_wxICOHandler",SwigwxICOHandlerTowxObject
},
3154 { "_wxObject","_wxBMPHandler",SwigwxBMPHandlerTowxObject
},
3155 { "_wxObject","_wxJPEGHandler",SwigwxJPEGHandlerTowxObject
},
3156 { "_wxObject","_wxPNGHandler",SwigwxPNGHandlerTowxObject
},
3157 { "_wxObject","_wxImageHandler",SwigwxImageHandlerTowxObject
},
3158 { "_signed_short","_WXTYPE",0},
3159 { "_signed_short","_short",0},
3160 { "_wxCURHandler","_wxANIHandler",SwigwxANIHandlerTowxCURHandler
},
3161 { "_unsigned_char","_byte",0},
3162 { "_unsigned_int","_wxCoord",0},
3163 { "_unsigned_int","_wxPrintQuality",0},
3164 { "_unsigned_int","_time_t",0},
3165 { "_unsigned_int","_size_t",0},
3166 { "_unsigned_int","_uint",0},
3167 { "_unsigned_int","_wxWindowID",0},
3168 { "_unsigned_int","_int",0},
3169 { "_short","_WXTYPE",0},
3170 { "_short","_unsigned_short",0},
3171 { "_short","_signed_short",0},
3172 { "_wxWindowID","_wxCoord",0},
3173 { "_wxWindowID","_wxPrintQuality",0},
3174 { "_wxWindowID","_time_t",0},
3175 { "_wxWindowID","_size_t",0},
3176 { "_wxWindowID","_EBool",0},
3177 { "_wxWindowID","_uint",0},
3178 { "_wxWindowID","_int",0},
3179 { "_wxWindowID","_signed_int",0},
3180 { "_wxWindowID","_unsigned_int",0},
3181 { "_int","_wxCoord",0},
3182 { "_int","_wxPrintQuality",0},
3183 { "_int","_time_t",0},
3184 { "_int","_size_t",0},
3185 { "_int","_EBool",0},
3186 { "_int","_uint",0},
3187 { "_int","_wxWindowID",0},
3188 { "_int","_unsigned_int",0},
3189 { "_int","_signed_int",0},
3190 { "_time_t","_wxCoord",0},
3191 { "_time_t","_wxPrintQuality",0},
3192 { "_time_t","_unsigned_int",0},
3193 { "_time_t","_int",0},
3194 { "_time_t","_wxWindowID",0},
3195 { "_time_t","_uint",0},
3196 { "_time_t","_size_t",0},
3197 { "_wxCoord","_int",0},
3198 { "_wxCoord","_signed_int",0},
3199 { "_wxCoord","_unsigned_int",0},
3200 { "_wxCoord","_wxWindowID",0},
3201 { "_wxCoord","_uint",0},
3202 { "_wxCoord","_EBool",0},
3203 { "_wxCoord","_size_t",0},
3204 { "_wxCoord","_time_t",0},
3205 { "_wxCoord","_wxPrintQuality",0},
3208 static PyObject
*SWIG_globals
;
3212 SWIGEXPORT(void) initimagec() {
3214 SWIG_globals
= SWIG_newvarlink();
3215 m
= Py_InitModule("imagec", imagecMethods
);
3216 d
= PyModule_GetDict(m
);
3217 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3218 SWIG_addvarlink(SWIG_globals
,"wxNullImage",_wrap_wxNullImage_get
, _wrap_wxNullImage_set
);
3221 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3222 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);