2 * FILE : src/mac/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 */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initimagec
55 #define SWIG_name "imagec"
58 #include "pyistream.h"
62 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
68 } else if (target
== Py_None
) {
72 if (!PyTuple_Check(target
)) {
74 target
= PyTuple_New(1);
75 PyTuple_SetItem(target
, 0, o2
);
78 PyTuple_SetItem(o3
, 0, o
);
81 target
= PySequence_Concat(o2
, o3
);
88 wxImage
* wxEmptyImage(int width
=0, int height
=0) {
89 if (width
== 0 && height
== 0)
92 return new wxImage(width
, height
);
96 wxImage
* wxImageFromMime(const wxString
& name
, const wxString
& mimetype
, int index
) {
97 return new wxImage(name
, mimetype
, index
);
101 wxImage
* wxImageFromBitmap(const wxBitmap
&bitmap
) {
102 return new wxImage(bitmap
.ConvertToImage());
106 wxImage
* wxImageFromData(int width
, int height
, unsigned char* data
) {
107 // Copy the source data so the wxImage can clean it up later
108 unsigned char* copy
= (unsigned char*)malloc(width
*height
*3);
113 memcpy(copy
, data
, width
*height
*3);
114 return new wxImage(width
, height
, copy
, FALSE
);
118 wxImage
* wxImageFromStream(wxInputStream
& stream
,
119 long type
= wxBITMAP_TYPE_ANY
, int index
= -1) {
120 return new wxImage(stream
, type
, index
);
124 wxImage
* wxImageFromStreamMime(wxInputStream
& stream
,
125 const wxString
& mimetype
, int index
= -1 ) {
126 return new wxImage(stream
, mimetype
, index
);
130 extern wxImage wxNullImage
;
134 wxBitmap
* wxBitmapFromImage(const wxImage
& img
, int depth
=-1) {
135 return new wxBitmap(img
, depth
);
141 static PyObject
*_wrap_wxEmptyImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
142 PyObject
* _resultobj
;
144 int _arg0
= (int ) 0;
145 int _arg1
= (int ) 0;
146 char *_kwnames
[] = { "width","height", NULL
};
150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|ii:wxEmptyImage",_kwnames
,&_arg0
,&_arg1
))
153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
154 _result
= (wxImage
*)wxEmptyImage(_arg0
,_arg1
);
156 wxPyEndAllowThreads(__tstate
);
157 if (PyErr_Occurred()) return NULL
;
159 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
160 _resultobj
= Py_BuildValue("s",_ptemp
);
163 _resultobj
= Py_None
;
168 static PyObject
*_wrap_wxImageFromMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
169 PyObject
* _resultobj
;
173 int _arg2
= (int ) -1;
174 PyObject
* _obj0
= 0;
175 PyObject
* _obj1
= 0;
176 char *_kwnames
[] = { "name","mimetype","index", NULL
};
180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxImageFromMime",_kwnames
,&_obj0
,&_obj1
,&_arg2
))
183 _arg0
= wxString_in_helper(_obj0
);
188 _arg1
= wxString_in_helper(_obj1
);
193 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
194 _result
= (wxImage
*)wxImageFromMime(*_arg0
,*_arg1
,_arg2
);
196 wxPyEndAllowThreads(__tstate
);
197 if (PyErr_Occurred()) return NULL
;
199 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
200 _resultobj
= Py_BuildValue("s",_ptemp
);
203 _resultobj
= Py_None
;
216 static PyObject
*_wrap_wxImageFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
217 PyObject
* _resultobj
;
220 PyObject
* _argo0
= 0;
221 char *_kwnames
[] = { "bitmap", NULL
};
225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageFromBitmap",_kwnames
,&_argo0
))
228 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
235 _result
= (wxImage
*)wxImageFromBitmap(*_arg0
);
237 wxPyEndAllowThreads(__tstate
);
238 if (PyErr_Occurred()) return NULL
;
240 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
241 _resultobj
= Py_BuildValue("s",_ptemp
);
244 _resultobj
= Py_None
;
249 static PyObject
*_wrap_wxImageFromData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
250 PyObject
* _resultobj
;
254 unsigned char * _arg2
;
255 PyObject
* _argo2
= 0;
256 char *_kwnames
[] = { "width","height","data", NULL
};
260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiO:wxImageFromData",_kwnames
,&_arg0
,&_arg1
,&_argo2
))
263 if (_argo2
== Py_None
) { _arg2
= NULL
; }
264 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_unsigned_char_p")) {
265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageFromData. Expected _unsigned_char_p.");
270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
271 _result
= (wxImage
*)wxImageFromData(_arg0
,_arg1
,_arg2
);
273 wxPyEndAllowThreads(__tstate
);
274 if (PyErr_Occurred()) return NULL
;
276 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
277 _resultobj
= Py_BuildValue("s",_ptemp
);
280 _resultobj
= Py_None
;
285 static PyObject
*_wrap_wxImageFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
286 PyObject
* _resultobj
;
288 wxInputStream
* _arg0
;
289 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
290 int _arg2
= (int ) -1;
291 wxPyInputStream
* temp
;
293 PyObject
* _obj0
= 0;
294 char *_kwnames
[] = { "stream","type","index", NULL
};
298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|li:wxImageFromStream",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
301 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
302 _arg0
= temp
->m_wxis
;
305 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
307 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
314 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
315 _result
= (wxImage
*)wxImageFromStream(*_arg0
,_arg1
,_arg2
);
317 wxPyEndAllowThreads(__tstate
);
318 if (PyErr_Occurred()) return NULL
;
320 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
321 _resultobj
= Py_BuildValue("s",_ptemp
);
324 _resultobj
= Py_None
;
333 static PyObject
*_wrap_wxImageFromStreamMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
334 PyObject
* _resultobj
;
336 wxInputStream
* _arg0
;
338 int _arg2
= (int ) -1;
339 wxPyInputStream
* temp
;
341 PyObject
* _obj0
= 0;
342 PyObject
* _obj1
= 0;
343 char *_kwnames
[] = { "stream","mimetype","index", NULL
};
347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxImageFromStreamMime",_kwnames
,&_obj0
,&_obj1
,&_arg2
))
350 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
351 _arg0
= temp
->m_wxis
;
354 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
356 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
363 _arg1
= wxString_in_helper(_obj1
);
368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
369 _result
= (wxImage
*)wxImageFromStreamMime(*_arg0
,*_arg1
,_arg2
);
371 wxPyEndAllowThreads(__tstate
);
372 if (PyErr_Occurred()) return NULL
;
374 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
375 _resultobj
= Py_BuildValue("s",_ptemp
);
378 _resultobj
= Py_None
;
391 static PyObject
*_wrap_wxInitAllImageHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
392 PyObject
* _resultobj
;
393 char *_kwnames
[] = { NULL
};
396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxInitAllImageHandlers",_kwnames
))
399 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
400 wxInitAllImageHandlers();
402 wxPyEndAllowThreads(__tstate
);
403 if (PyErr_Occurred()) return NULL
;
404 } Py_INCREF(Py_None
);
405 _resultobj
= Py_None
;
409 static int _wrap_wxNullImage_set(PyObject
*val
) {
411 PyErr_SetString(PyExc_TypeError
,"Variable wxNullImage is read-only.");
415 static PyObject
*_wrap_wxNullImage_get() {
419 SWIG_MakePtr(ptemp
,(char *) &wxNullImage
,"_wxImage_p");
420 pyobj
= PyString_FromString(ptemp
);
424 static PyObject
*_wrap_wxBitmapFromImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
425 PyObject
* _resultobj
;
428 int _arg1
= (int ) -1;
429 PyObject
* _argo0
= 0;
430 char *_kwnames
[] = { "img","depth", NULL
};
434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxBitmapFromImage",_kwnames
,&_argo0
,&_arg1
))
437 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromImage. Expected _wxImage_p.");
443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
444 _result
= (wxBitmap
*)wxBitmapFromImage(*_arg0
,_arg1
);
446 wxPyEndAllowThreads(__tstate
);
447 if (PyErr_Occurred()) return NULL
;
449 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
450 _resultobj
= Py_BuildValue("s",_ptemp
);
453 _resultobj
= Py_None
;
458 static void *SwigwxImageHandlerTowxObject(void *ptr
) {
461 src
= (wxImageHandler
*) ptr
;
462 dest
= (wxObject
*) src
;
463 return (void *) dest
;
466 #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
467 static PyObject
*_wrap_wxImageHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
468 PyObject
* _resultobj
;
470 wxImageHandler
* _arg0
;
471 PyObject
* _argo0
= 0;
472 char *_kwnames
[] = { "self", NULL
};
475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetName",_kwnames
,&_argo0
))
478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
486 _result
= new wxString (wxImageHandler_GetName(_arg0
));
488 wxPyEndAllowThreads(__tstate
);
489 if (PyErr_Occurred()) return NULL
;
492 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
494 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
503 #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
504 static PyObject
*_wrap_wxImageHandler_GetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
505 PyObject
* _resultobj
;
507 wxImageHandler
* _arg0
;
508 PyObject
* _argo0
= 0;
509 char *_kwnames
[] = { "self", NULL
};
512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetExtension",_kwnames
,&_argo0
))
515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
523 _result
= new wxString (wxImageHandler_GetExtension(_arg0
));
525 wxPyEndAllowThreads(__tstate
);
526 if (PyErr_Occurred()) return NULL
;
529 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
531 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
540 #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
541 static PyObject
*_wrap_wxImageHandler_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
542 PyObject
* _resultobj
;
544 wxImageHandler
* _arg0
;
545 PyObject
* _argo0
= 0;
546 char *_kwnames
[] = { "self", NULL
};
549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetType",_kwnames
,&_argo0
))
552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
559 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
560 _result
= (long )wxImageHandler_GetType(_arg0
);
562 wxPyEndAllowThreads(__tstate
);
563 if (PyErr_Occurred()) return NULL
;
564 } _resultobj
= Py_BuildValue("l",_result
);
568 #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
569 static PyObject
*_wrap_wxImageHandler_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
570 PyObject
* _resultobj
;
572 wxImageHandler
* _arg0
;
573 PyObject
* _argo0
= 0;
574 char *_kwnames
[] = { "self", NULL
};
577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetMimeType",_kwnames
,&_argo0
))
580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
587 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
588 _result
= new wxString (wxImageHandler_GetMimeType(_arg0
));
590 wxPyEndAllowThreads(__tstate
);
591 if (PyErr_Occurred()) return NULL
;
594 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
596 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
605 #define wxImageHandler_CanRead(_swigobj,_swigarg0) (_swigobj->CanRead(_swigarg0))
606 static PyObject
*_wrap_wxImageHandler_CanRead(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
607 PyObject
* _resultobj
;
609 wxImageHandler
* _arg0
;
611 PyObject
* _argo0
= 0;
612 PyObject
* _obj1
= 0;
613 char *_kwnames
[] = { "self","name", NULL
};
616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_CanRead",_kwnames
,&_argo0
,&_obj1
))
619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_CanRead. Expected _wxImageHandler_p.");
626 _arg1
= wxString_in_helper(_obj1
);
631 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
632 _result
= (bool )wxImageHandler_CanRead(_arg0
,*_arg1
);
634 wxPyEndAllowThreads(__tstate
);
635 if (PyErr_Occurred()) return NULL
;
636 } _resultobj
= Py_BuildValue("i",_result
);
644 #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
645 static PyObject
*_wrap_wxImageHandler_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
646 PyObject
* _resultobj
;
647 wxImageHandler
* _arg0
;
649 PyObject
* _argo0
= 0;
650 PyObject
* _obj1
= 0;
651 char *_kwnames
[] = { "self","name", NULL
};
654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetName",_kwnames
,&_argo0
,&_obj1
))
657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
664 _arg1
= wxString_in_helper(_obj1
);
669 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
670 wxImageHandler_SetName(_arg0
,*_arg1
);
672 wxPyEndAllowThreads(__tstate
);
673 if (PyErr_Occurred()) return NULL
;
674 } Py_INCREF(Py_None
);
675 _resultobj
= Py_None
;
683 #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
684 static PyObject
*_wrap_wxImageHandler_SetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
685 PyObject
* _resultobj
;
686 wxImageHandler
* _arg0
;
688 PyObject
* _argo0
= 0;
689 PyObject
* _obj1
= 0;
690 char *_kwnames
[] = { "self","extension", NULL
};
693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetExtension",_kwnames
,&_argo0
,&_obj1
))
696 if (_argo0
== Py_None
) { _arg0
= NULL
; }
697 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
703 _arg1
= wxString_in_helper(_obj1
);
708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
709 wxImageHandler_SetExtension(_arg0
,*_arg1
);
711 wxPyEndAllowThreads(__tstate
);
712 if (PyErr_Occurred()) return NULL
;
713 } Py_INCREF(Py_None
);
714 _resultobj
= Py_None
;
722 #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
723 static PyObject
*_wrap_wxImageHandler_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
724 PyObject
* _resultobj
;
725 wxImageHandler
* _arg0
;
727 PyObject
* _argo0
= 0;
728 char *_kwnames
[] = { "self","type", NULL
};
731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxImageHandler_SetType",_kwnames
,&_argo0
,&_arg1
))
734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
741 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
742 wxImageHandler_SetType(_arg0
,_arg1
);
744 wxPyEndAllowThreads(__tstate
);
745 if (PyErr_Occurred()) return NULL
;
746 } Py_INCREF(Py_None
);
747 _resultobj
= Py_None
;
751 #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
752 static PyObject
*_wrap_wxImageHandler_SetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
753 PyObject
* _resultobj
;
754 wxImageHandler
* _arg0
;
756 PyObject
* _argo0
= 0;
757 PyObject
* _obj1
= 0;
758 char *_kwnames
[] = { "self","mimetype", NULL
};
761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetMimeType",_kwnames
,&_argo0
,&_obj1
))
764 if (_argo0
== Py_None
) { _arg0
= NULL
; }
765 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
766 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
771 _arg1
= wxString_in_helper(_obj1
);
776 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
777 wxImageHandler_SetMimeType(_arg0
,*_arg1
);
779 wxPyEndAllowThreads(__tstate
);
780 if (PyErr_Occurred()) return NULL
;
781 } Py_INCREF(Py_None
);
782 _resultobj
= Py_None
;
790 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr
) {
792 wxImageHandler
*dest
;
793 src
= (wxPNGHandler
*) ptr
;
794 dest
= (wxImageHandler
*) src
;
795 return (void *) dest
;
798 static void *SwigwxPNGHandlerTowxObject(void *ptr
) {
801 src
= (wxPNGHandler
*) ptr
;
802 dest
= (wxObject
*) src
;
803 return (void *) dest
;
806 #define new_wxPNGHandler() (new wxPNGHandler())
807 static PyObject
*_wrap_new_wxPNGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
808 PyObject
* _resultobj
;
809 wxPNGHandler
* _result
;
810 char *_kwnames
[] = { NULL
};
814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNGHandler",_kwnames
))
817 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
818 _result
= (wxPNGHandler
*)new_wxPNGHandler();
820 wxPyEndAllowThreads(__tstate
);
821 if (PyErr_Occurred()) return NULL
;
823 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNGHandler_p");
824 _resultobj
= Py_BuildValue("s",_ptemp
);
827 _resultobj
= Py_None
;
832 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr
) {
834 wxImageHandler
*dest
;
835 src
= (wxJPEGHandler
*) ptr
;
836 dest
= (wxImageHandler
*) src
;
837 return (void *) dest
;
840 static void *SwigwxJPEGHandlerTowxObject(void *ptr
) {
843 src
= (wxJPEGHandler
*) ptr
;
844 dest
= (wxObject
*) src
;
845 return (void *) dest
;
848 #define new_wxJPEGHandler() (new wxJPEGHandler())
849 static PyObject
*_wrap_new_wxJPEGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
850 PyObject
* _resultobj
;
851 wxJPEGHandler
* _result
;
852 char *_kwnames
[] = { NULL
};
856 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxJPEGHandler",_kwnames
))
859 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
860 _result
= (wxJPEGHandler
*)new_wxJPEGHandler();
862 wxPyEndAllowThreads(__tstate
);
863 if (PyErr_Occurred()) return NULL
;
865 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxJPEGHandler_p");
866 _resultobj
= Py_BuildValue("s",_ptemp
);
869 _resultobj
= Py_None
;
874 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr
) {
876 wxImageHandler
*dest
;
877 src
= (wxBMPHandler
*) ptr
;
878 dest
= (wxImageHandler
*) src
;
879 return (void *) dest
;
882 static void *SwigwxBMPHandlerTowxObject(void *ptr
) {
885 src
= (wxBMPHandler
*) ptr
;
886 dest
= (wxObject
*) src
;
887 return (void *) dest
;
890 #define new_wxBMPHandler() (new wxBMPHandler())
891 static PyObject
*_wrap_new_wxBMPHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
892 PyObject
* _resultobj
;
893 wxBMPHandler
* _result
;
894 char *_kwnames
[] = { NULL
};
898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxBMPHandler",_kwnames
))
901 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
902 _result
= (wxBMPHandler
*)new_wxBMPHandler();
904 wxPyEndAllowThreads(__tstate
);
905 if (PyErr_Occurred()) return NULL
;
907 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBMPHandler_p");
908 _resultobj
= Py_BuildValue("s",_ptemp
);
911 _resultobj
= Py_None
;
916 static void *SwigwxICOHandlerTowxBMPHandler(void *ptr
) {
919 src
= (wxICOHandler
*) ptr
;
920 dest
= (wxBMPHandler
*) src
;
921 return (void *) dest
;
924 static void *SwigwxICOHandlerTowxImageHandler(void *ptr
) {
926 wxImageHandler
*dest
;
927 src
= (wxICOHandler
*) ptr
;
928 dest
= (wxImageHandler
*) src
;
929 return (void *) dest
;
932 static void *SwigwxICOHandlerTowxObject(void *ptr
) {
935 src
= (wxICOHandler
*) ptr
;
936 dest
= (wxObject
*) src
;
937 return (void *) dest
;
940 #define new_wxICOHandler() (new wxICOHandler())
941 static PyObject
*_wrap_new_wxICOHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
942 PyObject
* _resultobj
;
943 wxICOHandler
* _result
;
944 char *_kwnames
[] = { NULL
};
948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxICOHandler",_kwnames
))
951 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
952 _result
= (wxICOHandler
*)new_wxICOHandler();
954 wxPyEndAllowThreads(__tstate
);
955 if (PyErr_Occurred()) return NULL
;
957 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxICOHandler_p");
958 _resultobj
= Py_BuildValue("s",_ptemp
);
961 _resultobj
= Py_None
;
966 static void *SwigwxCURHandlerTowxICOHandler(void *ptr
) {
969 src
= (wxCURHandler
*) ptr
;
970 dest
= (wxICOHandler
*) src
;
971 return (void *) dest
;
974 static void *SwigwxCURHandlerTowxBMPHandler(void *ptr
) {
977 src
= (wxCURHandler
*) ptr
;
978 dest
= (wxBMPHandler
*) src
;
979 return (void *) dest
;
982 static void *SwigwxCURHandlerTowxImageHandler(void *ptr
) {
984 wxImageHandler
*dest
;
985 src
= (wxCURHandler
*) ptr
;
986 dest
= (wxImageHandler
*) src
;
987 return (void *) dest
;
990 static void *SwigwxCURHandlerTowxObject(void *ptr
) {
993 src
= (wxCURHandler
*) ptr
;
994 dest
= (wxObject
*) src
;
995 return (void *) dest
;
998 #define new_wxCURHandler() (new wxCURHandler())
999 static PyObject
*_wrap_new_wxCURHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1000 PyObject
* _resultobj
;
1001 wxCURHandler
* _result
;
1002 char *_kwnames
[] = { NULL
};
1006 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxCURHandler",_kwnames
))
1009 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1010 _result
= (wxCURHandler
*)new_wxCURHandler();
1012 wxPyEndAllowThreads(__tstate
);
1013 if (PyErr_Occurred()) return NULL
;
1015 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCURHandler_p");
1016 _resultobj
= Py_BuildValue("s",_ptemp
);
1019 _resultobj
= Py_None
;
1024 static void *SwigwxANIHandlerTowxCURHandler(void *ptr
) {
1027 src
= (wxANIHandler
*) ptr
;
1028 dest
= (wxCURHandler
*) src
;
1029 return (void *) dest
;
1032 static void *SwigwxANIHandlerTowxICOHandler(void *ptr
) {
1035 src
= (wxANIHandler
*) ptr
;
1036 dest
= (wxICOHandler
*) src
;
1037 return (void *) dest
;
1040 static void *SwigwxANIHandlerTowxBMPHandler(void *ptr
) {
1043 src
= (wxANIHandler
*) ptr
;
1044 dest
= (wxBMPHandler
*) src
;
1045 return (void *) dest
;
1048 static void *SwigwxANIHandlerTowxImageHandler(void *ptr
) {
1050 wxImageHandler
*dest
;
1051 src
= (wxANIHandler
*) ptr
;
1052 dest
= (wxImageHandler
*) src
;
1053 return (void *) dest
;
1056 static void *SwigwxANIHandlerTowxObject(void *ptr
) {
1059 src
= (wxANIHandler
*) ptr
;
1060 dest
= (wxObject
*) src
;
1061 return (void *) dest
;
1064 #define new_wxANIHandler() (new wxANIHandler())
1065 static PyObject
*_wrap_new_wxANIHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1066 PyObject
* _resultobj
;
1067 wxANIHandler
* _result
;
1068 char *_kwnames
[] = { NULL
};
1072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxANIHandler",_kwnames
))
1075 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1076 _result
= (wxANIHandler
*)new_wxANIHandler();
1078 wxPyEndAllowThreads(__tstate
);
1079 if (PyErr_Occurred()) return NULL
;
1081 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxANIHandler_p");
1082 _resultobj
= Py_BuildValue("s",_ptemp
);
1085 _resultobj
= Py_None
;
1090 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr
) {
1092 wxImageHandler
*dest
;
1093 src
= (wxGIFHandler
*) ptr
;
1094 dest
= (wxImageHandler
*) src
;
1095 return (void *) dest
;
1098 static void *SwigwxGIFHandlerTowxObject(void *ptr
) {
1101 src
= (wxGIFHandler
*) ptr
;
1102 dest
= (wxObject
*) src
;
1103 return (void *) dest
;
1106 #define new_wxGIFHandler() (new wxGIFHandler())
1107 static PyObject
*_wrap_new_wxGIFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1108 PyObject
* _resultobj
;
1109 wxGIFHandler
* _result
;
1110 char *_kwnames
[] = { NULL
};
1114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGIFHandler",_kwnames
))
1117 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1118 _result
= (wxGIFHandler
*)new_wxGIFHandler();
1120 wxPyEndAllowThreads(__tstate
);
1121 if (PyErr_Occurred()) return NULL
;
1123 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGIFHandler_p");
1124 _resultobj
= Py_BuildValue("s",_ptemp
);
1127 _resultobj
= Py_None
;
1132 static void *SwigwxPNMHandlerTowxImageHandler(void *ptr
) {
1134 wxImageHandler
*dest
;
1135 src
= (wxPNMHandler
*) ptr
;
1136 dest
= (wxImageHandler
*) src
;
1137 return (void *) dest
;
1140 static void *SwigwxPNMHandlerTowxObject(void *ptr
) {
1143 src
= (wxPNMHandler
*) ptr
;
1144 dest
= (wxObject
*) src
;
1145 return (void *) dest
;
1148 #define new_wxPNMHandler() (new wxPNMHandler())
1149 static PyObject
*_wrap_new_wxPNMHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1150 PyObject
* _resultobj
;
1151 wxPNMHandler
* _result
;
1152 char *_kwnames
[] = { NULL
};
1156 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNMHandler",_kwnames
))
1159 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1160 _result
= (wxPNMHandler
*)new_wxPNMHandler();
1162 wxPyEndAllowThreads(__tstate
);
1163 if (PyErr_Occurred()) return NULL
;
1165 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNMHandler_p");
1166 _resultobj
= Py_BuildValue("s",_ptemp
);
1169 _resultobj
= Py_None
;
1174 static void *SwigwxPCXHandlerTowxImageHandler(void *ptr
) {
1176 wxImageHandler
*dest
;
1177 src
= (wxPCXHandler
*) ptr
;
1178 dest
= (wxImageHandler
*) src
;
1179 return (void *) dest
;
1182 static void *SwigwxPCXHandlerTowxObject(void *ptr
) {
1185 src
= (wxPCXHandler
*) ptr
;
1186 dest
= (wxObject
*) src
;
1187 return (void *) dest
;
1190 #define new_wxPCXHandler() (new wxPCXHandler())
1191 static PyObject
*_wrap_new_wxPCXHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1192 PyObject
* _resultobj
;
1193 wxPCXHandler
* _result
;
1194 char *_kwnames
[] = { NULL
};
1198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPCXHandler",_kwnames
))
1201 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1202 _result
= (wxPCXHandler
*)new_wxPCXHandler();
1204 wxPyEndAllowThreads(__tstate
);
1205 if (PyErr_Occurred()) return NULL
;
1207 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPCXHandler_p");
1208 _resultobj
= Py_BuildValue("s",_ptemp
);
1211 _resultobj
= Py_None
;
1216 static void *SwigwxTIFFHandlerTowxImageHandler(void *ptr
) {
1218 wxImageHandler
*dest
;
1219 src
= (wxTIFFHandler
*) ptr
;
1220 dest
= (wxImageHandler
*) src
;
1221 return (void *) dest
;
1224 static void *SwigwxTIFFHandlerTowxObject(void *ptr
) {
1227 src
= (wxTIFFHandler
*) ptr
;
1228 dest
= (wxObject
*) src
;
1229 return (void *) dest
;
1232 #define new_wxTIFFHandler() (new wxTIFFHandler())
1233 static PyObject
*_wrap_new_wxTIFFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1234 PyObject
* _resultobj
;
1235 wxTIFFHandler
* _result
;
1236 char *_kwnames
[] = { NULL
};
1240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTIFFHandler",_kwnames
))
1243 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1244 _result
= (wxTIFFHandler
*)new_wxTIFFHandler();
1246 wxPyEndAllowThreads(__tstate
);
1247 if (PyErr_Occurred()) return NULL
;
1249 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTIFFHandler_p");
1250 _resultobj
= Py_BuildValue("s",_ptemp
);
1253 _resultobj
= Py_None
;
1258 static void *SwigwxImageTowxObject(void *ptr
) {
1261 src
= (wxImage
*) ptr
;
1262 dest
= (wxObject
*) src
;
1263 return (void *) dest
;
1266 #define new_wxImage(_swigarg0,_swigarg1,_swigarg2) (new wxImage(_swigarg0,_swigarg1,_swigarg2))
1267 static PyObject
*_wrap_new_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1268 PyObject
* _resultobj
;
1271 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
1272 int _arg2
= (int ) -1;
1273 PyObject
* _obj0
= 0;
1274 char *_kwnames
[] = { "name","type","index", NULL
};
1278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|li:new_wxImage",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
1281 _arg0
= wxString_in_helper(_obj0
);
1286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1287 _result
= (wxImage
*)new_wxImage(*_arg0
,_arg1
,_arg2
);
1289 wxPyEndAllowThreads(__tstate
);
1290 if (PyErr_Occurred()) return NULL
;
1292 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
1293 _resultobj
= Py_BuildValue("s",_ptemp
);
1296 _resultobj
= Py_None
;
1305 #define delete_wxImage(_swigobj) (delete _swigobj)
1306 static PyObject
*_wrap_delete_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1307 PyObject
* _resultobj
;
1309 PyObject
* _argo0
= 0;
1310 char *_kwnames
[] = { "self", NULL
};
1313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImage",_kwnames
,&_argo0
))
1316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
1323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1324 delete_wxImage(_arg0
);
1326 wxPyEndAllowThreads(__tstate
);
1327 if (PyErr_Occurred()) return NULL
;
1328 } Py_INCREF(Py_None
);
1329 _resultobj
= Py_None
;
1333 #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
1334 static PyObject
*_wrap_wxImage_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1335 PyObject
* _resultobj
;
1339 PyObject
* _argo0
= 0;
1340 char *_kwnames
[] = { "self","width","height", NULL
};
1343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Create",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1346 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1347 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
1353 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1354 wxImage_Create(_arg0
,_arg1
,_arg2
);
1356 wxPyEndAllowThreads(__tstate
);
1357 if (PyErr_Occurred()) return NULL
;
1358 } Py_INCREF(Py_None
);
1359 _resultobj
= Py_None
;
1363 #define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
1364 static PyObject
*_wrap_wxImage_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1365 PyObject
* _resultobj
;
1367 PyObject
* _argo0
= 0;
1368 char *_kwnames
[] = { "self", NULL
};
1371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Destroy",_kwnames
,&_argo0
))
1374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
1381 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1382 wxImage_Destroy(_arg0
);
1384 wxPyEndAllowThreads(__tstate
);
1385 if (PyErr_Occurred()) return NULL
;
1386 } Py_INCREF(Py_None
);
1387 _resultobj
= Py_None
;
1391 #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
1392 static PyObject
*_wrap_wxImage_Scale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1393 PyObject
* _resultobj
;
1398 PyObject
* _argo0
= 0;
1399 char *_kwnames
[] = { "self","width","height", NULL
};
1403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Scale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
1413 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1414 _result
= new wxImage (wxImage_Scale(_arg0
,_arg1
,_arg2
));
1416 wxPyEndAllowThreads(__tstate
);
1417 if (PyErr_Occurred()) return NULL
;
1418 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1419 _resultobj
= Py_BuildValue("s",_ptemp
);
1423 #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
1424 static PyObject
*_wrap_wxImage_Rescale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1425 PyObject
* _resultobj
;
1430 PyObject
* _argo0
= 0;
1431 char *_kwnames
[] = { "self","width","height", NULL
};
1435 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Rescale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1438 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1439 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
1445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1446 wxImage
& _result_ref
= wxImage_Rescale(_arg0
,_arg1
,_arg2
);
1447 _result
= (wxImage
*) &_result_ref
;
1449 wxPyEndAllowThreads(__tstate
);
1450 if (PyErr_Occurred()) return NULL
;
1452 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
1453 _resultobj
= Py_BuildValue("s",_ptemp
);
1456 _resultobj
= Py_None
;
1461 #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1462 static PyObject
*_wrap_wxImage_SetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1463 PyObject
* _resultobj
;
1467 unsigned char _arg3
;
1468 unsigned char _arg4
;
1469 unsigned char _arg5
;
1470 PyObject
* _argo0
= 0;
1471 char *_kwnames
[] = { "self","x","y","r","g","b", NULL
};
1474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiibbb:wxImage_SetRGB",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
1477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
1484 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1485 wxImage_SetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
1487 wxPyEndAllowThreads(__tstate
);
1488 if (PyErr_Occurred()) return NULL
;
1489 } Py_INCREF(Py_None
);
1490 _resultobj
= Py_None
;
1494 #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
1495 static PyObject
*_wrap_wxImage_GetRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1496 PyObject
* _resultobj
;
1497 unsigned char _result
;
1501 PyObject
* _argo0
= 0;
1502 char *_kwnames
[] = { "self","x","y", NULL
};
1505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetRed",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
1515 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1516 _result
= (unsigned char )wxImage_GetRed(_arg0
,_arg1
,_arg2
);
1518 wxPyEndAllowThreads(__tstate
);
1519 if (PyErr_Occurred()) return NULL
;
1520 } _resultobj
= Py_BuildValue("b",_result
);
1524 #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
1525 static PyObject
*_wrap_wxImage_GetGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1526 PyObject
* _resultobj
;
1527 unsigned char _result
;
1531 PyObject
* _argo0
= 0;
1532 char *_kwnames
[] = { "self","x","y", NULL
};
1535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetGreen",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1545 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1546 _result
= (unsigned char )wxImage_GetGreen(_arg0
,_arg1
,_arg2
);
1548 wxPyEndAllowThreads(__tstate
);
1549 if (PyErr_Occurred()) return NULL
;
1550 } _resultobj
= Py_BuildValue("b",_result
);
1554 #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
1555 static PyObject
*_wrap_wxImage_GetBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1556 PyObject
* _resultobj
;
1557 unsigned char _result
;
1561 PyObject
* _argo0
= 0;
1562 char *_kwnames
[] = { "self","x","y", NULL
};
1565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetBlue",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1568 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1569 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1575 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1576 _result
= (unsigned char )wxImage_GetBlue(_arg0
,_arg1
,_arg2
);
1578 wxPyEndAllowThreads(__tstate
);
1579 if (PyErr_Occurred()) return NULL
;
1580 } _resultobj
= Py_BuildValue("b",_result
);
1584 #define wxImage_FindFirstUnusedColour(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->FindFirstUnusedColour(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1585 static PyObject
*_wrap_wxImage_FindFirstUnusedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1586 PyObject
* _resultobj
;
1595 byte _arg4
= (byte
) 0;
1596 byte _arg5
= (byte
) 0;
1597 byte _arg6
= (byte
) 0;
1598 PyObject
* _argo0
= 0;
1599 char *_kwnames
[] = { "self","startR","startG","startB", NULL
};
1603 _arg1
= (byte
*)&temp
;
1606 _arg2
= (byte
*)&temp0
;
1609 _arg3
= (byte
*)&temp1
;
1611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|bbb:wxImage_FindFirstUnusedColour",_kwnames
,&_argo0
,&_arg4
,&_arg5
,&_arg6
))
1614 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1615 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1616 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_FindFirstUnusedColour. Expected _wxImage_p.");
1621 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1622 _result
= (bool )wxImage_FindFirstUnusedColour(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
1624 wxPyEndAllowThreads(__tstate
);
1625 if (PyErr_Occurred()) return NULL
;
1626 } _resultobj
= Py_BuildValue("i",_result
);
1629 o
= PyInt_FromLong((long) (*_arg1
));
1630 _resultobj
= t_output_helper(_resultobj
, o
);
1634 o
= PyInt_FromLong((long) (*_arg2
));
1635 _resultobj
= t_output_helper(_resultobj
, o
);
1639 o
= PyInt_FromLong((long) (*_arg3
));
1640 _resultobj
= t_output_helper(_resultobj
, o
);
1645 #define wxImage_SetMaskFromImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetMaskFromImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1646 static PyObject
*_wrap_wxImage_SetMaskFromImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1647 PyObject
* _resultobj
;
1654 PyObject
* _argo0
= 0;
1655 PyObject
* _argo1
= 0;
1656 char *_kwnames
[] = { "self","mask","mr","mg","mb", NULL
};
1659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OObbb:wxImage_SetMaskFromImage",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
1662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskFromImage. Expected _wxImage_p.");
1669 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) {
1670 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImage_SetMaskFromImage. Expected _wxImage_p.");
1675 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1676 _result
= (bool )wxImage_SetMaskFromImage(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
1678 wxPyEndAllowThreads(__tstate
);
1679 if (PyErr_Occurred()) return NULL
;
1680 } _resultobj
= Py_BuildValue("i",_result
);
1684 static PyObject
*_wrap_wxImage_CanRead(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1685 PyObject
* _resultobj
;
1688 PyObject
* _obj0
= 0;
1689 char *_kwnames
[] = { "name", NULL
};
1692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_CanRead",_kwnames
,&_obj0
))
1695 _arg0
= wxString_in_helper(_obj0
);
1700 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1701 _result
= (bool )wxImage::CanRead(*_arg0
);
1703 wxPyEndAllowThreads(__tstate
);
1704 if (PyErr_Occurred()) return NULL
;
1705 } _resultobj
= Py_BuildValue("i",_result
);
1713 static PyObject
*_wrap_wxImage_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1714 PyObject
* _resultobj
;
1717 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
1718 PyObject
* _obj0
= 0;
1719 char *_kwnames
[] = { "name","type", NULL
};
1722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:wxImage_GetImageCount",_kwnames
,&_obj0
,&_arg1
))
1725 _arg0
= wxString_in_helper(_obj0
);
1730 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1731 _result
= (int )wxImage::GetImageCount(*_arg0
,_arg1
);
1733 wxPyEndAllowThreads(__tstate
);
1734 if (PyErr_Occurred()) return NULL
;
1735 } _resultobj
= Py_BuildValue("i",_result
);
1743 #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
1744 static PyObject
*_wrap_wxImage_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1745 PyObject
* _resultobj
;
1749 long _arg2
= (long ) wxBITMAP_TYPE_ANY
;
1750 int _arg3
= (int ) -1;
1751 PyObject
* _argo0
= 0;
1752 PyObject
* _obj1
= 0;
1753 char *_kwnames
[] = { "self","name","type","index", NULL
};
1756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|li:wxImage_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
1759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1766 _arg1
= wxString_in_helper(_obj1
);
1771 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1772 _result
= (bool )wxImage_LoadFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1774 wxPyEndAllowThreads(__tstate
);
1775 if (PyErr_Occurred()) return NULL
;
1776 } _resultobj
= Py_BuildValue("i",_result
);
1784 #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
1785 static PyObject
*_wrap_wxImage_LoadMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1786 PyObject
* _resultobj
;
1791 int _arg3
= (int ) -1;
1792 PyObject
* _argo0
= 0;
1793 PyObject
* _obj1
= 0;
1794 PyObject
* _obj2
= 0;
1795 char *_kwnames
[] = { "self","name","mimetype","index", NULL
};
1798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxImage_LoadMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
1801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1808 _arg1
= wxString_in_helper(_obj1
);
1813 _arg2
= wxString_in_helper(_obj2
);
1818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1819 _result
= (bool )wxImage_LoadMimeFile(_arg0
,*_arg1
,*_arg2
,_arg3
);
1821 wxPyEndAllowThreads(__tstate
);
1822 if (PyErr_Occurred()) return NULL
;
1823 } _resultobj
= Py_BuildValue("i",_result
);
1835 #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1836 static PyObject
*_wrap_wxImage_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1837 PyObject
* _resultobj
;
1842 PyObject
* _argo0
= 0;
1843 PyObject
* _obj1
= 0;
1844 char *_kwnames
[] = { "self","name","type", NULL
};
1847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1857 _arg1
= wxString_in_helper(_obj1
);
1862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1863 _result
= (bool )wxImage_SaveFile(_arg0
,*_arg1
,_arg2
);
1865 wxPyEndAllowThreads(__tstate
);
1866 if (PyErr_Occurred()) return NULL
;
1867 } _resultobj
= Py_BuildValue("i",_result
);
1875 #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1876 static PyObject
*_wrap_wxImage_SaveMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1877 PyObject
* _resultobj
;
1882 PyObject
* _argo0
= 0;
1883 PyObject
* _obj1
= 0;
1884 PyObject
* _obj2
= 0;
1885 char *_kwnames
[] = { "self","name","mimetype", NULL
};
1888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SaveMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1898 _arg1
= wxString_in_helper(_obj1
);
1903 _arg2
= wxString_in_helper(_obj2
);
1908 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1909 _result
= (bool )wxImage_SaveMimeFile(_arg0
,*_arg1
,*_arg2
);
1911 wxPyEndAllowThreads(__tstate
);
1912 if (PyErr_Occurred()) return NULL
;
1913 } _resultobj
= Py_BuildValue("i",_result
);
1925 static PyObject
*_wrap_wxImage_CanReadStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1926 PyObject
* _resultobj
;
1928 wxInputStream
* _arg0
;
1929 wxPyInputStream
* temp
;
1931 PyObject
* _obj0
= 0;
1932 char *_kwnames
[] = { "stream", NULL
};
1935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_CanReadStream",_kwnames
,&_obj0
))
1938 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
1939 _arg0
= temp
->m_wxis
;
1942 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
1943 if (_arg0
== NULL
) {
1944 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
1951 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1952 _result
= (bool )wxImage::CanRead(*_arg0
);
1954 wxPyEndAllowThreads(__tstate
);
1955 if (PyErr_Occurred()) return NULL
;
1956 } _resultobj
= Py_BuildValue("i",_result
);
1964 #define wxImage_LoadStream(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
1965 static PyObject
*_wrap_wxImage_LoadStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1966 PyObject
* _resultobj
;
1969 wxInputStream
* _arg1
;
1970 long _arg2
= (long ) wxBITMAP_TYPE_ANY
;
1971 int _arg3
= (int ) -1;
1972 PyObject
* _argo0
= 0;
1973 wxPyInputStream
* temp
;
1975 PyObject
* _obj1
= 0;
1976 char *_kwnames
[] = { "self","stream","type","index", NULL
};
1979 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|li:wxImage_LoadStream",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
1982 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1983 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadStream. Expected _wxImage_p.");
1989 if (SWIG_GetPtrObj(_obj1
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
1990 _arg1
= temp
->m_wxis
;
1993 _arg1
= wxPyCBInputStream_create(_obj1
, FALSE
);
1994 if (_arg1
== NULL
) {
1995 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
2002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2003 _result
= (bool )wxImage_LoadStream(_arg0
,*_arg1
,_arg2
,_arg3
);
2005 wxPyEndAllowThreads(__tstate
);
2006 if (PyErr_Occurred()) return NULL
;
2007 } _resultobj
= Py_BuildValue("i",_result
);
2015 #define wxImage_LoadMimeStream(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
2016 static PyObject
*_wrap_wxImage_LoadMimeStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2017 PyObject
* _resultobj
;
2020 wxInputStream
* _arg1
;
2022 int _arg3
= (int ) -1;
2023 PyObject
* _argo0
= 0;
2024 wxPyInputStream
* temp
;
2026 PyObject
* _obj1
= 0;
2027 PyObject
* _obj2
= 0;
2028 char *_kwnames
[] = { "self","stream","mimetype","index", NULL
};
2031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxImage_LoadMimeStream",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeStream. Expected _wxImage_p.");
2041 if (SWIG_GetPtrObj(_obj1
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
2042 _arg1
= temp
->m_wxis
;
2045 _arg1
= wxPyCBInputStream_create(_obj1
, FALSE
);
2046 if (_arg1
== NULL
) {
2047 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
2054 _arg2
= wxString_in_helper(_obj2
);
2059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2060 _result
= (bool )wxImage_LoadMimeStream(_arg0
,*_arg1
,*_arg2
,_arg3
);
2062 wxPyEndAllowThreads(__tstate
);
2063 if (PyErr_Occurred()) return NULL
;
2064 } _resultobj
= Py_BuildValue("i",_result
);
2076 #define wxImage_Ok(_swigobj) (_swigobj->Ok())
2077 static PyObject
*_wrap_wxImage_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2078 PyObject
* _resultobj
;
2081 PyObject
* _argo0
= 0;
2082 char *_kwnames
[] = { "self", NULL
};
2085 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Ok",_kwnames
,&_argo0
))
2088 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2089 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2090 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
2095 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2096 _result
= (bool )wxImage_Ok(_arg0
);
2098 wxPyEndAllowThreads(__tstate
);
2099 if (PyErr_Occurred()) return NULL
;
2100 } _resultobj
= Py_BuildValue("i",_result
);
2104 #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
2105 static PyObject
*_wrap_wxImage_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2106 PyObject
* _resultobj
;
2109 PyObject
* _argo0
= 0;
2110 char *_kwnames
[] = { "self", NULL
};
2113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetWidth",_kwnames
,&_argo0
))
2116 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2117 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2118 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
2123 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2124 _result
= (int )wxImage_GetWidth(_arg0
);
2126 wxPyEndAllowThreads(__tstate
);
2127 if (PyErr_Occurred()) return NULL
;
2128 } _resultobj
= Py_BuildValue("i",_result
);
2132 #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
2133 static PyObject
*_wrap_wxImage_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2134 PyObject
* _resultobj
;
2137 PyObject
* _argo0
= 0;
2138 char *_kwnames
[] = { "self", NULL
};
2141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetHeight",_kwnames
,&_argo0
))
2144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
2151 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2152 _result
= (int )wxImage_GetHeight(_arg0
);
2154 wxPyEndAllowThreads(__tstate
);
2155 if (PyErr_Occurred()) return NULL
;
2156 } _resultobj
= Py_BuildValue("i",_result
);
2160 #define wxImage_GetSubImage(_swigobj,_swigarg0) (_swigobj->GetSubImage(_swigarg0))
2161 static PyObject
*_wrap_wxImage_GetSubImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2162 PyObject
* _resultobj
;
2166 PyObject
* _argo0
= 0;
2168 PyObject
* _obj1
= 0;
2169 char *_kwnames
[] = { "self","rect", NULL
};
2173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetSubImage",_kwnames
,&_argo0
,&_obj1
))
2176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetSubImage. Expected _wxImage_p.");
2184 if (! wxRect_helper(_obj1
, &_arg1
))
2188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2189 _result
= new wxImage (wxImage_GetSubImage(_arg0
,*_arg1
));
2191 wxPyEndAllowThreads(__tstate
);
2192 if (PyErr_Occurred()) return NULL
;
2193 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2194 _resultobj
= Py_BuildValue("s",_ptemp
);
2198 #define wxImage_Copy(_swigobj) (_swigobj->Copy())
2199 static PyObject
*_wrap_wxImage_Copy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2200 PyObject
* _resultobj
;
2203 PyObject
* _argo0
= 0;
2204 char *_kwnames
[] = { "self", NULL
};
2208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Copy",_kwnames
,&_argo0
))
2211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Copy. Expected _wxImage_p.");
2218 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2219 _result
= new wxImage (wxImage_Copy(_arg0
));
2221 wxPyEndAllowThreads(__tstate
);
2222 if (PyErr_Occurred()) return NULL
;
2223 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2224 _resultobj
= Py_BuildValue("s",_ptemp
);
2228 #define wxImage_Paste(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Paste(_swigarg0,_swigarg1,_swigarg2))
2229 static PyObject
*_wrap_wxImage_Paste(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2230 PyObject
* _resultobj
;
2235 PyObject
* _argo0
= 0;
2236 PyObject
* _argo1
= 0;
2237 char *_kwnames
[] = { "self","image","x","y", NULL
};
2240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxImage_Paste",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
2243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Paste. Expected _wxImage_p.");
2250 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) {
2251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImage_Paste. Expected _wxImage_p.");
2256 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2257 wxImage_Paste(_arg0
,*_arg1
,_arg2
,_arg3
);
2259 wxPyEndAllowThreads(__tstate
);
2260 if (PyErr_Occurred()) return NULL
;
2261 } Py_INCREF(Py_None
);
2262 _resultobj
= Py_None
;
2266 static PyObject
* wxImage_GetDataBuffer(wxImage
*self
) {
2267 unsigned char* data
= self
->GetData();
2268 int len
= self
->GetWidth() * self
->GetHeight() * 3;
2269 return PyBuffer_FromReadWriteMemory(data
, len
);
2271 static PyObject
*_wrap_wxImage_GetDataBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2272 PyObject
* _resultobj
;
2275 PyObject
* _argo0
= 0;
2276 char *_kwnames
[] = { "self", NULL
};
2279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetDataBuffer",_kwnames
,&_argo0
))
2282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetDataBuffer. Expected _wxImage_p.");
2289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2290 _result
= (PyObject
*)wxImage_GetDataBuffer(_arg0
);
2292 wxPyEndAllowThreads(__tstate
);
2293 if (PyErr_Occurred()) return NULL
;
2295 _resultobj
= _result
;
2300 static PyObject
* wxImage_GetData(wxImage
*self
) {
2301 unsigned char* data
= self
->GetData();
2302 int len
= self
->GetWidth() * self
->GetHeight() * 3;
2303 return PyString_FromStringAndSize((char*)data
, len
);
2305 static PyObject
*_wrap_wxImage_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2306 PyObject
* _resultobj
;
2309 PyObject
* _argo0
= 0;
2310 char *_kwnames
[] = { "self", NULL
};
2313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetData",_kwnames
,&_argo0
))
2316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
2323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2324 _result
= (PyObject
*)wxImage_GetData(_arg0
);
2326 wxPyEndAllowThreads(__tstate
);
2327 if (PyErr_Occurred()) return NULL
;
2329 _resultobj
= _result
;
2334 static void wxImage_SetDataBuffer(wxImage
*self
,PyObject
* data
) {
2335 unsigned char* buffer
;
2338 if (!PyArg_Parse(data
, "w#", &buffer
, &size
))
2341 if (size
!= self
->GetWidth() * self
->GetHeight() * 3) {
2342 PyErr_SetString(PyExc_TypeError
, "Incorrect buffer size");
2346 self
->SetData(buffer
);
2348 static PyObject
*_wrap_wxImage_SetDataBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2349 PyObject
* _resultobj
;
2352 PyObject
* _argo0
= 0;
2353 PyObject
* _obj1
= 0;
2354 char *_kwnames
[] = { "self","data", NULL
};
2357 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetDataBuffer",_kwnames
,&_argo0
,&_obj1
))
2360 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2361 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2362 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetDataBuffer. Expected _wxImage_p.");
2370 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2371 wxImage_SetDataBuffer(_arg0
,_arg1
);
2373 wxPyEndAllowThreads(__tstate
);
2374 if (PyErr_Occurred()) return NULL
;
2375 } Py_INCREF(Py_None
);
2376 _resultobj
= Py_None
;
2380 static void wxImage_SetData(wxImage
*self
,PyObject
* data
) {
2381 unsigned char* dataPtr
;
2383 if (! PyString_Check(data
)) {
2384 PyErr_SetString(PyExc_TypeError
, "Expected string object");
2388 size_t len
= self
->GetWidth() * self
->GetHeight() * 3;
2389 dataPtr
= (unsigned char*) malloc(len
);
2390 memcpy(dataPtr
, PyString_AsString(data
), len
);
2391 self
->SetData(dataPtr
);
2392 // wxImage takes ownership of dataPtr...
2394 static PyObject
*_wrap_wxImage_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2395 PyObject
* _resultobj
;
2398 PyObject
* _argo0
= 0;
2399 PyObject
* _obj1
= 0;
2400 char *_kwnames
[] = { "self","data", NULL
};
2403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetData",_kwnames
,&_argo0
,&_obj1
))
2406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
2416 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2417 wxImage_SetData(_arg0
,_arg1
);
2419 wxPyEndAllowThreads(__tstate
);
2420 if (PyErr_Occurred()) return NULL
;
2421 } Py_INCREF(Py_None
);
2422 _resultobj
= Py_None
;
2426 #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
2427 static PyObject
*_wrap_wxImage_SetMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2428 PyObject
* _resultobj
;
2430 unsigned char _arg1
;
2431 unsigned char _arg2
;
2432 unsigned char _arg3
;
2433 PyObject
* _argo0
= 0;
2434 char *_kwnames
[] = { "self","r","g","b", NULL
};
2437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_SetMaskColour",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
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_SetMaskColour. Expected _wxImage_p.");
2447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2448 wxImage_SetMaskColour(_arg0
,_arg1
,_arg2
,_arg3
);
2450 wxPyEndAllowThreads(__tstate
);
2451 if (PyErr_Occurred()) return NULL
;
2452 } Py_INCREF(Py_None
);
2453 _resultobj
= Py_None
;
2457 #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
2458 static PyObject
*_wrap_wxImage_GetMaskRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2459 PyObject
* _resultobj
;
2460 unsigned char _result
;
2462 PyObject
* _argo0
= 0;
2463 char *_kwnames
[] = { "self", NULL
};
2466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskRed",_kwnames
,&_argo0
))
2469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
2476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2477 _result
= (unsigned char )wxImage_GetMaskRed(_arg0
);
2479 wxPyEndAllowThreads(__tstate
);
2480 if (PyErr_Occurred()) return NULL
;
2481 } _resultobj
= Py_BuildValue("b",_result
);
2485 #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
2486 static PyObject
*_wrap_wxImage_GetMaskGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2487 PyObject
* _resultobj
;
2488 unsigned char _result
;
2490 PyObject
* _argo0
= 0;
2491 char *_kwnames
[] = { "self", NULL
};
2494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskGreen",_kwnames
,&_argo0
))
2497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
2504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2505 _result
= (unsigned char )wxImage_GetMaskGreen(_arg0
);
2507 wxPyEndAllowThreads(__tstate
);
2508 if (PyErr_Occurred()) return NULL
;
2509 } _resultobj
= Py_BuildValue("b",_result
);
2513 #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
2514 static PyObject
*_wrap_wxImage_GetMaskBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2515 PyObject
* _resultobj
;
2516 unsigned char _result
;
2518 PyObject
* _argo0
= 0;
2519 char *_kwnames
[] = { "self", NULL
};
2522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskBlue",_kwnames
,&_argo0
))
2525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
2532 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2533 _result
= (unsigned char )wxImage_GetMaskBlue(_arg0
);
2535 wxPyEndAllowThreads(__tstate
);
2536 if (PyErr_Occurred()) return NULL
;
2537 } _resultobj
= Py_BuildValue("b",_result
);
2541 #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
2542 static PyObject
*_wrap_wxImage_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2543 PyObject
* _resultobj
;
2545 bool _arg1
= (bool ) TRUE
;
2546 PyObject
* _argo0
= 0;
2547 int tempbool1
= (int) TRUE
;
2548 char *_kwnames
[] = { "self","mask", NULL
};
2551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_SetMask",_kwnames
,&_argo0
,&tempbool1
))
2554 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2555 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
2560 _arg1
= (bool ) tempbool1
;
2562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2563 wxImage_SetMask(_arg0
,_arg1
);
2565 wxPyEndAllowThreads(__tstate
);
2566 if (PyErr_Occurred()) return NULL
;
2567 } Py_INCREF(Py_None
);
2568 _resultobj
= Py_None
;
2572 #define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
2573 static PyObject
*_wrap_wxImage_HasMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2574 PyObject
* _resultobj
;
2577 PyObject
* _argo0
= 0;
2578 char *_kwnames
[] = { "self", NULL
};
2581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_HasMask",_kwnames
,&_argo0
))
2584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
2591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2592 _result
= (bool )wxImage_HasMask(_arg0
);
2594 wxPyEndAllowThreads(__tstate
);
2595 if (PyErr_Occurred()) return NULL
;
2596 } _resultobj
= Py_BuildValue("i",_result
);
2600 #define wxImage_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2601 static PyObject
*_wrap_wxImage_Rotate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2602 PyObject
* _resultobj
;
2607 bool _arg3
= (bool ) TRUE
;
2608 wxPoint
* _arg4
= (wxPoint
*) NULL
;
2609 PyObject
* _argo0
= 0;
2611 PyObject
* _obj2
= 0;
2612 int tempbool3
= (int) TRUE
;
2614 PyObject
* _obj4
= 0;
2615 char *_kwnames
[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL
};
2619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OdO|iO:wxImage_Rotate",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
,&_obj4
))
2622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rotate. Expected _wxImage_p.");
2630 if (! wxPoint_helper(_obj2
, &_arg2
))
2633 _arg3
= (bool ) tempbool3
;
2637 if (! wxPoint_helper(_obj4
, &_arg4
))
2641 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2642 _result
= new wxImage (wxImage_Rotate(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
));
2644 wxPyEndAllowThreads(__tstate
);
2645 if (PyErr_Occurred()) return NULL
;
2646 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2647 _resultobj
= Py_BuildValue("s",_ptemp
);
2651 #define wxImage_Rotate90(_swigobj,_swigarg0) (_swigobj->Rotate90(_swigarg0))
2652 static PyObject
*_wrap_wxImage_Rotate90(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2653 PyObject
* _resultobj
;
2656 bool _arg1
= (bool ) TRUE
;
2657 PyObject
* _argo0
= 0;
2658 int tempbool1
= (int) TRUE
;
2659 char *_kwnames
[] = { "self","clockwise", NULL
};
2663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Rotate90",_kwnames
,&_argo0
,&tempbool1
))
2666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rotate90. Expected _wxImage_p.");
2672 _arg1
= (bool ) tempbool1
;
2674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2675 _result
= new wxImage (wxImage_Rotate90(_arg0
,_arg1
));
2677 wxPyEndAllowThreads(__tstate
);
2678 if (PyErr_Occurred()) return NULL
;
2679 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2680 _resultobj
= Py_BuildValue("s",_ptemp
);
2684 #define wxImage_Mirror(_swigobj,_swigarg0) (_swigobj->Mirror(_swigarg0))
2685 static PyObject
*_wrap_wxImage_Mirror(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2686 PyObject
* _resultobj
;
2689 bool _arg1
= (bool ) TRUE
;
2690 PyObject
* _argo0
= 0;
2691 int tempbool1
= (int) TRUE
;
2692 char *_kwnames
[] = { "self","horizontally", NULL
};
2696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Mirror",_kwnames
,&_argo0
,&tempbool1
))
2699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Mirror. Expected _wxImage_p.");
2705 _arg1
= (bool ) tempbool1
;
2707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2708 _result
= new wxImage (wxImage_Mirror(_arg0
,_arg1
));
2710 wxPyEndAllowThreads(__tstate
);
2711 if (PyErr_Occurred()) return NULL
;
2712 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2713 _resultobj
= Py_BuildValue("s",_ptemp
);
2717 #define wxImage_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2718 static PyObject
*_wrap_wxImage_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2719 PyObject
* _resultobj
;
2721 unsigned char _arg1
;
2722 unsigned char _arg2
;
2723 unsigned char _arg3
;
2724 unsigned char _arg4
;
2725 unsigned char _arg5
;
2726 unsigned char _arg6
;
2727 PyObject
* _argo0
= 0;
2728 char *_kwnames
[] = { "self","r1","g1","b1","r2","g2","b2", NULL
};
2731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbbbbb:wxImage_Replace",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
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_Replace. Expected _wxImage_p.");
2741 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2742 wxImage_Replace(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2744 wxPyEndAllowThreads(__tstate
);
2745 if (PyErr_Occurred()) return NULL
;
2746 } Py_INCREF(Py_None
);
2747 _resultobj
= Py_None
;
2751 #define wxImage_ConvertToMono(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ConvertToMono(_swigarg0,_swigarg1,_swigarg2))
2752 static PyObject
*_wrap_wxImage_ConvertToMono(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2753 PyObject
* _resultobj
;
2756 unsigned char _arg1
;
2757 unsigned char _arg2
;
2758 unsigned char _arg3
;
2759 PyObject
* _argo0
= 0;
2760 char *_kwnames
[] = { "self","r","g","b", NULL
};
2764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_ConvertToMono",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToMono. Expected _wxImage_p.");
2774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2775 _result
= new wxImage (wxImage_ConvertToMono(_arg0
,_arg1
,_arg2
,_arg3
));
2777 wxPyEndAllowThreads(__tstate
);
2778 if (PyErr_Occurred()) return NULL
;
2779 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2780 _resultobj
= Py_BuildValue("s",_ptemp
);
2784 #define wxImage_SetOption(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOption(_swigarg0,_swigarg1))
2785 static PyObject
*_wrap_wxImage_SetOption(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2786 PyObject
* _resultobj
;
2790 PyObject
* _argo0
= 0;
2791 PyObject
* _obj1
= 0;
2792 PyObject
* _obj2
= 0;
2793 char *_kwnames
[] = { "self","name","value", NULL
};
2796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SetOption",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetOption. Expected _wxImage_p.");
2806 _arg1
= wxString_in_helper(_obj1
);
2811 _arg2
= wxString_in_helper(_obj2
);
2816 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2817 wxImage_SetOption(_arg0
,*_arg1
,*_arg2
);
2819 wxPyEndAllowThreads(__tstate
);
2820 if (PyErr_Occurred()) return NULL
;
2821 } Py_INCREF(Py_None
);
2822 _resultobj
= Py_None
;
2834 #define wxImage_SetOptionInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOption(_swigarg0,_swigarg1))
2835 static PyObject
*_wrap_wxImage_SetOptionInt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2836 PyObject
* _resultobj
;
2840 PyObject
* _argo0
= 0;
2841 PyObject
* _obj1
= 0;
2842 char *_kwnames
[] = { "self","name","value", NULL
};
2845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SetOptionInt",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetOptionInt. Expected _wxImage_p.");
2855 _arg1
= wxString_in_helper(_obj1
);
2860 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2861 wxImage_SetOptionInt(_arg0
,*_arg1
,_arg2
);
2863 wxPyEndAllowThreads(__tstate
);
2864 if (PyErr_Occurred()) return NULL
;
2865 } Py_INCREF(Py_None
);
2866 _resultobj
= Py_None
;
2874 #define wxImage_GetOption(_swigobj,_swigarg0) (_swigobj->GetOption(_swigarg0))
2875 static PyObject
*_wrap_wxImage_GetOption(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2876 PyObject
* _resultobj
;
2880 PyObject
* _argo0
= 0;
2881 PyObject
* _obj1
= 0;
2882 char *_kwnames
[] = { "self","name", NULL
};
2885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetOption",_kwnames
,&_argo0
,&_obj1
))
2888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetOption. Expected _wxImage_p.");
2895 _arg1
= wxString_in_helper(_obj1
);
2900 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2901 _result
= new wxString (wxImage_GetOption(_arg0
,*_arg1
));
2903 wxPyEndAllowThreads(__tstate
);
2904 if (PyErr_Occurred()) return NULL
;
2907 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
2909 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2922 #define wxImage_GetOptionInt(_swigobj,_swigarg0) (_swigobj->GetOptionInt(_swigarg0))
2923 static PyObject
*_wrap_wxImage_GetOptionInt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2924 PyObject
* _resultobj
;
2928 PyObject
* _argo0
= 0;
2929 PyObject
* _obj1
= 0;
2930 char *_kwnames
[] = { "self","name", NULL
};
2933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetOptionInt",_kwnames
,&_argo0
,&_obj1
))
2936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetOptionInt. Expected _wxImage_p.");
2943 _arg1
= wxString_in_helper(_obj1
);
2948 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2949 _result
= (int )wxImage_GetOptionInt(_arg0
,*_arg1
);
2951 wxPyEndAllowThreads(__tstate
);
2952 if (PyErr_Occurred()) return NULL
;
2953 } _resultobj
= Py_BuildValue("i",_result
);
2961 #define wxImage_HasOption(_swigobj,_swigarg0) (_swigobj->HasOption(_swigarg0))
2962 static PyObject
*_wrap_wxImage_HasOption(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2963 PyObject
* _resultobj
;
2967 PyObject
* _argo0
= 0;
2968 PyObject
* _obj1
= 0;
2969 char *_kwnames
[] = { "self","name", NULL
};
2972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_HasOption",_kwnames
,&_argo0
,&_obj1
))
2975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasOption. Expected _wxImage_p.");
2982 _arg1
= wxString_in_helper(_obj1
);
2987 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2988 _result
= (bool )wxImage_HasOption(_arg0
,*_arg1
);
2990 wxPyEndAllowThreads(__tstate
);
2991 if (PyErr_Occurred()) return NULL
;
2992 } _resultobj
= Py_BuildValue("i",_result
);
3000 #define wxImage_CountColours(_swigobj,_swigarg0) (_swigobj->CountColours(_swigarg0))
3001 static PyObject
*_wrap_wxImage_CountColours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3002 PyObject
* _resultobj
;
3003 unsigned long _result
;
3005 unsigned long _arg1
= (unsigned long ) (unsigned long)-1;
3006 PyObject
* _argo0
= 0;
3007 char *_kwnames
[] = { "self","stopafter", NULL
};
3010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:wxImage_CountColours",_kwnames
,&_argo0
,&_arg1
))
3013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_CountColours. Expected _wxImage_p.");
3020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3021 _result
= (unsigned long )wxImage_CountColours(_arg0
,_arg1
);
3023 wxPyEndAllowThreads(__tstate
);
3024 if (PyErr_Occurred()) return NULL
;
3025 } _resultobj
= Py_BuildValue("l",_result
);
3029 static PyObject
*_wrap_wxImage_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3030 PyObject
* _resultobj
;
3031 wxImageHandler
* _arg0
;
3032 PyObject
* _argo0
= 0;
3033 char *_kwnames
[] = { "handler", NULL
};
3036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_AddHandler",_kwnames
,&_argo0
))
3039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
3041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
3046 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3047 wxImage::AddHandler(_arg0
);
3049 wxPyEndAllowThreads(__tstate
);
3050 if (PyErr_Occurred()) return NULL
;
3051 } Py_INCREF(Py_None
);
3052 _resultobj
= Py_None
;
3056 static PyObject
*_wrap_wxImage_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3057 PyObject
* _resultobj
;
3058 wxImageHandler
* _arg0
;
3059 PyObject
* _argo0
= 0;
3060 char *_kwnames
[] = { "handler", NULL
};
3063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_InsertHandler",_kwnames
,&_argo0
))
3066 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3067 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
3068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_InsertHandler. Expected _wxImageHandler_p.");
3073 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3074 wxImage::InsertHandler(_arg0
);
3076 wxPyEndAllowThreads(__tstate
);
3077 if (PyErr_Occurred()) return NULL
;
3078 } Py_INCREF(Py_None
);
3079 _resultobj
= Py_None
;
3083 static PyObject
*_wrap_wxImage_RemoveHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3084 PyObject
* _resultobj
;
3087 PyObject
* _obj0
= 0;
3088 char *_kwnames
[] = { "name", NULL
};
3091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_RemoveHandler",_kwnames
,&_obj0
))
3094 _arg0
= wxString_in_helper(_obj0
);
3099 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3100 _result
= (bool )wxImage::RemoveHandler(*_arg0
);
3102 wxPyEndAllowThreads(__tstate
);
3103 if (PyErr_Occurred()) return NULL
;
3104 } _resultobj
= Py_BuildValue("i",_result
);
3112 static wxBitmap
wxImage_ConvertToBitmap(wxImage
*self
) {
3113 wxBitmap
bitmap(*self
);
3116 static PyObject
*_wrap_wxImage_ConvertToBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3117 PyObject
* _resultobj
;
3120 PyObject
* _argo0
= 0;
3121 char *_kwnames
[] = { "self", NULL
};
3125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_ConvertToBitmap",_kwnames
,&_argo0
))
3128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
3135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3136 _result
= new wxBitmap (wxImage_ConvertToBitmap(_arg0
));
3138 wxPyEndAllowThreads(__tstate
);
3139 if (PyErr_Occurred()) return NULL
;
3140 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
3141 _resultobj
= Py_BuildValue("s",_ptemp
);
3145 static wxBitmap
wxImage_ConvertToMonoBitmap(wxImage
*self
,unsigned char red
,unsigned char green
,unsigned char blue
) {
3146 wxImage mono
= self
->ConvertToMono( red
, green
, blue
);
3147 wxBitmap
bitmap( mono
, 1 );
3150 static PyObject
*_wrap_wxImage_ConvertToMonoBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3151 PyObject
* _resultobj
;
3154 unsigned char _arg1
;
3155 unsigned char _arg2
;
3156 unsigned char _arg3
;
3157 PyObject
* _argo0
= 0;
3158 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_ConvertToMonoBitmap",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToMonoBitmap. Expected _wxImage_p.");
3172 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3173 _result
= new wxBitmap (wxImage_ConvertToMonoBitmap(_arg0
,_arg1
,_arg2
,_arg3
));
3175 wxPyEndAllowThreads(__tstate
);
3176 if (PyErr_Occurred()) return NULL
;
3177 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
3178 _resultobj
= Py_BuildValue("s",_ptemp
);
3182 static PyMethodDef imagecMethods
[] = {
3183 { "wxImage_ConvertToMonoBitmap", (PyCFunction
) _wrap_wxImage_ConvertToMonoBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3184 { "wxImage_ConvertToBitmap", (PyCFunction
) _wrap_wxImage_ConvertToBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3185 { "wxImage_RemoveHandler", (PyCFunction
) _wrap_wxImage_RemoveHandler
, METH_VARARGS
| METH_KEYWORDS
},
3186 { "wxImage_InsertHandler", (PyCFunction
) _wrap_wxImage_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
3187 { "wxImage_AddHandler", (PyCFunction
) _wrap_wxImage_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
3188 { "wxImage_CountColours", (PyCFunction
) _wrap_wxImage_CountColours
, METH_VARARGS
| METH_KEYWORDS
},
3189 { "wxImage_HasOption", (PyCFunction
) _wrap_wxImage_HasOption
, METH_VARARGS
| METH_KEYWORDS
},
3190 { "wxImage_GetOptionInt", (PyCFunction
) _wrap_wxImage_GetOptionInt
, METH_VARARGS
| METH_KEYWORDS
},
3191 { "wxImage_GetOption", (PyCFunction
) _wrap_wxImage_GetOption
, METH_VARARGS
| METH_KEYWORDS
},
3192 { "wxImage_SetOptionInt", (PyCFunction
) _wrap_wxImage_SetOptionInt
, METH_VARARGS
| METH_KEYWORDS
},
3193 { "wxImage_SetOption", (PyCFunction
) _wrap_wxImage_SetOption
, METH_VARARGS
| METH_KEYWORDS
},
3194 { "wxImage_ConvertToMono", (PyCFunction
) _wrap_wxImage_ConvertToMono
, METH_VARARGS
| METH_KEYWORDS
},
3195 { "wxImage_Replace", (PyCFunction
) _wrap_wxImage_Replace
, METH_VARARGS
| METH_KEYWORDS
},
3196 { "wxImage_Mirror", (PyCFunction
) _wrap_wxImage_Mirror
, METH_VARARGS
| METH_KEYWORDS
},
3197 { "wxImage_Rotate90", (PyCFunction
) _wrap_wxImage_Rotate90
, METH_VARARGS
| METH_KEYWORDS
},
3198 { "wxImage_Rotate", (PyCFunction
) _wrap_wxImage_Rotate
, METH_VARARGS
| METH_KEYWORDS
},
3199 { "wxImage_HasMask", (PyCFunction
) _wrap_wxImage_HasMask
, METH_VARARGS
| METH_KEYWORDS
},
3200 { "wxImage_SetMask", (PyCFunction
) _wrap_wxImage_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
3201 { "wxImage_GetMaskBlue", (PyCFunction
) _wrap_wxImage_GetMaskBlue
, METH_VARARGS
| METH_KEYWORDS
},
3202 { "wxImage_GetMaskGreen", (PyCFunction
) _wrap_wxImage_GetMaskGreen
, METH_VARARGS
| METH_KEYWORDS
},
3203 { "wxImage_GetMaskRed", (PyCFunction
) _wrap_wxImage_GetMaskRed
, METH_VARARGS
| METH_KEYWORDS
},
3204 { "wxImage_SetMaskColour", (PyCFunction
) _wrap_wxImage_SetMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
3205 { "wxImage_SetData", (PyCFunction
) _wrap_wxImage_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3206 { "wxImage_SetDataBuffer", (PyCFunction
) _wrap_wxImage_SetDataBuffer
, METH_VARARGS
| METH_KEYWORDS
},
3207 { "wxImage_GetData", (PyCFunction
) _wrap_wxImage_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3208 { "wxImage_GetDataBuffer", (PyCFunction
) _wrap_wxImage_GetDataBuffer
, METH_VARARGS
| METH_KEYWORDS
},
3209 { "wxImage_Paste", (PyCFunction
) _wrap_wxImage_Paste
, METH_VARARGS
| METH_KEYWORDS
},
3210 { "wxImage_Copy", (PyCFunction
) _wrap_wxImage_Copy
, METH_VARARGS
| METH_KEYWORDS
},
3211 { "wxImage_GetSubImage", (PyCFunction
) _wrap_wxImage_GetSubImage
, METH_VARARGS
| METH_KEYWORDS
},
3212 { "wxImage_GetHeight", (PyCFunction
) _wrap_wxImage_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
3213 { "wxImage_GetWidth", (PyCFunction
) _wrap_wxImage_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
3214 { "wxImage_Ok", (PyCFunction
) _wrap_wxImage_Ok
, METH_VARARGS
| METH_KEYWORDS
},
3215 { "wxImage_LoadMimeStream", (PyCFunction
) _wrap_wxImage_LoadMimeStream
, METH_VARARGS
| METH_KEYWORDS
},
3216 { "wxImage_LoadStream", (PyCFunction
) _wrap_wxImage_LoadStream
, METH_VARARGS
| METH_KEYWORDS
},
3217 { "wxImage_CanReadStream", (PyCFunction
) _wrap_wxImage_CanReadStream
, METH_VARARGS
| METH_KEYWORDS
},
3218 { "wxImage_SaveMimeFile", (PyCFunction
) _wrap_wxImage_SaveMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
3219 { "wxImage_SaveFile", (PyCFunction
) _wrap_wxImage_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
3220 { "wxImage_LoadMimeFile", (PyCFunction
) _wrap_wxImage_LoadMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
3221 { "wxImage_LoadFile", (PyCFunction
) _wrap_wxImage_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
3222 { "wxImage_GetImageCount", (PyCFunction
) _wrap_wxImage_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
3223 { "wxImage_CanRead", (PyCFunction
) _wrap_wxImage_CanRead
, METH_VARARGS
| METH_KEYWORDS
},
3224 { "wxImage_SetMaskFromImage", (PyCFunction
) _wrap_wxImage_SetMaskFromImage
, METH_VARARGS
| METH_KEYWORDS
},
3225 { "wxImage_FindFirstUnusedColour", (PyCFunction
) _wrap_wxImage_FindFirstUnusedColour
, METH_VARARGS
| METH_KEYWORDS
},
3226 { "wxImage_GetBlue", (PyCFunction
) _wrap_wxImage_GetBlue
, METH_VARARGS
| METH_KEYWORDS
},
3227 { "wxImage_GetGreen", (PyCFunction
) _wrap_wxImage_GetGreen
, METH_VARARGS
| METH_KEYWORDS
},
3228 { "wxImage_GetRed", (PyCFunction
) _wrap_wxImage_GetRed
, METH_VARARGS
| METH_KEYWORDS
},
3229 { "wxImage_SetRGB", (PyCFunction
) _wrap_wxImage_SetRGB
, METH_VARARGS
| METH_KEYWORDS
},
3230 { "wxImage_Rescale", (PyCFunction
) _wrap_wxImage_Rescale
, METH_VARARGS
| METH_KEYWORDS
},
3231 { "wxImage_Scale", (PyCFunction
) _wrap_wxImage_Scale
, METH_VARARGS
| METH_KEYWORDS
},
3232 { "wxImage_Destroy", (PyCFunction
) _wrap_wxImage_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3233 { "wxImage_Create", (PyCFunction
) _wrap_wxImage_Create
, METH_VARARGS
| METH_KEYWORDS
},
3234 { "delete_wxImage", (PyCFunction
) _wrap_delete_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
3235 { "new_wxImage", (PyCFunction
) _wrap_new_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
3236 { "new_wxTIFFHandler", (PyCFunction
) _wrap_new_wxTIFFHandler
, METH_VARARGS
| METH_KEYWORDS
},
3237 { "new_wxPCXHandler", (PyCFunction
) _wrap_new_wxPCXHandler
, METH_VARARGS
| METH_KEYWORDS
},
3238 { "new_wxPNMHandler", (PyCFunction
) _wrap_new_wxPNMHandler
, METH_VARARGS
| METH_KEYWORDS
},
3239 { "new_wxGIFHandler", (PyCFunction
) _wrap_new_wxGIFHandler
, METH_VARARGS
| METH_KEYWORDS
},
3240 { "new_wxANIHandler", (PyCFunction
) _wrap_new_wxANIHandler
, METH_VARARGS
| METH_KEYWORDS
},
3241 { "new_wxCURHandler", (PyCFunction
) _wrap_new_wxCURHandler
, METH_VARARGS
| METH_KEYWORDS
},
3242 { "new_wxICOHandler", (PyCFunction
) _wrap_new_wxICOHandler
, METH_VARARGS
| METH_KEYWORDS
},
3243 { "new_wxBMPHandler", (PyCFunction
) _wrap_new_wxBMPHandler
, METH_VARARGS
| METH_KEYWORDS
},
3244 { "new_wxJPEGHandler", (PyCFunction
) _wrap_new_wxJPEGHandler
, METH_VARARGS
| METH_KEYWORDS
},
3245 { "new_wxPNGHandler", (PyCFunction
) _wrap_new_wxPNGHandler
, METH_VARARGS
| METH_KEYWORDS
},
3246 { "wxImageHandler_SetMimeType", (PyCFunction
) _wrap_wxImageHandler_SetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
3247 { "wxImageHandler_SetType", (PyCFunction
) _wrap_wxImageHandler_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3248 { "wxImageHandler_SetExtension", (PyCFunction
) _wrap_wxImageHandler_SetExtension
, METH_VARARGS
| METH_KEYWORDS
},
3249 { "wxImageHandler_SetName", (PyCFunction
) _wrap_wxImageHandler_SetName
, METH_VARARGS
| METH_KEYWORDS
},
3250 { "wxImageHandler_CanRead", (PyCFunction
) _wrap_wxImageHandler_CanRead
, METH_VARARGS
| METH_KEYWORDS
},
3251 { "wxImageHandler_GetMimeType", (PyCFunction
) _wrap_wxImageHandler_GetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
3252 { "wxImageHandler_GetType", (PyCFunction
) _wrap_wxImageHandler_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3253 { "wxImageHandler_GetExtension", (PyCFunction
) _wrap_wxImageHandler_GetExtension
, METH_VARARGS
| METH_KEYWORDS
},
3254 { "wxImageHandler_GetName", (PyCFunction
) _wrap_wxImageHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
3255 { "wxBitmapFromImage", (PyCFunction
) _wrap_wxBitmapFromImage
, METH_VARARGS
| METH_KEYWORDS
},
3256 { "wxInitAllImageHandlers", (PyCFunction
) _wrap_wxInitAllImageHandlers
, METH_VARARGS
| METH_KEYWORDS
},
3257 { "wxImageFromStreamMime", (PyCFunction
) _wrap_wxImageFromStreamMime
, METH_VARARGS
| METH_KEYWORDS
},
3258 { "wxImageFromStream", (PyCFunction
) _wrap_wxImageFromStream
, METH_VARARGS
| METH_KEYWORDS
},
3259 { "wxImageFromData", (PyCFunction
) _wrap_wxImageFromData
, METH_VARARGS
| METH_KEYWORDS
},
3260 { "wxImageFromBitmap", (PyCFunction
) _wrap_wxImageFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3261 { "wxImageFromMime", (PyCFunction
) _wrap_wxImageFromMime
, METH_VARARGS
| METH_KEYWORDS
},
3262 { "wxEmptyImage", (PyCFunction
) _wrap_wxEmptyImage
, METH_VARARGS
| METH_KEYWORDS
},
3269 * This table is used by the pointer type-checker
3271 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3272 { "_signed_long","_long",0},
3273 { "_wxBMPHandler","_wxANIHandler",SwigwxANIHandlerTowxBMPHandler
},
3274 { "_wxBMPHandler","_wxCURHandler",SwigwxCURHandlerTowxBMPHandler
},
3275 { "_wxBMPHandler","_wxICOHandler",SwigwxICOHandlerTowxBMPHandler
},
3276 { "_wxICOHandler","_wxANIHandler",SwigwxANIHandlerTowxICOHandler
},
3277 { "_wxICOHandler","_wxCURHandler",SwigwxCURHandlerTowxICOHandler
},
3278 { "_wxPrintQuality","_wxCoord",0},
3279 { "_wxPrintQuality","_int",0},
3280 { "_wxPrintQuality","_signed_int",0},
3281 { "_wxPrintQuality","_unsigned_int",0},
3282 { "_wxPrintQuality","_wxWindowID",0},
3283 { "_wxPrintQuality","_uint",0},
3284 { "_wxPrintQuality","_EBool",0},
3285 { "_wxPrintQuality","_size_t",0},
3286 { "_wxPrintQuality","_time_t",0},
3287 { "_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler
},
3288 { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
},
3289 { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
},
3290 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
3291 { "_wxImageHandler","_wxANIHandler",SwigwxANIHandlerTowxImageHandler
},
3292 { "_wxImageHandler","_wxCURHandler",SwigwxCURHandlerTowxImageHandler
},
3293 { "_wxImageHandler","_wxICOHandler",SwigwxICOHandlerTowxImageHandler
},
3294 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
3295 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
3296 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
3297 { "_byte","_unsigned_char",0},
3298 { "_long","_unsigned_long",0},
3299 { "_long","_signed_long",0},
3300 { "_size_t","_wxCoord",0},
3301 { "_size_t","_wxPrintQuality",0},
3302 { "_size_t","_time_t",0},
3303 { "_size_t","_unsigned_int",0},
3304 { "_size_t","_int",0},
3305 { "_size_t","_wxWindowID",0},
3306 { "_size_t","_uint",0},
3307 { "_uint","_wxCoord",0},
3308 { "_uint","_wxPrintQuality",0},
3309 { "_uint","_time_t",0},
3310 { "_uint","_size_t",0},
3311 { "_uint","_unsigned_int",0},
3312 { "_uint","_int",0},
3313 { "_uint","_wxWindowID",0},
3314 { "_wxChar","_char",0},
3315 { "_char","_wxChar",0},
3316 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3317 { "_EBool","_wxCoord",0},
3318 { "_EBool","_wxPrintQuality",0},
3319 { "_EBool","_signed_int",0},
3320 { "_EBool","_int",0},
3321 { "_EBool","_wxWindowID",0},
3322 { "_unsigned_long","_long",0},
3323 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3324 { "_signed_int","_wxCoord",0},
3325 { "_signed_int","_wxPrintQuality",0},
3326 { "_signed_int","_EBool",0},
3327 { "_signed_int","_wxWindowID",0},
3328 { "_signed_int","_int",0},
3329 { "_WXTYPE","_short",0},
3330 { "_WXTYPE","_signed_short",0},
3331 { "_WXTYPE","_unsigned_short",0},
3332 { "_unsigned_short","_WXTYPE",0},
3333 { "_unsigned_short","_short",0},
3334 { "_wxObject","_wxImage",SwigwxImageTowxObject
},
3335 { "_wxObject","_wxTIFFHandler",SwigwxTIFFHandlerTowxObject
},
3336 { "_wxObject","_wxPCXHandler",SwigwxPCXHandlerTowxObject
},
3337 { "_wxObject","_wxPNMHandler",SwigwxPNMHandlerTowxObject
},
3338 { "_wxObject","_wxGIFHandler",SwigwxGIFHandlerTowxObject
},
3339 { "_wxObject","_wxANIHandler",SwigwxANIHandlerTowxObject
},
3340 { "_wxObject","_wxCURHandler",SwigwxCURHandlerTowxObject
},
3341 { "_wxObject","_wxICOHandler",SwigwxICOHandlerTowxObject
},
3342 { "_wxObject","_wxBMPHandler",SwigwxBMPHandlerTowxObject
},
3343 { "_wxObject","_wxJPEGHandler",SwigwxJPEGHandlerTowxObject
},
3344 { "_wxObject","_wxPNGHandler",SwigwxPNGHandlerTowxObject
},
3345 { "_wxObject","_wxImageHandler",SwigwxImageHandlerTowxObject
},
3346 { "_signed_short","_WXTYPE",0},
3347 { "_signed_short","_short",0},
3348 { "_wxCURHandler","_wxANIHandler",SwigwxANIHandlerTowxCURHandler
},
3349 { "_unsigned_char","_byte",0},
3350 { "_unsigned_int","_wxCoord",0},
3351 { "_unsigned_int","_wxPrintQuality",0},
3352 { "_unsigned_int","_time_t",0},
3353 { "_unsigned_int","_size_t",0},
3354 { "_unsigned_int","_uint",0},
3355 { "_unsigned_int","_wxWindowID",0},
3356 { "_unsigned_int","_int",0},
3357 { "_short","_WXTYPE",0},
3358 { "_short","_unsigned_short",0},
3359 { "_short","_signed_short",0},
3360 { "_wxWindowID","_wxCoord",0},
3361 { "_wxWindowID","_wxPrintQuality",0},
3362 { "_wxWindowID","_time_t",0},
3363 { "_wxWindowID","_size_t",0},
3364 { "_wxWindowID","_EBool",0},
3365 { "_wxWindowID","_uint",0},
3366 { "_wxWindowID","_int",0},
3367 { "_wxWindowID","_signed_int",0},
3368 { "_wxWindowID","_unsigned_int",0},
3369 { "_int","_wxCoord",0},
3370 { "_int","_wxPrintQuality",0},
3371 { "_int","_time_t",0},
3372 { "_int","_size_t",0},
3373 { "_int","_EBool",0},
3374 { "_int","_uint",0},
3375 { "_int","_wxWindowID",0},
3376 { "_int","_unsigned_int",0},
3377 { "_int","_signed_int",0},
3378 { "_time_t","_wxCoord",0},
3379 { "_time_t","_wxPrintQuality",0},
3380 { "_time_t","_unsigned_int",0},
3381 { "_time_t","_int",0},
3382 { "_time_t","_wxWindowID",0},
3383 { "_time_t","_uint",0},
3384 { "_time_t","_size_t",0},
3385 { "_wxCoord","_int",0},
3386 { "_wxCoord","_signed_int",0},
3387 { "_wxCoord","_unsigned_int",0},
3388 { "_wxCoord","_wxWindowID",0},
3389 { "_wxCoord","_uint",0},
3390 { "_wxCoord","_EBool",0},
3391 { "_wxCoord","_size_t",0},
3392 { "_wxCoord","_time_t",0},
3393 { "_wxCoord","_wxPrintQuality",0},
3396 static PyObject
*SWIG_globals
;
3400 SWIGEXPORT(void) initimagec() {
3402 SWIG_globals
= SWIG_newvarlink();
3403 m
= Py_InitModule("imagec", imagecMethods
);
3404 d
= PyModule_GetDict(m
);
3405 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3406 SWIG_addvarlink(SWIG_globals
,"wxNullImage",_wrap_wxNullImage_get
, _wrap_wxNullImage_set
);
3409 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3410 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);