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, bool clear
= TRUE
) {
89 if (width
> 0 && height
> 0)
90 return new wxImage(width
, height
, clear
);
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 bool _arg2
= (bool ) TRUE
;
147 int tempbool2
= (int) TRUE
;
148 char *_kwnames
[] = { "width","height","clear", NULL
};
152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|iii:wxEmptyImage",_kwnames
,&_arg0
,&_arg1
,&tempbool2
))
154 _arg2
= (bool ) tempbool2
;
156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
157 _result
= (wxImage
*)wxEmptyImage(_arg0
,_arg1
,_arg2
);
159 wxPyEndAllowThreads(__tstate
);
160 if (PyErr_Occurred()) return NULL
;
162 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
163 _resultobj
= Py_BuildValue("s",_ptemp
);
166 _resultobj
= Py_None
;
171 static PyObject
*_wrap_wxImageFromMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
172 PyObject
* _resultobj
;
176 int _arg2
= (int ) -1;
177 PyObject
* _obj0
= 0;
178 PyObject
* _obj1
= 0;
179 char *_kwnames
[] = { "name","mimetype","index", NULL
};
183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxImageFromMime",_kwnames
,&_obj0
,&_obj1
,&_arg2
))
186 _arg0
= wxString_in_helper(_obj0
);
191 _arg1
= wxString_in_helper(_obj1
);
196 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
197 _result
= (wxImage
*)wxImageFromMime(*_arg0
,*_arg1
,_arg2
);
199 wxPyEndAllowThreads(__tstate
);
200 if (PyErr_Occurred()) return NULL
;
202 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
203 _resultobj
= Py_BuildValue("s",_ptemp
);
206 _resultobj
= Py_None
;
219 static PyObject
*_wrap_wxImageFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
220 PyObject
* _resultobj
;
223 PyObject
* _argo0
= 0;
224 char *_kwnames
[] = { "bitmap", NULL
};
228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageFromBitmap",_kwnames
,&_argo0
))
231 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
237 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
238 _result
= (wxImage
*)wxImageFromBitmap(*_arg0
);
240 wxPyEndAllowThreads(__tstate
);
241 if (PyErr_Occurred()) return NULL
;
243 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
244 _resultobj
= Py_BuildValue("s",_ptemp
);
247 _resultobj
= Py_None
;
252 static PyObject
*_wrap_wxImageFromData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
253 PyObject
* _resultobj
;
257 unsigned char * _arg2
;
258 PyObject
* _argo2
= 0;
259 char *_kwnames
[] = { "width","height","data", NULL
};
263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiO:wxImageFromData",_kwnames
,&_arg0
,&_arg1
,&_argo2
))
266 if (_argo2
== Py_None
) { _arg2
= NULL
; }
267 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_unsigned_char_p")) {
268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageFromData. Expected _unsigned_char_p.");
273 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
274 _result
= (wxImage
*)wxImageFromData(_arg0
,_arg1
,_arg2
);
276 wxPyEndAllowThreads(__tstate
);
277 if (PyErr_Occurred()) return NULL
;
279 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
280 _resultobj
= Py_BuildValue("s",_ptemp
);
283 _resultobj
= Py_None
;
288 static PyObject
*_wrap_wxImageFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
289 PyObject
* _resultobj
;
291 wxInputStream
* _arg0
;
292 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
293 int _arg2
= (int ) -1;
294 wxPyInputStream
* temp
;
296 PyObject
* _obj0
= 0;
297 char *_kwnames
[] = { "stream","type","index", NULL
};
301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|li:wxImageFromStream",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
304 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
305 _arg0
= temp
->m_wxis
;
308 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
310 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
317 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
318 _result
= (wxImage
*)wxImageFromStream(*_arg0
,_arg1
,_arg2
);
320 wxPyEndAllowThreads(__tstate
);
321 if (PyErr_Occurred()) return NULL
;
323 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
324 _resultobj
= Py_BuildValue("s",_ptemp
);
327 _resultobj
= Py_None
;
336 static PyObject
*_wrap_wxImageFromStreamMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
337 PyObject
* _resultobj
;
339 wxInputStream
* _arg0
;
341 int _arg2
= (int ) -1;
342 wxPyInputStream
* temp
;
344 PyObject
* _obj0
= 0;
345 PyObject
* _obj1
= 0;
346 char *_kwnames
[] = { "stream","mimetype","index", NULL
};
350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxImageFromStreamMime",_kwnames
,&_obj0
,&_obj1
,&_arg2
))
353 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
354 _arg0
= temp
->m_wxis
;
357 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
359 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
366 _arg1
= wxString_in_helper(_obj1
);
371 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
372 _result
= (wxImage
*)wxImageFromStreamMime(*_arg0
,*_arg1
,_arg2
);
374 wxPyEndAllowThreads(__tstate
);
375 if (PyErr_Occurred()) return NULL
;
377 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
378 _resultobj
= Py_BuildValue("s",_ptemp
);
381 _resultobj
= Py_None
;
394 static PyObject
*_wrap_wxInitAllImageHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
395 PyObject
* _resultobj
;
396 char *_kwnames
[] = { NULL
};
399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxInitAllImageHandlers",_kwnames
))
402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
403 wxInitAllImageHandlers();
405 wxPyEndAllowThreads(__tstate
);
406 if (PyErr_Occurred()) return NULL
;
407 } Py_INCREF(Py_None
);
408 _resultobj
= Py_None
;
412 static int _wrap_wxNullImage_set(PyObject
*val
) {
414 PyErr_SetString(PyExc_TypeError
,"Variable wxNullImage is read-only.");
418 static PyObject
*_wrap_wxNullImage_get() {
422 SWIG_MakePtr(ptemp
,(char *) &wxNullImage
,"_wxImage_p");
423 pyobj
= PyString_FromString(ptemp
);
427 static PyObject
*_wrap_wxBitmapFromImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
428 PyObject
* _resultobj
;
431 int _arg1
= (int ) -1;
432 PyObject
* _argo0
= 0;
433 char *_kwnames
[] = { "img","depth", NULL
};
437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxBitmapFromImage",_kwnames
,&_argo0
,&_arg1
))
440 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromImage. Expected _wxImage_p.");
446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
447 _result
= (wxBitmap
*)wxBitmapFromImage(*_arg0
,_arg1
);
449 wxPyEndAllowThreads(__tstate
);
450 if (PyErr_Occurred()) return NULL
;
452 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
453 _resultobj
= Py_BuildValue("s",_ptemp
);
456 _resultobj
= Py_None
;
461 #define new_wxImageHistogram() (new wxImageHistogram())
462 static PyObject
*_wrap_new_wxImageHistogram(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
463 PyObject
* _resultobj
;
464 wxImageHistogram
* _result
;
465 char *_kwnames
[] = { NULL
};
469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxImageHistogram",_kwnames
))
472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
473 _result
= (wxImageHistogram
*)new_wxImageHistogram();
475 wxPyEndAllowThreads(__tstate
);
476 if (PyErr_Occurred()) return NULL
;
478 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageHistogram_p");
479 _resultobj
= Py_BuildValue("s",_ptemp
);
482 _resultobj
= Py_None
;
487 static PyObject
*_wrap_wxImageHistogram_MakeKey(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
488 PyObject
* _resultobj
;
489 unsigned long _result
;
493 char *_kwnames
[] = { "r","g","b", NULL
};
496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"bbb:wxImageHistogram_MakeKey",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
500 _result
= (unsigned long )wxImageHistogram::MakeKey(_arg0
,_arg1
,_arg2
);
502 wxPyEndAllowThreads(__tstate
);
503 if (PyErr_Occurred()) return NULL
;
504 } _resultobj
= Py_BuildValue("l",_result
);
508 #define wxImageHistogram_FindFirstUnusedColour(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->FindFirstUnusedColour(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
509 static PyObject
*_wrap_wxImageHistogram_FindFirstUnusedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
510 PyObject
* _resultobj
;
512 wxImageHistogram
* _arg0
;
513 unsigned char * _arg1
;
515 unsigned char * _arg2
;
517 unsigned char * _arg3
;
519 unsigned char _arg4
= (unsigned char ) 1;
520 unsigned char _arg5
= (unsigned char ) 0;
521 unsigned char _arg6
= (unsigned char ) 0;
522 PyObject
* _argo0
= 0;
523 char *_kwnames
[] = { "self","startR","startG","startB", NULL
};
535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|bbb:wxImageHistogram_FindFirstUnusedColour",_kwnames
,&_argo0
,&_arg4
,&_arg5
,&_arg6
))
538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHistogram_p")) {
540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHistogram_FindFirstUnusedColour. Expected _wxImageHistogram_p.");
545 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
546 _result
= (bool )wxImageHistogram_FindFirstUnusedColour(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
548 wxPyEndAllowThreads(__tstate
);
549 if (PyErr_Occurred()) return NULL
;
550 } _resultobj
= Py_BuildValue("i",_result
);
553 o
= PyInt_FromLong((long) (*_arg1
));
554 _resultobj
= t_output_helper(_resultobj
, o
);
558 o
= PyInt_FromLong((long) (*_arg2
));
559 _resultobj
= t_output_helper(_resultobj
, o
);
563 o
= PyInt_FromLong((long) (*_arg3
));
564 _resultobj
= t_output_helper(_resultobj
, o
);
569 static void *SwigwxImageHandlerTowxObject(void *ptr
) {
572 src
= (wxImageHandler
*) ptr
;
573 dest
= (wxObject
*) src
;
574 return (void *) dest
;
577 #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
578 static PyObject
*_wrap_wxImageHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
579 PyObject
* _resultobj
;
581 wxImageHandler
* _arg0
;
582 PyObject
* _argo0
= 0;
583 char *_kwnames
[] = { "self", NULL
};
586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetName",_kwnames
,&_argo0
))
589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
596 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
597 _result
= new wxString (wxImageHandler_GetName(_arg0
));
599 wxPyEndAllowThreads(__tstate
);
600 if (PyErr_Occurred()) return NULL
;
603 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
605 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
614 #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
615 static PyObject
*_wrap_wxImageHandler_GetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
616 PyObject
* _resultobj
;
618 wxImageHandler
* _arg0
;
619 PyObject
* _argo0
= 0;
620 char *_kwnames
[] = { "self", NULL
};
623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetExtension",_kwnames
,&_argo0
))
626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
633 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
634 _result
= new wxString (wxImageHandler_GetExtension(_arg0
));
636 wxPyEndAllowThreads(__tstate
);
637 if (PyErr_Occurred()) return NULL
;
640 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
642 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
651 #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
652 static PyObject
*_wrap_wxImageHandler_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
653 PyObject
* _resultobj
;
655 wxImageHandler
* _arg0
;
656 PyObject
* _argo0
= 0;
657 char *_kwnames
[] = { "self", NULL
};
660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetType",_kwnames
,&_argo0
))
663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
671 _result
= (long )wxImageHandler_GetType(_arg0
);
673 wxPyEndAllowThreads(__tstate
);
674 if (PyErr_Occurred()) return NULL
;
675 } _resultobj
= Py_BuildValue("l",_result
);
679 #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
680 static PyObject
*_wrap_wxImageHandler_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
681 PyObject
* _resultobj
;
683 wxImageHandler
* _arg0
;
684 PyObject
* _argo0
= 0;
685 char *_kwnames
[] = { "self", NULL
};
688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetMimeType",_kwnames
,&_argo0
))
691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
699 _result
= new wxString (wxImageHandler_GetMimeType(_arg0
));
701 wxPyEndAllowThreads(__tstate
);
702 if (PyErr_Occurred()) return NULL
;
705 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
707 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
716 #define wxImageHandler_CanRead(_swigobj,_swigarg0) (_swigobj->CanRead(_swigarg0))
717 static PyObject
*_wrap_wxImageHandler_CanRead(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
718 PyObject
* _resultobj
;
720 wxImageHandler
* _arg0
;
722 PyObject
* _argo0
= 0;
723 PyObject
* _obj1
= 0;
724 char *_kwnames
[] = { "self","name", NULL
};
727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_CanRead",_kwnames
,&_argo0
,&_obj1
))
730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_CanRead. Expected _wxImageHandler_p.");
737 _arg1
= wxString_in_helper(_obj1
);
742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
743 _result
= (bool )wxImageHandler_CanRead(_arg0
,*_arg1
);
745 wxPyEndAllowThreads(__tstate
);
746 if (PyErr_Occurred()) return NULL
;
747 } _resultobj
= Py_BuildValue("i",_result
);
755 #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
756 static PyObject
*_wrap_wxImageHandler_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
757 PyObject
* _resultobj
;
758 wxImageHandler
* _arg0
;
760 PyObject
* _argo0
= 0;
761 PyObject
* _obj1
= 0;
762 char *_kwnames
[] = { "self","name", NULL
};
765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetName",_kwnames
,&_argo0
,&_obj1
))
768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
775 _arg1
= wxString_in_helper(_obj1
);
780 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
781 wxImageHandler_SetName(_arg0
,*_arg1
);
783 wxPyEndAllowThreads(__tstate
);
784 if (PyErr_Occurred()) return NULL
;
785 } Py_INCREF(Py_None
);
786 _resultobj
= Py_None
;
794 #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
795 static PyObject
*_wrap_wxImageHandler_SetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
796 PyObject
* _resultobj
;
797 wxImageHandler
* _arg0
;
799 PyObject
* _argo0
= 0;
800 PyObject
* _obj1
= 0;
801 char *_kwnames
[] = { "self","extension", NULL
};
804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetExtension",_kwnames
,&_argo0
,&_obj1
))
807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
814 _arg1
= wxString_in_helper(_obj1
);
819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
820 wxImageHandler_SetExtension(_arg0
,*_arg1
);
822 wxPyEndAllowThreads(__tstate
);
823 if (PyErr_Occurred()) return NULL
;
824 } Py_INCREF(Py_None
);
825 _resultobj
= Py_None
;
833 #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
834 static PyObject
*_wrap_wxImageHandler_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
835 PyObject
* _resultobj
;
836 wxImageHandler
* _arg0
;
838 PyObject
* _argo0
= 0;
839 char *_kwnames
[] = { "self","type", NULL
};
842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxImageHandler_SetType",_kwnames
,&_argo0
,&_arg1
))
845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
852 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
853 wxImageHandler_SetType(_arg0
,_arg1
);
855 wxPyEndAllowThreads(__tstate
);
856 if (PyErr_Occurred()) return NULL
;
857 } Py_INCREF(Py_None
);
858 _resultobj
= Py_None
;
862 #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
863 static PyObject
*_wrap_wxImageHandler_SetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
864 PyObject
* _resultobj
;
865 wxImageHandler
* _arg0
;
867 PyObject
* _argo0
= 0;
868 PyObject
* _obj1
= 0;
869 char *_kwnames
[] = { "self","mimetype", NULL
};
872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetMimeType",_kwnames
,&_argo0
,&_obj1
))
875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
882 _arg1
= wxString_in_helper(_obj1
);
887 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
888 wxImageHandler_SetMimeType(_arg0
,*_arg1
);
890 wxPyEndAllowThreads(__tstate
);
891 if (PyErr_Occurred()) return NULL
;
892 } Py_INCREF(Py_None
);
893 _resultobj
= Py_None
;
901 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr
) {
903 wxImageHandler
*dest
;
904 src
= (wxPNGHandler
*) ptr
;
905 dest
= (wxImageHandler
*) src
;
906 return (void *) dest
;
909 static void *SwigwxPNGHandlerTowxObject(void *ptr
) {
912 src
= (wxPNGHandler
*) ptr
;
913 dest
= (wxObject
*) src
;
914 return (void *) dest
;
917 #define new_wxPNGHandler() (new wxPNGHandler())
918 static PyObject
*_wrap_new_wxPNGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
919 PyObject
* _resultobj
;
920 wxPNGHandler
* _result
;
921 char *_kwnames
[] = { NULL
};
925 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNGHandler",_kwnames
))
928 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
929 _result
= (wxPNGHandler
*)new_wxPNGHandler();
931 wxPyEndAllowThreads(__tstate
);
932 if (PyErr_Occurred()) return NULL
;
934 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNGHandler_p");
935 _resultobj
= Py_BuildValue("s",_ptemp
);
938 _resultobj
= Py_None
;
943 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr
) {
945 wxImageHandler
*dest
;
946 src
= (wxJPEGHandler
*) ptr
;
947 dest
= (wxImageHandler
*) src
;
948 return (void *) dest
;
951 static void *SwigwxJPEGHandlerTowxObject(void *ptr
) {
954 src
= (wxJPEGHandler
*) ptr
;
955 dest
= (wxObject
*) src
;
956 return (void *) dest
;
959 #define new_wxJPEGHandler() (new wxJPEGHandler())
960 static PyObject
*_wrap_new_wxJPEGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
961 PyObject
* _resultobj
;
962 wxJPEGHandler
* _result
;
963 char *_kwnames
[] = { NULL
};
967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxJPEGHandler",_kwnames
))
970 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
971 _result
= (wxJPEGHandler
*)new_wxJPEGHandler();
973 wxPyEndAllowThreads(__tstate
);
974 if (PyErr_Occurred()) return NULL
;
976 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxJPEGHandler_p");
977 _resultobj
= Py_BuildValue("s",_ptemp
);
980 _resultobj
= Py_None
;
985 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr
) {
987 wxImageHandler
*dest
;
988 src
= (wxBMPHandler
*) ptr
;
989 dest
= (wxImageHandler
*) src
;
990 return (void *) dest
;
993 static void *SwigwxBMPHandlerTowxObject(void *ptr
) {
996 src
= (wxBMPHandler
*) ptr
;
997 dest
= (wxObject
*) src
;
998 return (void *) dest
;
1001 #define new_wxBMPHandler() (new wxBMPHandler())
1002 static PyObject
*_wrap_new_wxBMPHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1003 PyObject
* _resultobj
;
1004 wxBMPHandler
* _result
;
1005 char *_kwnames
[] = { NULL
};
1009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxBMPHandler",_kwnames
))
1012 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1013 _result
= (wxBMPHandler
*)new_wxBMPHandler();
1015 wxPyEndAllowThreads(__tstate
);
1016 if (PyErr_Occurred()) return NULL
;
1018 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBMPHandler_p");
1019 _resultobj
= Py_BuildValue("s",_ptemp
);
1022 _resultobj
= Py_None
;
1027 static void *SwigwxICOHandlerTowxBMPHandler(void *ptr
) {
1030 src
= (wxICOHandler
*) ptr
;
1031 dest
= (wxBMPHandler
*) src
;
1032 return (void *) dest
;
1035 static void *SwigwxICOHandlerTowxImageHandler(void *ptr
) {
1037 wxImageHandler
*dest
;
1038 src
= (wxICOHandler
*) ptr
;
1039 dest
= (wxImageHandler
*) src
;
1040 return (void *) dest
;
1043 static void *SwigwxICOHandlerTowxObject(void *ptr
) {
1046 src
= (wxICOHandler
*) ptr
;
1047 dest
= (wxObject
*) src
;
1048 return (void *) dest
;
1051 #define new_wxICOHandler() (new wxICOHandler())
1052 static PyObject
*_wrap_new_wxICOHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1053 PyObject
* _resultobj
;
1054 wxICOHandler
* _result
;
1055 char *_kwnames
[] = { NULL
};
1059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxICOHandler",_kwnames
))
1062 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1063 _result
= (wxICOHandler
*)new_wxICOHandler();
1065 wxPyEndAllowThreads(__tstate
);
1066 if (PyErr_Occurred()) return NULL
;
1068 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxICOHandler_p");
1069 _resultobj
= Py_BuildValue("s",_ptemp
);
1072 _resultobj
= Py_None
;
1077 static void *SwigwxCURHandlerTowxICOHandler(void *ptr
) {
1080 src
= (wxCURHandler
*) ptr
;
1081 dest
= (wxICOHandler
*) src
;
1082 return (void *) dest
;
1085 static void *SwigwxCURHandlerTowxBMPHandler(void *ptr
) {
1088 src
= (wxCURHandler
*) ptr
;
1089 dest
= (wxBMPHandler
*) src
;
1090 return (void *) dest
;
1093 static void *SwigwxCURHandlerTowxImageHandler(void *ptr
) {
1095 wxImageHandler
*dest
;
1096 src
= (wxCURHandler
*) ptr
;
1097 dest
= (wxImageHandler
*) src
;
1098 return (void *) dest
;
1101 static void *SwigwxCURHandlerTowxObject(void *ptr
) {
1104 src
= (wxCURHandler
*) ptr
;
1105 dest
= (wxObject
*) src
;
1106 return (void *) dest
;
1109 #define new_wxCURHandler() (new wxCURHandler())
1110 static PyObject
*_wrap_new_wxCURHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1111 PyObject
* _resultobj
;
1112 wxCURHandler
* _result
;
1113 char *_kwnames
[] = { NULL
};
1117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxCURHandler",_kwnames
))
1120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1121 _result
= (wxCURHandler
*)new_wxCURHandler();
1123 wxPyEndAllowThreads(__tstate
);
1124 if (PyErr_Occurred()) return NULL
;
1126 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCURHandler_p");
1127 _resultobj
= Py_BuildValue("s",_ptemp
);
1130 _resultobj
= Py_None
;
1135 static void *SwigwxANIHandlerTowxCURHandler(void *ptr
) {
1138 src
= (wxANIHandler
*) ptr
;
1139 dest
= (wxCURHandler
*) src
;
1140 return (void *) dest
;
1143 static void *SwigwxANIHandlerTowxICOHandler(void *ptr
) {
1146 src
= (wxANIHandler
*) ptr
;
1147 dest
= (wxICOHandler
*) src
;
1148 return (void *) dest
;
1151 static void *SwigwxANIHandlerTowxBMPHandler(void *ptr
) {
1154 src
= (wxANIHandler
*) ptr
;
1155 dest
= (wxBMPHandler
*) src
;
1156 return (void *) dest
;
1159 static void *SwigwxANIHandlerTowxImageHandler(void *ptr
) {
1161 wxImageHandler
*dest
;
1162 src
= (wxANIHandler
*) ptr
;
1163 dest
= (wxImageHandler
*) src
;
1164 return (void *) dest
;
1167 static void *SwigwxANIHandlerTowxObject(void *ptr
) {
1170 src
= (wxANIHandler
*) ptr
;
1171 dest
= (wxObject
*) src
;
1172 return (void *) dest
;
1175 #define new_wxANIHandler() (new wxANIHandler())
1176 static PyObject
*_wrap_new_wxANIHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1177 PyObject
* _resultobj
;
1178 wxANIHandler
* _result
;
1179 char *_kwnames
[] = { NULL
};
1183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxANIHandler",_kwnames
))
1186 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1187 _result
= (wxANIHandler
*)new_wxANIHandler();
1189 wxPyEndAllowThreads(__tstate
);
1190 if (PyErr_Occurred()) return NULL
;
1192 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxANIHandler_p");
1193 _resultobj
= Py_BuildValue("s",_ptemp
);
1196 _resultobj
= Py_None
;
1201 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr
) {
1203 wxImageHandler
*dest
;
1204 src
= (wxGIFHandler
*) ptr
;
1205 dest
= (wxImageHandler
*) src
;
1206 return (void *) dest
;
1209 static void *SwigwxGIFHandlerTowxObject(void *ptr
) {
1212 src
= (wxGIFHandler
*) ptr
;
1213 dest
= (wxObject
*) src
;
1214 return (void *) dest
;
1217 #define new_wxGIFHandler() (new wxGIFHandler())
1218 static PyObject
*_wrap_new_wxGIFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1219 PyObject
* _resultobj
;
1220 wxGIFHandler
* _result
;
1221 char *_kwnames
[] = { NULL
};
1225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGIFHandler",_kwnames
))
1228 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1229 _result
= (wxGIFHandler
*)new_wxGIFHandler();
1231 wxPyEndAllowThreads(__tstate
);
1232 if (PyErr_Occurred()) return NULL
;
1234 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGIFHandler_p");
1235 _resultobj
= Py_BuildValue("s",_ptemp
);
1238 _resultobj
= Py_None
;
1243 static void *SwigwxPNMHandlerTowxImageHandler(void *ptr
) {
1245 wxImageHandler
*dest
;
1246 src
= (wxPNMHandler
*) ptr
;
1247 dest
= (wxImageHandler
*) src
;
1248 return (void *) dest
;
1251 static void *SwigwxPNMHandlerTowxObject(void *ptr
) {
1254 src
= (wxPNMHandler
*) ptr
;
1255 dest
= (wxObject
*) src
;
1256 return (void *) dest
;
1259 #define new_wxPNMHandler() (new wxPNMHandler())
1260 static PyObject
*_wrap_new_wxPNMHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1261 PyObject
* _resultobj
;
1262 wxPNMHandler
* _result
;
1263 char *_kwnames
[] = { NULL
};
1267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNMHandler",_kwnames
))
1270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1271 _result
= (wxPNMHandler
*)new_wxPNMHandler();
1273 wxPyEndAllowThreads(__tstate
);
1274 if (PyErr_Occurred()) return NULL
;
1276 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNMHandler_p");
1277 _resultobj
= Py_BuildValue("s",_ptemp
);
1280 _resultobj
= Py_None
;
1285 static void *SwigwxPCXHandlerTowxImageHandler(void *ptr
) {
1287 wxImageHandler
*dest
;
1288 src
= (wxPCXHandler
*) ptr
;
1289 dest
= (wxImageHandler
*) src
;
1290 return (void *) dest
;
1293 static void *SwigwxPCXHandlerTowxObject(void *ptr
) {
1296 src
= (wxPCXHandler
*) ptr
;
1297 dest
= (wxObject
*) src
;
1298 return (void *) dest
;
1301 #define new_wxPCXHandler() (new wxPCXHandler())
1302 static PyObject
*_wrap_new_wxPCXHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1303 PyObject
* _resultobj
;
1304 wxPCXHandler
* _result
;
1305 char *_kwnames
[] = { NULL
};
1309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPCXHandler",_kwnames
))
1312 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1313 _result
= (wxPCXHandler
*)new_wxPCXHandler();
1315 wxPyEndAllowThreads(__tstate
);
1316 if (PyErr_Occurred()) return NULL
;
1318 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPCXHandler_p");
1319 _resultobj
= Py_BuildValue("s",_ptemp
);
1322 _resultobj
= Py_None
;
1327 static void *SwigwxTIFFHandlerTowxImageHandler(void *ptr
) {
1329 wxImageHandler
*dest
;
1330 src
= (wxTIFFHandler
*) ptr
;
1331 dest
= (wxImageHandler
*) src
;
1332 return (void *) dest
;
1335 static void *SwigwxTIFFHandlerTowxObject(void *ptr
) {
1338 src
= (wxTIFFHandler
*) ptr
;
1339 dest
= (wxObject
*) src
;
1340 return (void *) dest
;
1343 #define new_wxTIFFHandler() (new wxTIFFHandler())
1344 static PyObject
*_wrap_new_wxTIFFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1345 PyObject
* _resultobj
;
1346 wxTIFFHandler
* _result
;
1347 char *_kwnames
[] = { NULL
};
1351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTIFFHandler",_kwnames
))
1354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1355 _result
= (wxTIFFHandler
*)new_wxTIFFHandler();
1357 wxPyEndAllowThreads(__tstate
);
1358 if (PyErr_Occurred()) return NULL
;
1360 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTIFFHandler_p");
1361 _resultobj
= Py_BuildValue("s",_ptemp
);
1364 _resultobj
= Py_None
;
1369 static void *SwigwxImageTowxObject(void *ptr
) {
1372 src
= (wxImage
*) ptr
;
1373 dest
= (wxObject
*) src
;
1374 return (void *) dest
;
1377 #define new_wxImage(_swigarg0,_swigarg1,_swigarg2) (new wxImage(_swigarg0,_swigarg1,_swigarg2))
1378 static PyObject
*_wrap_new_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1379 PyObject
* _resultobj
;
1382 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
1383 int _arg2
= (int ) -1;
1384 PyObject
* _obj0
= 0;
1385 char *_kwnames
[] = { "name","type","index", NULL
};
1389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|li:new_wxImage",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
1392 _arg0
= wxString_in_helper(_obj0
);
1397 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1398 _result
= (wxImage
*)new_wxImage(*_arg0
,_arg1
,_arg2
);
1400 wxPyEndAllowThreads(__tstate
);
1401 if (PyErr_Occurred()) return NULL
;
1403 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
1404 _resultobj
= Py_BuildValue("s",_ptemp
);
1407 _resultobj
= Py_None
;
1416 #define delete_wxImage(_swigobj) (delete _swigobj)
1417 static PyObject
*_wrap_delete_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1418 PyObject
* _resultobj
;
1420 PyObject
* _argo0
= 0;
1421 char *_kwnames
[] = { "self", NULL
};
1424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImage",_kwnames
,&_argo0
))
1427 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1428 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
1434 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1435 delete_wxImage(_arg0
);
1437 wxPyEndAllowThreads(__tstate
);
1438 if (PyErr_Occurred()) return NULL
;
1439 } Py_INCREF(Py_None
);
1440 _resultobj
= Py_None
;
1444 #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
1445 static PyObject
*_wrap_wxImage_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1446 PyObject
* _resultobj
;
1450 PyObject
* _argo0
= 0;
1451 char *_kwnames
[] = { "self","width","height", NULL
};
1454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Create",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
1464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1465 wxImage_Create(_arg0
,_arg1
,_arg2
);
1467 wxPyEndAllowThreads(__tstate
);
1468 if (PyErr_Occurred()) return NULL
;
1469 } Py_INCREF(Py_None
);
1470 _resultobj
= Py_None
;
1474 #define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
1475 static PyObject
*_wrap_wxImage_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1476 PyObject
* _resultobj
;
1478 PyObject
* _argo0
= 0;
1479 char *_kwnames
[] = { "self", NULL
};
1482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Destroy",_kwnames
,&_argo0
))
1485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
1492 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1493 wxImage_Destroy(_arg0
);
1495 wxPyEndAllowThreads(__tstate
);
1496 if (PyErr_Occurred()) return NULL
;
1497 } Py_INCREF(Py_None
);
1498 _resultobj
= Py_None
;
1502 #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
1503 static PyObject
*_wrap_wxImage_Scale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1504 PyObject
* _resultobj
;
1509 PyObject
* _argo0
= 0;
1510 char *_kwnames
[] = { "self","width","height", NULL
};
1514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Scale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
1524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1525 _result
= new wxImage (wxImage_Scale(_arg0
,_arg1
,_arg2
));
1527 wxPyEndAllowThreads(__tstate
);
1528 if (PyErr_Occurred()) return NULL
;
1529 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1530 _resultobj
= Py_BuildValue("s",_ptemp
);
1534 #define wxImage_ShrinkBy(_swigobj,_swigarg0,_swigarg1) (_swigobj->ShrinkBy(_swigarg0,_swigarg1))
1535 static PyObject
*_wrap_wxImage_ShrinkBy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1536 PyObject
* _resultobj
;
1541 PyObject
* _argo0
= 0;
1542 char *_kwnames
[] = { "self","xFactor","yFactor", NULL
};
1546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_ShrinkBy",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ShrinkBy. Expected _wxImage_p.");
1556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1557 _result
= new wxImage (wxImage_ShrinkBy(_arg0
,_arg1
,_arg2
));
1559 wxPyEndAllowThreads(__tstate
);
1560 if (PyErr_Occurred()) return NULL
;
1561 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1562 _resultobj
= Py_BuildValue("s",_ptemp
);
1566 #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
1567 static PyObject
*_wrap_wxImage_Rescale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1568 PyObject
* _resultobj
;
1573 PyObject
* _argo0
= 0;
1574 char *_kwnames
[] = { "self","width","height", NULL
};
1578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Rescale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
1588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1589 wxImage
& _result_ref
= wxImage_Rescale(_arg0
,_arg1
,_arg2
);
1590 _result
= (wxImage
*) &_result_ref
;
1592 wxPyEndAllowThreads(__tstate
);
1593 if (PyErr_Occurred()) return NULL
;
1595 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
1596 _resultobj
= Py_BuildValue("s",_ptemp
);
1599 _resultobj
= Py_None
;
1604 #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1605 static PyObject
*_wrap_wxImage_SetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1606 PyObject
* _resultobj
;
1610 unsigned char _arg3
;
1611 unsigned char _arg4
;
1612 unsigned char _arg5
;
1613 PyObject
* _argo0
= 0;
1614 char *_kwnames
[] = { "self","x","y","r","g","b", NULL
};
1617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiibbb:wxImage_SetRGB",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
1620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
1627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1628 wxImage_SetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
1630 wxPyEndAllowThreads(__tstate
);
1631 if (PyErr_Occurred()) return NULL
;
1632 } Py_INCREF(Py_None
);
1633 _resultobj
= Py_None
;
1637 #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
1638 static PyObject
*_wrap_wxImage_GetRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1639 PyObject
* _resultobj
;
1640 unsigned char _result
;
1644 PyObject
* _argo0
= 0;
1645 char *_kwnames
[] = { "self","x","y", NULL
};
1648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetRed",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1651 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1652 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
1658 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1659 _result
= (unsigned char )wxImage_GetRed(_arg0
,_arg1
,_arg2
);
1661 wxPyEndAllowThreads(__tstate
);
1662 if (PyErr_Occurred()) return NULL
;
1663 } _resultobj
= Py_BuildValue("b",_result
);
1667 #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
1668 static PyObject
*_wrap_wxImage_GetGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1669 PyObject
* _resultobj
;
1670 unsigned char _result
;
1674 PyObject
* _argo0
= 0;
1675 char *_kwnames
[] = { "self","x","y", NULL
};
1678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetGreen",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1688 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1689 _result
= (unsigned char )wxImage_GetGreen(_arg0
,_arg1
,_arg2
);
1691 wxPyEndAllowThreads(__tstate
);
1692 if (PyErr_Occurred()) return NULL
;
1693 } _resultobj
= Py_BuildValue("b",_result
);
1697 #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
1698 static PyObject
*_wrap_wxImage_GetBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1699 PyObject
* _resultobj
;
1700 unsigned char _result
;
1704 PyObject
* _argo0
= 0;
1705 char *_kwnames
[] = { "self","x","y", NULL
};
1708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetBlue",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1719 _result
= (unsigned char )wxImage_GetBlue(_arg0
,_arg1
,_arg2
);
1721 wxPyEndAllowThreads(__tstate
);
1722 if (PyErr_Occurred()) return NULL
;
1723 } _resultobj
= Py_BuildValue("b",_result
);
1727 #define wxImage_SetAlpha(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetAlpha(_swigarg0,_swigarg1,_swigarg2))
1728 static PyObject
*_wrap_wxImage_SetAlpha(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1729 PyObject
* _resultobj
;
1733 unsigned char _arg3
;
1734 PyObject
* _argo0
= 0;
1735 char *_kwnames
[] = { "self","x","y","alpha", NULL
};
1738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiib:wxImage_SetAlpha",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetAlpha. Expected _wxImage_p.");
1748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1749 wxImage_SetAlpha(_arg0
,_arg1
,_arg2
,_arg3
);
1751 wxPyEndAllowThreads(__tstate
);
1752 if (PyErr_Occurred()) return NULL
;
1753 } Py_INCREF(Py_None
);
1754 _resultobj
= Py_None
;
1758 #define wxImage_GetAlpha(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAlpha(_swigarg0,_swigarg1))
1759 static PyObject
*_wrap_wxImage_GetAlpha(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1760 PyObject
* _resultobj
;
1761 unsigned char _result
;
1765 PyObject
* _argo0
= 0;
1766 char *_kwnames
[] = { "self","x","y", NULL
};
1769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetAlpha",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetAlpha. Expected _wxImage_p.");
1779 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1780 _result
= (unsigned char )wxImage_GetAlpha(_arg0
,_arg1
,_arg2
);
1782 wxPyEndAllowThreads(__tstate
);
1783 if (PyErr_Occurred()) return NULL
;
1784 } _resultobj
= Py_BuildValue("b",_result
);
1788 #define wxImage_HasAlpha(_swigobj) (_swigobj->HasAlpha())
1789 static PyObject
*_wrap_wxImage_HasAlpha(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1790 PyObject
* _resultobj
;
1793 PyObject
* _argo0
= 0;
1794 char *_kwnames
[] = { "self", NULL
};
1797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_HasAlpha",_kwnames
,&_argo0
))
1800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasAlpha. Expected _wxImage_p.");
1807 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1808 _result
= (bool )wxImage_HasAlpha(_arg0
);
1810 wxPyEndAllowThreads(__tstate
);
1811 if (PyErr_Occurred()) return NULL
;
1812 } _resultobj
= Py_BuildValue("i",_result
);
1816 #define wxImage_FindFirstUnusedColour(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->FindFirstUnusedColour(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1817 static PyObject
*_wrap_wxImage_FindFirstUnusedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1818 PyObject
* _resultobj
;
1827 byte _arg4
= (byte
) 0;
1828 byte _arg5
= (byte
) 0;
1829 byte _arg6
= (byte
) 0;
1830 PyObject
* _argo0
= 0;
1831 char *_kwnames
[] = { "self","startR","startG","startB", NULL
};
1835 _arg1
= (byte
*)&temp
;
1838 _arg2
= (byte
*)&temp0
;
1841 _arg3
= (byte
*)&temp1
;
1843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|bbb:wxImage_FindFirstUnusedColour",_kwnames
,&_argo0
,&_arg4
,&_arg5
,&_arg6
))
1846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_FindFirstUnusedColour. Expected _wxImage_p.");
1853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1854 _result
= (bool )wxImage_FindFirstUnusedColour(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
1856 wxPyEndAllowThreads(__tstate
);
1857 if (PyErr_Occurred()) return NULL
;
1858 } _resultobj
= Py_BuildValue("i",_result
);
1861 o
= PyInt_FromLong((long) (*_arg1
));
1862 _resultobj
= t_output_helper(_resultobj
, o
);
1866 o
= PyInt_FromLong((long) (*_arg2
));
1867 _resultobj
= t_output_helper(_resultobj
, o
);
1871 o
= PyInt_FromLong((long) (*_arg3
));
1872 _resultobj
= t_output_helper(_resultobj
, o
);
1877 #define wxImage_SetMaskFromImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetMaskFromImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1878 static PyObject
*_wrap_wxImage_SetMaskFromImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1879 PyObject
* _resultobj
;
1886 PyObject
* _argo0
= 0;
1887 PyObject
* _argo1
= 0;
1888 char *_kwnames
[] = { "self","mask","mr","mg","mb", NULL
};
1891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OObbb:wxImage_SetMaskFromImage",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
1894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskFromImage. Expected _wxImage_p.");
1901 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) {
1902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImage_SetMaskFromImage. Expected _wxImage_p.");
1907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1908 _result
= (bool )wxImage_SetMaskFromImage(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
1910 wxPyEndAllowThreads(__tstate
);
1911 if (PyErr_Occurred()) return NULL
;
1912 } _resultobj
= Py_BuildValue("i",_result
);
1916 static PyObject
*_wrap_wxImage_CanRead(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1917 PyObject
* _resultobj
;
1920 PyObject
* _obj0
= 0;
1921 char *_kwnames
[] = { "name", NULL
};
1924 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_CanRead",_kwnames
,&_obj0
))
1927 _arg0
= wxString_in_helper(_obj0
);
1932 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1933 _result
= (bool )wxImage::CanRead(*_arg0
);
1935 wxPyEndAllowThreads(__tstate
);
1936 if (PyErr_Occurred()) return NULL
;
1937 } _resultobj
= Py_BuildValue("i",_result
);
1945 static PyObject
*_wrap_wxImage_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1946 PyObject
* _resultobj
;
1949 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
1950 PyObject
* _obj0
= 0;
1951 char *_kwnames
[] = { "name","type", NULL
};
1954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:wxImage_GetImageCount",_kwnames
,&_obj0
,&_arg1
))
1957 _arg0
= wxString_in_helper(_obj0
);
1962 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1963 _result
= (int )wxImage::GetImageCount(*_arg0
,_arg1
);
1965 wxPyEndAllowThreads(__tstate
);
1966 if (PyErr_Occurred()) return NULL
;
1967 } _resultobj
= Py_BuildValue("i",_result
);
1975 #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
1976 static PyObject
*_wrap_wxImage_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1977 PyObject
* _resultobj
;
1981 long _arg2
= (long ) wxBITMAP_TYPE_ANY
;
1982 int _arg3
= (int ) -1;
1983 PyObject
* _argo0
= 0;
1984 PyObject
* _obj1
= 0;
1985 char *_kwnames
[] = { "self","name","type","index", NULL
};
1988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|li:wxImage_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
1991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1998 _arg1
= wxString_in_helper(_obj1
);
2003 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2004 _result
= (bool )wxImage_LoadFile(_arg0
,*_arg1
,_arg2
,_arg3
);
2006 wxPyEndAllowThreads(__tstate
);
2007 if (PyErr_Occurred()) return NULL
;
2008 } _resultobj
= Py_BuildValue("i",_result
);
2016 #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
2017 static PyObject
*_wrap_wxImage_LoadMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2018 PyObject
* _resultobj
;
2023 int _arg3
= (int ) -1;
2024 PyObject
* _argo0
= 0;
2025 PyObject
* _obj1
= 0;
2026 PyObject
* _obj2
= 0;
2027 char *_kwnames
[] = { "self","name","mimetype","index", NULL
};
2030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxImage_LoadMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
2040 _arg1
= wxString_in_helper(_obj1
);
2045 _arg2
= wxString_in_helper(_obj2
);
2050 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2051 _result
= (bool )wxImage_LoadMimeFile(_arg0
,*_arg1
,*_arg2
,_arg3
);
2053 wxPyEndAllowThreads(__tstate
);
2054 if (PyErr_Occurred()) return NULL
;
2055 } _resultobj
= Py_BuildValue("i",_result
);
2067 #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
2068 static PyObject
*_wrap_wxImage_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2069 PyObject
* _resultobj
;
2074 PyObject
* _argo0
= 0;
2075 PyObject
* _obj1
= 0;
2076 char *_kwnames
[] = { "self","name","type", NULL
};
2079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
2089 _arg1
= wxString_in_helper(_obj1
);
2094 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2095 _result
= (bool )wxImage_SaveFile(_arg0
,*_arg1
,_arg2
);
2097 wxPyEndAllowThreads(__tstate
);
2098 if (PyErr_Occurred()) return NULL
;
2099 } _resultobj
= Py_BuildValue("i",_result
);
2107 #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
2108 static PyObject
*_wrap_wxImage_SaveMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2109 PyObject
* _resultobj
;
2114 PyObject
* _argo0
= 0;
2115 PyObject
* _obj1
= 0;
2116 PyObject
* _obj2
= 0;
2117 char *_kwnames
[] = { "self","name","mimetype", NULL
};
2120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SaveMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
2130 _arg1
= wxString_in_helper(_obj1
);
2135 _arg2
= wxString_in_helper(_obj2
);
2140 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2141 _result
= (bool )wxImage_SaveMimeFile(_arg0
,*_arg1
,*_arg2
);
2143 wxPyEndAllowThreads(__tstate
);
2144 if (PyErr_Occurred()) return NULL
;
2145 } _resultobj
= Py_BuildValue("i",_result
);
2157 static PyObject
*_wrap_wxImage_CanReadStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2158 PyObject
* _resultobj
;
2160 wxInputStream
* _arg0
;
2161 wxPyInputStream
* temp
;
2163 PyObject
* _obj0
= 0;
2164 char *_kwnames
[] = { "stream", NULL
};
2167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_CanReadStream",_kwnames
,&_obj0
))
2170 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
2171 _arg0
= temp
->m_wxis
;
2174 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
2175 if (_arg0
== NULL
) {
2176 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
2183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2184 _result
= (bool )wxImage::CanRead(*_arg0
);
2186 wxPyEndAllowThreads(__tstate
);
2187 if (PyErr_Occurred()) return NULL
;
2188 } _resultobj
= Py_BuildValue("i",_result
);
2196 #define wxImage_LoadStream(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
2197 static PyObject
*_wrap_wxImage_LoadStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2198 PyObject
* _resultobj
;
2201 wxInputStream
* _arg1
;
2202 long _arg2
= (long ) wxBITMAP_TYPE_ANY
;
2203 int _arg3
= (int ) -1;
2204 PyObject
* _argo0
= 0;
2205 wxPyInputStream
* temp
;
2207 PyObject
* _obj1
= 0;
2208 char *_kwnames
[] = { "self","stream","type","index", NULL
};
2211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|li:wxImage_LoadStream",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
2214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadStream. Expected _wxImage_p.");
2221 if (SWIG_GetPtrObj(_obj1
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
2222 _arg1
= temp
->m_wxis
;
2225 _arg1
= wxPyCBInputStream_create(_obj1
, FALSE
);
2226 if (_arg1
== NULL
) {
2227 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
2234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2235 _result
= (bool )wxImage_LoadStream(_arg0
,*_arg1
,_arg2
,_arg3
);
2237 wxPyEndAllowThreads(__tstate
);
2238 if (PyErr_Occurred()) return NULL
;
2239 } _resultobj
= Py_BuildValue("i",_result
);
2247 #define wxImage_LoadMimeStream(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
2248 static PyObject
*_wrap_wxImage_LoadMimeStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2249 PyObject
* _resultobj
;
2252 wxInputStream
* _arg1
;
2254 int _arg3
= (int ) -1;
2255 PyObject
* _argo0
= 0;
2256 wxPyInputStream
* temp
;
2258 PyObject
* _obj1
= 0;
2259 PyObject
* _obj2
= 0;
2260 char *_kwnames
[] = { "self","stream","mimetype","index", NULL
};
2263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxImage_LoadMimeStream",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeStream. Expected _wxImage_p.");
2273 if (SWIG_GetPtrObj(_obj1
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
2274 _arg1
= temp
->m_wxis
;
2277 _arg1
= wxPyCBInputStream_create(_obj1
, FALSE
);
2278 if (_arg1
== NULL
) {
2279 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
2286 _arg2
= wxString_in_helper(_obj2
);
2291 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2292 _result
= (bool )wxImage_LoadMimeStream(_arg0
,*_arg1
,*_arg2
,_arg3
);
2294 wxPyEndAllowThreads(__tstate
);
2295 if (PyErr_Occurred()) return NULL
;
2296 } _resultobj
= Py_BuildValue("i",_result
);
2308 #define wxImage_Ok(_swigobj) (_swigobj->Ok())
2309 static PyObject
*_wrap_wxImage_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2310 PyObject
* _resultobj
;
2313 PyObject
* _argo0
= 0;
2314 char *_kwnames
[] = { "self", NULL
};
2317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Ok",_kwnames
,&_argo0
))
2320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
2327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2328 _result
= (bool )wxImage_Ok(_arg0
);
2330 wxPyEndAllowThreads(__tstate
);
2331 if (PyErr_Occurred()) return NULL
;
2332 } _resultobj
= Py_BuildValue("i",_result
);
2336 #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
2337 static PyObject
*_wrap_wxImage_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2338 PyObject
* _resultobj
;
2341 PyObject
* _argo0
= 0;
2342 char *_kwnames
[] = { "self", NULL
};
2345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetWidth",_kwnames
,&_argo0
))
2348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
2355 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2356 _result
= (int )wxImage_GetWidth(_arg0
);
2358 wxPyEndAllowThreads(__tstate
);
2359 if (PyErr_Occurred()) return NULL
;
2360 } _resultobj
= Py_BuildValue("i",_result
);
2364 #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
2365 static PyObject
*_wrap_wxImage_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2366 PyObject
* _resultobj
;
2369 PyObject
* _argo0
= 0;
2370 char *_kwnames
[] = { "self", NULL
};
2373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetHeight",_kwnames
,&_argo0
))
2376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
2383 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2384 _result
= (int )wxImage_GetHeight(_arg0
);
2386 wxPyEndAllowThreads(__tstate
);
2387 if (PyErr_Occurred()) return NULL
;
2388 } _resultobj
= Py_BuildValue("i",_result
);
2392 #define wxImage_GetSubImage(_swigobj,_swigarg0) (_swigobj->GetSubImage(_swigarg0))
2393 static PyObject
*_wrap_wxImage_GetSubImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2394 PyObject
* _resultobj
;
2398 PyObject
* _argo0
= 0;
2400 PyObject
* _obj1
= 0;
2401 char *_kwnames
[] = { "self","rect", NULL
};
2405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetSubImage",_kwnames
,&_argo0
,&_obj1
))
2408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetSubImage. Expected _wxImage_p.");
2416 if (! wxRect_helper(_obj1
, &_arg1
))
2420 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2421 _result
= new wxImage (wxImage_GetSubImage(_arg0
,*_arg1
));
2423 wxPyEndAllowThreads(__tstate
);
2424 if (PyErr_Occurred()) return NULL
;
2425 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2426 _resultobj
= Py_BuildValue("s",_ptemp
);
2430 #define wxImage_Copy(_swigobj) (_swigobj->Copy())
2431 static PyObject
*_wrap_wxImage_Copy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2432 PyObject
* _resultobj
;
2435 PyObject
* _argo0
= 0;
2436 char *_kwnames
[] = { "self", NULL
};
2440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Copy",_kwnames
,&_argo0
))
2443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Copy. Expected _wxImage_p.");
2450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2451 _result
= new wxImage (wxImage_Copy(_arg0
));
2453 wxPyEndAllowThreads(__tstate
);
2454 if (PyErr_Occurred()) return NULL
;
2455 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2456 _resultobj
= Py_BuildValue("s",_ptemp
);
2460 #define wxImage_Paste(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Paste(_swigarg0,_swigarg1,_swigarg2))
2461 static PyObject
*_wrap_wxImage_Paste(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2462 PyObject
* _resultobj
;
2467 PyObject
* _argo0
= 0;
2468 PyObject
* _argo1
= 0;
2469 char *_kwnames
[] = { "self","image","x","y", NULL
};
2472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxImage_Paste",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
2475 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2476 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Paste. Expected _wxImage_p.");
2482 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) {
2483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImage_Paste. Expected _wxImage_p.");
2488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2489 wxImage_Paste(_arg0
,*_arg1
,_arg2
,_arg3
);
2491 wxPyEndAllowThreads(__tstate
);
2492 if (PyErr_Occurred()) return NULL
;
2493 } Py_INCREF(Py_None
);
2494 _resultobj
= Py_None
;
2498 static PyObject
* wxImage_GetData(wxImage
*self
) {
2499 unsigned char* data
= self
->GetData();
2500 int len
= self
->GetWidth() * self
->GetHeight() * 3;
2501 return PyString_FromStringAndSize((char*)data
, len
);
2503 static PyObject
*_wrap_wxImage_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2504 PyObject
* _resultobj
;
2507 PyObject
* _argo0
= 0;
2508 char *_kwnames
[] = { "self", NULL
};
2511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetData",_kwnames
,&_argo0
))
2514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
2521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2522 _result
= (PyObject
*)wxImage_GetData(_arg0
);
2524 wxPyEndAllowThreads(__tstate
);
2525 if (PyErr_Occurred()) return NULL
;
2527 _resultobj
= _result
;
2532 static void wxImage_SetData(wxImage
*self
,PyObject
* data
) {
2533 unsigned char* dataPtr
;
2535 if (! PyString_Check(data
)) {
2536 PyErr_SetString(PyExc_TypeError
, "Expected string object");
2540 size_t len
= self
->GetWidth() * self
->GetHeight() * 3;
2541 dataPtr
= (unsigned char*) malloc(len
);
2542 memcpy(dataPtr
, PyString_AsString(data
), len
);
2543 self
->SetData(dataPtr
);
2544 // wxImage takes ownership of dataPtr...
2546 static PyObject
*_wrap_wxImage_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2547 PyObject
* _resultobj
;
2550 PyObject
* _argo0
= 0;
2551 PyObject
* _obj1
= 0;
2552 char *_kwnames
[] = { "self","data", NULL
};
2555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetData",_kwnames
,&_argo0
,&_obj1
))
2558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
2568 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2569 wxImage_SetData(_arg0
,_arg1
);
2571 wxPyEndAllowThreads(__tstate
);
2572 if (PyErr_Occurred()) return NULL
;
2573 } Py_INCREF(Py_None
);
2574 _resultobj
= Py_None
;
2578 static PyObject
* wxImage_GetDataBuffer(wxImage
*self
) {
2579 unsigned char* data
= self
->GetData();
2580 int len
= self
->GetWidth() * self
->GetHeight() * 3;
2581 return PyBuffer_FromReadWriteMemory(data
, len
);
2583 static PyObject
*_wrap_wxImage_GetDataBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2584 PyObject
* _resultobj
;
2587 PyObject
* _argo0
= 0;
2588 char *_kwnames
[] = { "self", NULL
};
2591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetDataBuffer",_kwnames
,&_argo0
))
2594 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2595 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetDataBuffer. Expected _wxImage_p.");
2601 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2602 _result
= (PyObject
*)wxImage_GetDataBuffer(_arg0
);
2604 wxPyEndAllowThreads(__tstate
);
2605 if (PyErr_Occurred()) return NULL
;
2607 _resultobj
= _result
;
2612 static void wxImage_SetDataBuffer(wxImage
*self
,PyObject
* data
) {
2613 unsigned char* buffer
;
2616 if (!PyArg_Parse(data
, "w#", &buffer
, &size
))
2619 if (size
!= self
->GetWidth() * self
->GetHeight() * 3) {
2620 PyErr_SetString(PyExc_TypeError
, "Incorrect buffer size");
2623 self
->SetData(buffer
);
2625 static PyObject
*_wrap_wxImage_SetDataBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2626 PyObject
* _resultobj
;
2629 PyObject
* _argo0
= 0;
2630 PyObject
* _obj1
= 0;
2631 char *_kwnames
[] = { "self","data", NULL
};
2634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetDataBuffer",_kwnames
,&_argo0
,&_obj1
))
2637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetDataBuffer. Expected _wxImage_p.");
2647 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2648 wxImage_SetDataBuffer(_arg0
,_arg1
);
2650 wxPyEndAllowThreads(__tstate
);
2651 if (PyErr_Occurred()) return NULL
;
2652 } Py_INCREF(Py_None
);
2653 _resultobj
= Py_None
;
2657 static PyObject
* wxImage_GetAlphaData(wxImage
*self
) {
2658 unsigned char* data
= self
->GetAlpha();
2662 int len
= self
->GetWidth() * self
->GetHeight();
2663 return PyString_FromStringAndSize((char*)data
, len
);
2666 static PyObject
*_wrap_wxImage_GetAlphaData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2667 PyObject
* _resultobj
;
2670 PyObject
* _argo0
= 0;
2671 char *_kwnames
[] = { "self", NULL
};
2674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetAlphaData",_kwnames
,&_argo0
))
2677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetAlphaData. Expected _wxImage_p.");
2684 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2685 _result
= (PyObject
*)wxImage_GetAlphaData(_arg0
);
2687 wxPyEndAllowThreads(__tstate
);
2688 if (PyErr_Occurred()) return NULL
;
2690 _resultobj
= _result
;
2695 static void wxImage_SetAlphaData(wxImage
*self
,PyObject
* data
) {
2696 unsigned char* dataPtr
;
2698 if (! PyString_Check(data
)) {
2699 PyErr_SetString(PyExc_TypeError
, "Expected string object");
2703 size_t len
= self
->GetWidth() * self
->GetHeight();
2704 dataPtr
= (unsigned char*) malloc(len
);
2705 memcpy(dataPtr
, PyString_AsString(data
), len
);
2706 self
->SetAlpha(dataPtr
);
2707 // wxImage takes ownership of dataPtr...
2709 static PyObject
*_wrap_wxImage_SetAlphaData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2710 PyObject
* _resultobj
;
2713 PyObject
* _argo0
= 0;
2714 PyObject
* _obj1
= 0;
2715 char *_kwnames
[] = { "self","data", NULL
};
2718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetAlphaData",_kwnames
,&_argo0
,&_obj1
))
2721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetAlphaData. Expected _wxImage_p.");
2731 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2732 wxImage_SetAlphaData(_arg0
,_arg1
);
2734 wxPyEndAllowThreads(__tstate
);
2735 if (PyErr_Occurred()) return NULL
;
2736 } Py_INCREF(Py_None
);
2737 _resultobj
= Py_None
;
2741 static PyObject
* wxImage_GetAlphaBuffer(wxImage
*self
) {
2742 unsigned char* data
= self
->GetAlpha();
2743 int len
= self
->GetWidth() * self
->GetHeight();
2744 return PyBuffer_FromReadWriteMemory(data
, len
);
2746 static PyObject
*_wrap_wxImage_GetAlphaBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2747 PyObject
* _resultobj
;
2750 PyObject
* _argo0
= 0;
2751 char *_kwnames
[] = { "self", NULL
};
2754 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetAlphaBuffer",_kwnames
,&_argo0
))
2757 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2758 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2759 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetAlphaBuffer. Expected _wxImage_p.");
2764 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2765 _result
= (PyObject
*)wxImage_GetAlphaBuffer(_arg0
);
2767 wxPyEndAllowThreads(__tstate
);
2768 if (PyErr_Occurred()) return NULL
;
2770 _resultobj
= _result
;
2775 static void wxImage_SetAlphaBuffer(wxImage
*self
,PyObject
* data
) {
2776 unsigned char* buffer
;
2779 if (!PyArg_Parse(data
, "w#", &buffer
, &size
))
2782 if (size
!= self
->GetWidth() * self
->GetHeight()) {
2783 PyErr_SetString(PyExc_TypeError
, "Incorrect buffer size");
2786 self
->SetAlpha(buffer
);
2788 static PyObject
*_wrap_wxImage_SetAlphaBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2789 PyObject
* _resultobj
;
2792 PyObject
* _argo0
= 0;
2793 PyObject
* _obj1
= 0;
2794 char *_kwnames
[] = { "self","data", NULL
};
2797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetAlphaBuffer",_kwnames
,&_argo0
,&_obj1
))
2800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetAlphaBuffer. Expected _wxImage_p.");
2810 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2811 wxImage_SetAlphaBuffer(_arg0
,_arg1
);
2813 wxPyEndAllowThreads(__tstate
);
2814 if (PyErr_Occurred()) return NULL
;
2815 } Py_INCREF(Py_None
);
2816 _resultobj
= Py_None
;
2820 #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
2821 static PyObject
*_wrap_wxImage_SetMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2822 PyObject
* _resultobj
;
2824 unsigned char _arg1
;
2825 unsigned char _arg2
;
2826 unsigned char _arg3
;
2827 PyObject
* _argo0
= 0;
2828 char *_kwnames
[] = { "self","r","g","b", NULL
};
2831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_SetMaskColour",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
2841 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2842 wxImage_SetMaskColour(_arg0
,_arg1
,_arg2
,_arg3
);
2844 wxPyEndAllowThreads(__tstate
);
2845 if (PyErr_Occurred()) return NULL
;
2846 } Py_INCREF(Py_None
);
2847 _resultobj
= Py_None
;
2851 #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
2852 static PyObject
*_wrap_wxImage_GetMaskRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2853 PyObject
* _resultobj
;
2854 unsigned char _result
;
2856 PyObject
* _argo0
= 0;
2857 char *_kwnames
[] = { "self", NULL
};
2860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskRed",_kwnames
,&_argo0
))
2863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
2870 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2871 _result
= (unsigned char )wxImage_GetMaskRed(_arg0
);
2873 wxPyEndAllowThreads(__tstate
);
2874 if (PyErr_Occurred()) return NULL
;
2875 } _resultobj
= Py_BuildValue("b",_result
);
2879 #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
2880 static PyObject
*_wrap_wxImage_GetMaskGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2881 PyObject
* _resultobj
;
2882 unsigned char _result
;
2884 PyObject
* _argo0
= 0;
2885 char *_kwnames
[] = { "self", NULL
};
2888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskGreen",_kwnames
,&_argo0
))
2891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
2898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2899 _result
= (unsigned char )wxImage_GetMaskGreen(_arg0
);
2901 wxPyEndAllowThreads(__tstate
);
2902 if (PyErr_Occurred()) return NULL
;
2903 } _resultobj
= Py_BuildValue("b",_result
);
2907 #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
2908 static PyObject
*_wrap_wxImage_GetMaskBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2909 PyObject
* _resultobj
;
2910 unsigned char _result
;
2912 PyObject
* _argo0
= 0;
2913 char *_kwnames
[] = { "self", NULL
};
2916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskBlue",_kwnames
,&_argo0
))
2919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
2926 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2927 _result
= (unsigned char )wxImage_GetMaskBlue(_arg0
);
2929 wxPyEndAllowThreads(__tstate
);
2930 if (PyErr_Occurred()) return NULL
;
2931 } _resultobj
= Py_BuildValue("b",_result
);
2935 #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
2936 static PyObject
*_wrap_wxImage_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2937 PyObject
* _resultobj
;
2939 bool _arg1
= (bool ) TRUE
;
2940 PyObject
* _argo0
= 0;
2941 int tempbool1
= (int) TRUE
;
2942 char *_kwnames
[] = { "self","mask", NULL
};
2945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_SetMask",_kwnames
,&_argo0
,&tempbool1
))
2948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
2954 _arg1
= (bool ) tempbool1
;
2956 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2957 wxImage_SetMask(_arg0
,_arg1
);
2959 wxPyEndAllowThreads(__tstate
);
2960 if (PyErr_Occurred()) return NULL
;
2961 } Py_INCREF(Py_None
);
2962 _resultobj
= Py_None
;
2966 #define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
2967 static PyObject
*_wrap_wxImage_HasMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2968 PyObject
* _resultobj
;
2971 PyObject
* _argo0
= 0;
2972 char *_kwnames
[] = { "self", NULL
};
2975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_HasMask",_kwnames
,&_argo0
))
2978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
2985 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2986 _result
= (bool )wxImage_HasMask(_arg0
);
2988 wxPyEndAllowThreads(__tstate
);
2989 if (PyErr_Occurred()) return NULL
;
2990 } _resultobj
= Py_BuildValue("i",_result
);
2994 #define wxImage_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2995 static PyObject
*_wrap_wxImage_Rotate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2996 PyObject
* _resultobj
;
3001 bool _arg3
= (bool ) TRUE
;
3002 wxPoint
* _arg4
= (wxPoint
*) NULL
;
3003 PyObject
* _argo0
= 0;
3005 PyObject
* _obj2
= 0;
3006 int tempbool3
= (int) TRUE
;
3008 PyObject
* _obj4
= 0;
3009 char *_kwnames
[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL
};
3013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OdO|iO:wxImage_Rotate",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
,&_obj4
))
3016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rotate. Expected _wxImage_p.");
3024 if (! wxPoint_helper(_obj2
, &_arg2
))
3027 _arg3
= (bool ) tempbool3
;
3031 if (! wxPoint_helper(_obj4
, &_arg4
))
3035 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3036 _result
= new wxImage (wxImage_Rotate(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
));
3038 wxPyEndAllowThreads(__tstate
);
3039 if (PyErr_Occurred()) return NULL
;
3040 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
3041 _resultobj
= Py_BuildValue("s",_ptemp
);
3045 #define wxImage_Rotate90(_swigobj,_swigarg0) (_swigobj->Rotate90(_swigarg0))
3046 static PyObject
*_wrap_wxImage_Rotate90(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3047 PyObject
* _resultobj
;
3050 bool _arg1
= (bool ) TRUE
;
3051 PyObject
* _argo0
= 0;
3052 int tempbool1
= (int) TRUE
;
3053 char *_kwnames
[] = { "self","clockwise", NULL
};
3057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Rotate90",_kwnames
,&_argo0
,&tempbool1
))
3060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rotate90. Expected _wxImage_p.");
3066 _arg1
= (bool ) tempbool1
;
3068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3069 _result
= new wxImage (wxImage_Rotate90(_arg0
,_arg1
));
3071 wxPyEndAllowThreads(__tstate
);
3072 if (PyErr_Occurred()) return NULL
;
3073 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
3074 _resultobj
= Py_BuildValue("s",_ptemp
);
3078 #define wxImage_Mirror(_swigobj,_swigarg0) (_swigobj->Mirror(_swigarg0))
3079 static PyObject
*_wrap_wxImage_Mirror(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3080 PyObject
* _resultobj
;
3083 bool _arg1
= (bool ) TRUE
;
3084 PyObject
* _argo0
= 0;
3085 int tempbool1
= (int) TRUE
;
3086 char *_kwnames
[] = { "self","horizontally", NULL
};
3090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Mirror",_kwnames
,&_argo0
,&tempbool1
))
3093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Mirror. Expected _wxImage_p.");
3099 _arg1
= (bool ) tempbool1
;
3101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3102 _result
= new wxImage (wxImage_Mirror(_arg0
,_arg1
));
3104 wxPyEndAllowThreads(__tstate
);
3105 if (PyErr_Occurred()) return NULL
;
3106 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
3107 _resultobj
= Py_BuildValue("s",_ptemp
);
3111 #define wxImage_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3112 static PyObject
*_wrap_wxImage_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3113 PyObject
* _resultobj
;
3115 unsigned char _arg1
;
3116 unsigned char _arg2
;
3117 unsigned char _arg3
;
3118 unsigned char _arg4
;
3119 unsigned char _arg5
;
3120 unsigned char _arg6
;
3121 PyObject
* _argo0
= 0;
3122 char *_kwnames
[] = { "self","r1","g1","b1","r2","g2","b2", NULL
};
3125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbbbbb:wxImage_Replace",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
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_Replace. Expected _wxImage_p.");
3135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3136 wxImage_Replace(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3138 wxPyEndAllowThreads(__tstate
);
3139 if (PyErr_Occurred()) return NULL
;
3140 } Py_INCREF(Py_None
);
3141 _resultobj
= Py_None
;
3145 #define wxImage_ConvertToMono(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ConvertToMono(_swigarg0,_swigarg1,_swigarg2))
3146 static PyObject
*_wrap_wxImage_ConvertToMono(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3147 PyObject
* _resultobj
;
3150 unsigned char _arg1
;
3151 unsigned char _arg2
;
3152 unsigned char _arg3
;
3153 PyObject
* _argo0
= 0;
3154 char *_kwnames
[] = { "self","r","g","b", NULL
};
3158 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_ConvertToMono",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3161 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3162 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3163 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToMono. Expected _wxImage_p.");
3168 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3169 _result
= new wxImage (wxImage_ConvertToMono(_arg0
,_arg1
,_arg2
,_arg3
));
3171 wxPyEndAllowThreads(__tstate
);
3172 if (PyErr_Occurred()) return NULL
;
3173 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
3174 _resultobj
= Py_BuildValue("s",_ptemp
);
3178 #define wxImage_SetOption(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOption(_swigarg0,_swigarg1))
3179 static PyObject
*_wrap_wxImage_SetOption(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3180 PyObject
* _resultobj
;
3184 PyObject
* _argo0
= 0;
3185 PyObject
* _obj1
= 0;
3186 PyObject
* _obj2
= 0;
3187 char *_kwnames
[] = { "self","name","value", NULL
};
3190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SetOption",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3193 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3194 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetOption. Expected _wxImage_p.");
3200 _arg1
= wxString_in_helper(_obj1
);
3205 _arg2
= wxString_in_helper(_obj2
);
3210 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3211 wxImage_SetOption(_arg0
,*_arg1
,*_arg2
);
3213 wxPyEndAllowThreads(__tstate
);
3214 if (PyErr_Occurred()) return NULL
;
3215 } Py_INCREF(Py_None
);
3216 _resultobj
= Py_None
;
3228 #define wxImage_SetOptionInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOption(_swigarg0,_swigarg1))
3229 static PyObject
*_wrap_wxImage_SetOptionInt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3230 PyObject
* _resultobj
;
3234 PyObject
* _argo0
= 0;
3235 PyObject
* _obj1
= 0;
3236 char *_kwnames
[] = { "self","name","value", NULL
};
3239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SetOptionInt",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
3242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetOptionInt. Expected _wxImage_p.");
3249 _arg1
= wxString_in_helper(_obj1
);
3254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3255 wxImage_SetOptionInt(_arg0
,*_arg1
,_arg2
);
3257 wxPyEndAllowThreads(__tstate
);
3258 if (PyErr_Occurred()) return NULL
;
3259 } Py_INCREF(Py_None
);
3260 _resultobj
= Py_None
;
3268 #define wxImage_GetOption(_swigobj,_swigarg0) (_swigobj->GetOption(_swigarg0))
3269 static PyObject
*_wrap_wxImage_GetOption(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3270 PyObject
* _resultobj
;
3274 PyObject
* _argo0
= 0;
3275 PyObject
* _obj1
= 0;
3276 char *_kwnames
[] = { "self","name", NULL
};
3279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetOption",_kwnames
,&_argo0
,&_obj1
))
3282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetOption. Expected _wxImage_p.");
3289 _arg1
= wxString_in_helper(_obj1
);
3294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3295 _result
= new wxString (wxImage_GetOption(_arg0
,*_arg1
));
3297 wxPyEndAllowThreads(__tstate
);
3298 if (PyErr_Occurred()) return NULL
;
3301 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
3303 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3316 #define wxImage_GetOptionInt(_swigobj,_swigarg0) (_swigobj->GetOptionInt(_swigarg0))
3317 static PyObject
*_wrap_wxImage_GetOptionInt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3318 PyObject
* _resultobj
;
3322 PyObject
* _argo0
= 0;
3323 PyObject
* _obj1
= 0;
3324 char *_kwnames
[] = { "self","name", NULL
};
3327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetOptionInt",_kwnames
,&_argo0
,&_obj1
))
3330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetOptionInt. Expected _wxImage_p.");
3337 _arg1
= wxString_in_helper(_obj1
);
3342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3343 _result
= (int )wxImage_GetOptionInt(_arg0
,*_arg1
);
3345 wxPyEndAllowThreads(__tstate
);
3346 if (PyErr_Occurred()) return NULL
;
3347 } _resultobj
= Py_BuildValue("i",_result
);
3355 #define wxImage_HasOption(_swigobj,_swigarg0) (_swigobj->HasOption(_swigarg0))
3356 static PyObject
*_wrap_wxImage_HasOption(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3357 PyObject
* _resultobj
;
3361 PyObject
* _argo0
= 0;
3362 PyObject
* _obj1
= 0;
3363 char *_kwnames
[] = { "self","name", NULL
};
3366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_HasOption",_kwnames
,&_argo0
,&_obj1
))
3369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasOption. Expected _wxImage_p.");
3376 _arg1
= wxString_in_helper(_obj1
);
3381 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3382 _result
= (bool )wxImage_HasOption(_arg0
,*_arg1
);
3384 wxPyEndAllowThreads(__tstate
);
3385 if (PyErr_Occurred()) return NULL
;
3386 } _resultobj
= Py_BuildValue("i",_result
);
3394 #define wxImage_CountColours(_swigobj,_swigarg0) (_swigobj->CountColours(_swigarg0))
3395 static PyObject
*_wrap_wxImage_CountColours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3396 PyObject
* _resultobj
;
3397 unsigned long _result
;
3399 unsigned long _arg1
= (unsigned long ) (unsigned long)-1;
3400 PyObject
* _argo0
= 0;
3401 char *_kwnames
[] = { "self","stopafter", NULL
};
3404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:wxImage_CountColours",_kwnames
,&_argo0
,&_arg1
))
3407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_CountColours. Expected _wxImage_p.");
3414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3415 _result
= (unsigned long )wxImage_CountColours(_arg0
,_arg1
);
3417 wxPyEndAllowThreads(__tstate
);
3418 if (PyErr_Occurred()) return NULL
;
3419 } _resultobj
= Py_BuildValue("l",_result
);
3423 #define wxImage_ComputeHistogram(_swigobj,_swigarg0) (_swigobj->ComputeHistogram(_swigarg0))
3424 static PyObject
*_wrap_wxImage_ComputeHistogram(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3425 PyObject
* _resultobj
;
3426 unsigned long _result
;
3428 wxImageHistogram
* _arg1
;
3429 PyObject
* _argo0
= 0;
3430 PyObject
* _argo1
= 0;
3431 char *_kwnames
[] = { "self","h", NULL
};
3434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_ComputeHistogram",_kwnames
,&_argo0
,&_argo1
))
3437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ComputeHistogram. Expected _wxImage_p.");
3444 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImageHistogram_p")) {
3445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImage_ComputeHistogram. Expected _wxImageHistogram_p.");
3450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3451 _result
= (unsigned long )wxImage_ComputeHistogram(_arg0
,*_arg1
);
3453 wxPyEndAllowThreads(__tstate
);
3454 if (PyErr_Occurred()) return NULL
;
3455 } _resultobj
= Py_BuildValue("l",_result
);
3459 static PyObject
*_wrap_wxImage_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3460 PyObject
* _resultobj
;
3461 wxImageHandler
* _arg0
;
3462 PyObject
* _argo0
= 0;
3463 char *_kwnames
[] = { "handler", NULL
};
3466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_AddHandler",_kwnames
,&_argo0
))
3469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
3471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
3476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3477 wxImage::AddHandler(_arg0
);
3479 wxPyEndAllowThreads(__tstate
);
3480 if (PyErr_Occurred()) return NULL
;
3481 } Py_INCREF(Py_None
);
3482 _resultobj
= Py_None
;
3486 static PyObject
*_wrap_wxImage_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3487 PyObject
* _resultobj
;
3488 wxImageHandler
* _arg0
;
3489 PyObject
* _argo0
= 0;
3490 char *_kwnames
[] = { "handler", NULL
};
3493 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_InsertHandler",_kwnames
,&_argo0
))
3496 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3497 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
3498 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_InsertHandler. Expected _wxImageHandler_p.");
3503 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3504 wxImage::InsertHandler(_arg0
);
3506 wxPyEndAllowThreads(__tstate
);
3507 if (PyErr_Occurred()) return NULL
;
3508 } Py_INCREF(Py_None
);
3509 _resultobj
= Py_None
;
3513 static PyObject
*_wrap_wxImage_RemoveHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3514 PyObject
* _resultobj
;
3517 PyObject
* _obj0
= 0;
3518 char *_kwnames
[] = { "name", NULL
};
3521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_RemoveHandler",_kwnames
,&_obj0
))
3524 _arg0
= wxString_in_helper(_obj0
);
3529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3530 _result
= (bool )wxImage::RemoveHandler(*_arg0
);
3532 wxPyEndAllowThreads(__tstate
);
3533 if (PyErr_Occurred()) return NULL
;
3534 } _resultobj
= Py_BuildValue("i",_result
);
3542 static PyObject
*_wrap_wxImage_GetImageExtWildcard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3543 PyObject
* _resultobj
;
3545 char *_kwnames
[] = { NULL
};
3548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxImage_GetImageExtWildcard",_kwnames
))
3551 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3552 _result
= new wxString (wxImage::GetImageExtWildcard());
3554 wxPyEndAllowThreads(__tstate
);
3555 if (PyErr_Occurred()) return NULL
;
3558 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
3560 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3569 static wxBitmap
wxImage_ConvertToBitmap(wxImage
*self
) {
3570 wxBitmap
bitmap(*self
);
3573 static PyObject
*_wrap_wxImage_ConvertToBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3574 PyObject
* _resultobj
;
3577 PyObject
* _argo0
= 0;
3578 char *_kwnames
[] = { "self", NULL
};
3582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_ConvertToBitmap",_kwnames
,&_argo0
))
3585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
3592 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3593 _result
= new wxBitmap (wxImage_ConvertToBitmap(_arg0
));
3595 wxPyEndAllowThreads(__tstate
);
3596 if (PyErr_Occurred()) return NULL
;
3597 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
3598 _resultobj
= Py_BuildValue("s",_ptemp
);
3602 static wxBitmap
wxImage_ConvertToMonoBitmap(wxImage
*self
,unsigned char red
,unsigned char green
,unsigned char blue
) {
3603 wxImage mono
= self
->ConvertToMono( red
, green
, blue
);
3604 wxBitmap
bitmap( mono
, 1 );
3607 static PyObject
*_wrap_wxImage_ConvertToMonoBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3608 PyObject
* _resultobj
;
3611 unsigned char _arg1
;
3612 unsigned char _arg2
;
3613 unsigned char _arg3
;
3614 PyObject
* _argo0
= 0;
3615 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_ConvertToMonoBitmap",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToMonoBitmap. Expected _wxImage_p.");
3629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3630 _result
= new wxBitmap (wxImage_ConvertToMonoBitmap(_arg0
,_arg1
,_arg2
,_arg3
));
3632 wxPyEndAllowThreads(__tstate
);
3633 if (PyErr_Occurred()) return NULL
;
3634 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
3635 _resultobj
= Py_BuildValue("s",_ptemp
);
3639 static PyMethodDef imagecMethods
[] = {
3640 { "wxImage_ConvertToMonoBitmap", (PyCFunction
) _wrap_wxImage_ConvertToMonoBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3641 { "wxImage_ConvertToBitmap", (PyCFunction
) _wrap_wxImage_ConvertToBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3642 { "wxImage_GetImageExtWildcard", (PyCFunction
) _wrap_wxImage_GetImageExtWildcard
, METH_VARARGS
| METH_KEYWORDS
},
3643 { "wxImage_RemoveHandler", (PyCFunction
) _wrap_wxImage_RemoveHandler
, METH_VARARGS
| METH_KEYWORDS
},
3644 { "wxImage_InsertHandler", (PyCFunction
) _wrap_wxImage_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
3645 { "wxImage_AddHandler", (PyCFunction
) _wrap_wxImage_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
3646 { "wxImage_ComputeHistogram", (PyCFunction
) _wrap_wxImage_ComputeHistogram
, METH_VARARGS
| METH_KEYWORDS
},
3647 { "wxImage_CountColours", (PyCFunction
) _wrap_wxImage_CountColours
, METH_VARARGS
| METH_KEYWORDS
},
3648 { "wxImage_HasOption", (PyCFunction
) _wrap_wxImage_HasOption
, METH_VARARGS
| METH_KEYWORDS
},
3649 { "wxImage_GetOptionInt", (PyCFunction
) _wrap_wxImage_GetOptionInt
, METH_VARARGS
| METH_KEYWORDS
},
3650 { "wxImage_GetOption", (PyCFunction
) _wrap_wxImage_GetOption
, METH_VARARGS
| METH_KEYWORDS
},
3651 { "wxImage_SetOptionInt", (PyCFunction
) _wrap_wxImage_SetOptionInt
, METH_VARARGS
| METH_KEYWORDS
},
3652 { "wxImage_SetOption", (PyCFunction
) _wrap_wxImage_SetOption
, METH_VARARGS
| METH_KEYWORDS
},
3653 { "wxImage_ConvertToMono", (PyCFunction
) _wrap_wxImage_ConvertToMono
, METH_VARARGS
| METH_KEYWORDS
},
3654 { "wxImage_Replace", (PyCFunction
) _wrap_wxImage_Replace
, METH_VARARGS
| METH_KEYWORDS
},
3655 { "wxImage_Mirror", (PyCFunction
) _wrap_wxImage_Mirror
, METH_VARARGS
| METH_KEYWORDS
},
3656 { "wxImage_Rotate90", (PyCFunction
) _wrap_wxImage_Rotate90
, METH_VARARGS
| METH_KEYWORDS
},
3657 { "wxImage_Rotate", (PyCFunction
) _wrap_wxImage_Rotate
, METH_VARARGS
| METH_KEYWORDS
},
3658 { "wxImage_HasMask", (PyCFunction
) _wrap_wxImage_HasMask
, METH_VARARGS
| METH_KEYWORDS
},
3659 { "wxImage_SetMask", (PyCFunction
) _wrap_wxImage_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
3660 { "wxImage_GetMaskBlue", (PyCFunction
) _wrap_wxImage_GetMaskBlue
, METH_VARARGS
| METH_KEYWORDS
},
3661 { "wxImage_GetMaskGreen", (PyCFunction
) _wrap_wxImage_GetMaskGreen
, METH_VARARGS
| METH_KEYWORDS
},
3662 { "wxImage_GetMaskRed", (PyCFunction
) _wrap_wxImage_GetMaskRed
, METH_VARARGS
| METH_KEYWORDS
},
3663 { "wxImage_SetMaskColour", (PyCFunction
) _wrap_wxImage_SetMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
3664 { "wxImage_SetAlphaBuffer", (PyCFunction
) _wrap_wxImage_SetAlphaBuffer
, METH_VARARGS
| METH_KEYWORDS
},
3665 { "wxImage_GetAlphaBuffer", (PyCFunction
) _wrap_wxImage_GetAlphaBuffer
, METH_VARARGS
| METH_KEYWORDS
},
3666 { "wxImage_SetAlphaData", (PyCFunction
) _wrap_wxImage_SetAlphaData
, METH_VARARGS
| METH_KEYWORDS
},
3667 { "wxImage_GetAlphaData", (PyCFunction
) _wrap_wxImage_GetAlphaData
, METH_VARARGS
| METH_KEYWORDS
},
3668 { "wxImage_SetDataBuffer", (PyCFunction
) _wrap_wxImage_SetDataBuffer
, METH_VARARGS
| METH_KEYWORDS
},
3669 { "wxImage_GetDataBuffer", (PyCFunction
) _wrap_wxImage_GetDataBuffer
, METH_VARARGS
| METH_KEYWORDS
},
3670 { "wxImage_SetData", (PyCFunction
) _wrap_wxImage_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3671 { "wxImage_GetData", (PyCFunction
) _wrap_wxImage_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3672 { "wxImage_Paste", (PyCFunction
) _wrap_wxImage_Paste
, METH_VARARGS
| METH_KEYWORDS
},
3673 { "wxImage_Copy", (PyCFunction
) _wrap_wxImage_Copy
, METH_VARARGS
| METH_KEYWORDS
},
3674 { "wxImage_GetSubImage", (PyCFunction
) _wrap_wxImage_GetSubImage
, METH_VARARGS
| METH_KEYWORDS
},
3675 { "wxImage_GetHeight", (PyCFunction
) _wrap_wxImage_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
3676 { "wxImage_GetWidth", (PyCFunction
) _wrap_wxImage_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
3677 { "wxImage_Ok", (PyCFunction
) _wrap_wxImage_Ok
, METH_VARARGS
| METH_KEYWORDS
},
3678 { "wxImage_LoadMimeStream", (PyCFunction
) _wrap_wxImage_LoadMimeStream
, METH_VARARGS
| METH_KEYWORDS
},
3679 { "wxImage_LoadStream", (PyCFunction
) _wrap_wxImage_LoadStream
, METH_VARARGS
| METH_KEYWORDS
},
3680 { "wxImage_CanReadStream", (PyCFunction
) _wrap_wxImage_CanReadStream
, METH_VARARGS
| METH_KEYWORDS
},
3681 { "wxImage_SaveMimeFile", (PyCFunction
) _wrap_wxImage_SaveMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
3682 { "wxImage_SaveFile", (PyCFunction
) _wrap_wxImage_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
3683 { "wxImage_LoadMimeFile", (PyCFunction
) _wrap_wxImage_LoadMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
3684 { "wxImage_LoadFile", (PyCFunction
) _wrap_wxImage_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
3685 { "wxImage_GetImageCount", (PyCFunction
) _wrap_wxImage_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
3686 { "wxImage_CanRead", (PyCFunction
) _wrap_wxImage_CanRead
, METH_VARARGS
| METH_KEYWORDS
},
3687 { "wxImage_SetMaskFromImage", (PyCFunction
) _wrap_wxImage_SetMaskFromImage
, METH_VARARGS
| METH_KEYWORDS
},
3688 { "wxImage_FindFirstUnusedColour", (PyCFunction
) _wrap_wxImage_FindFirstUnusedColour
, METH_VARARGS
| METH_KEYWORDS
},
3689 { "wxImage_HasAlpha", (PyCFunction
) _wrap_wxImage_HasAlpha
, METH_VARARGS
| METH_KEYWORDS
},
3690 { "wxImage_GetAlpha", (PyCFunction
) _wrap_wxImage_GetAlpha
, METH_VARARGS
| METH_KEYWORDS
},
3691 { "wxImage_SetAlpha", (PyCFunction
) _wrap_wxImage_SetAlpha
, METH_VARARGS
| METH_KEYWORDS
},
3692 { "wxImage_GetBlue", (PyCFunction
) _wrap_wxImage_GetBlue
, METH_VARARGS
| METH_KEYWORDS
},
3693 { "wxImage_GetGreen", (PyCFunction
) _wrap_wxImage_GetGreen
, METH_VARARGS
| METH_KEYWORDS
},
3694 { "wxImage_GetRed", (PyCFunction
) _wrap_wxImage_GetRed
, METH_VARARGS
| METH_KEYWORDS
},
3695 { "wxImage_SetRGB", (PyCFunction
) _wrap_wxImage_SetRGB
, METH_VARARGS
| METH_KEYWORDS
},
3696 { "wxImage_Rescale", (PyCFunction
) _wrap_wxImage_Rescale
, METH_VARARGS
| METH_KEYWORDS
},
3697 { "wxImage_ShrinkBy", (PyCFunction
) _wrap_wxImage_ShrinkBy
, METH_VARARGS
| METH_KEYWORDS
},
3698 { "wxImage_Scale", (PyCFunction
) _wrap_wxImage_Scale
, METH_VARARGS
| METH_KEYWORDS
},
3699 { "wxImage_Destroy", (PyCFunction
) _wrap_wxImage_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3700 { "wxImage_Create", (PyCFunction
) _wrap_wxImage_Create
, METH_VARARGS
| METH_KEYWORDS
},
3701 { "delete_wxImage", (PyCFunction
) _wrap_delete_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
3702 { "new_wxImage", (PyCFunction
) _wrap_new_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
3703 { "new_wxTIFFHandler", (PyCFunction
) _wrap_new_wxTIFFHandler
, METH_VARARGS
| METH_KEYWORDS
},
3704 { "new_wxPCXHandler", (PyCFunction
) _wrap_new_wxPCXHandler
, METH_VARARGS
| METH_KEYWORDS
},
3705 { "new_wxPNMHandler", (PyCFunction
) _wrap_new_wxPNMHandler
, METH_VARARGS
| METH_KEYWORDS
},
3706 { "new_wxGIFHandler", (PyCFunction
) _wrap_new_wxGIFHandler
, METH_VARARGS
| METH_KEYWORDS
},
3707 { "new_wxANIHandler", (PyCFunction
) _wrap_new_wxANIHandler
, METH_VARARGS
| METH_KEYWORDS
},
3708 { "new_wxCURHandler", (PyCFunction
) _wrap_new_wxCURHandler
, METH_VARARGS
| METH_KEYWORDS
},
3709 { "new_wxICOHandler", (PyCFunction
) _wrap_new_wxICOHandler
, METH_VARARGS
| METH_KEYWORDS
},
3710 { "new_wxBMPHandler", (PyCFunction
) _wrap_new_wxBMPHandler
, METH_VARARGS
| METH_KEYWORDS
},
3711 { "new_wxJPEGHandler", (PyCFunction
) _wrap_new_wxJPEGHandler
, METH_VARARGS
| METH_KEYWORDS
},
3712 { "new_wxPNGHandler", (PyCFunction
) _wrap_new_wxPNGHandler
, METH_VARARGS
| METH_KEYWORDS
},
3713 { "wxImageHandler_SetMimeType", (PyCFunction
) _wrap_wxImageHandler_SetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
3714 { "wxImageHandler_SetType", (PyCFunction
) _wrap_wxImageHandler_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3715 { "wxImageHandler_SetExtension", (PyCFunction
) _wrap_wxImageHandler_SetExtension
, METH_VARARGS
| METH_KEYWORDS
},
3716 { "wxImageHandler_SetName", (PyCFunction
) _wrap_wxImageHandler_SetName
, METH_VARARGS
| METH_KEYWORDS
},
3717 { "wxImageHandler_CanRead", (PyCFunction
) _wrap_wxImageHandler_CanRead
, METH_VARARGS
| METH_KEYWORDS
},
3718 { "wxImageHandler_GetMimeType", (PyCFunction
) _wrap_wxImageHandler_GetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
3719 { "wxImageHandler_GetType", (PyCFunction
) _wrap_wxImageHandler_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3720 { "wxImageHandler_GetExtension", (PyCFunction
) _wrap_wxImageHandler_GetExtension
, METH_VARARGS
| METH_KEYWORDS
},
3721 { "wxImageHandler_GetName", (PyCFunction
) _wrap_wxImageHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
3722 { "wxImageHistogram_FindFirstUnusedColour", (PyCFunction
) _wrap_wxImageHistogram_FindFirstUnusedColour
, METH_VARARGS
| METH_KEYWORDS
},
3723 { "wxImageHistogram_MakeKey", (PyCFunction
) _wrap_wxImageHistogram_MakeKey
, METH_VARARGS
| METH_KEYWORDS
},
3724 { "new_wxImageHistogram", (PyCFunction
) _wrap_new_wxImageHistogram
, METH_VARARGS
| METH_KEYWORDS
},
3725 { "wxBitmapFromImage", (PyCFunction
) _wrap_wxBitmapFromImage
, METH_VARARGS
| METH_KEYWORDS
},
3726 { "wxInitAllImageHandlers", (PyCFunction
) _wrap_wxInitAllImageHandlers
, METH_VARARGS
| METH_KEYWORDS
},
3727 { "wxImageFromStreamMime", (PyCFunction
) _wrap_wxImageFromStreamMime
, METH_VARARGS
| METH_KEYWORDS
},
3728 { "wxImageFromStream", (PyCFunction
) _wrap_wxImageFromStream
, METH_VARARGS
| METH_KEYWORDS
},
3729 { "wxImageFromData", (PyCFunction
) _wrap_wxImageFromData
, METH_VARARGS
| METH_KEYWORDS
},
3730 { "wxImageFromBitmap", (PyCFunction
) _wrap_wxImageFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3731 { "wxImageFromMime", (PyCFunction
) _wrap_wxImageFromMime
, METH_VARARGS
| METH_KEYWORDS
},
3732 { "wxEmptyImage", (PyCFunction
) _wrap_wxEmptyImage
, METH_VARARGS
| METH_KEYWORDS
},
3739 * This table is used by the pointer type-checker
3741 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3742 { "_signed_long","_long",0},
3743 { "_wxBMPHandler","_wxANIHandler",SwigwxANIHandlerTowxBMPHandler
},
3744 { "_wxBMPHandler","_wxCURHandler",SwigwxCURHandlerTowxBMPHandler
},
3745 { "_wxBMPHandler","_wxICOHandler",SwigwxICOHandlerTowxBMPHandler
},
3746 { "_wxICOHandler","_wxANIHandler",SwigwxANIHandlerTowxICOHandler
},
3747 { "_wxICOHandler","_wxCURHandler",SwigwxCURHandlerTowxICOHandler
},
3748 { "_wxPrintQuality","_wxCoord",0},
3749 { "_wxPrintQuality","_int",0},
3750 { "_wxPrintQuality","_signed_int",0},
3751 { "_wxPrintQuality","_unsigned_int",0},
3752 { "_wxPrintQuality","_wxWindowID",0},
3753 { "_wxPrintQuality","_uint",0},
3754 { "_wxPrintQuality","_EBool",0},
3755 { "_wxPrintQuality","_size_t",0},
3756 { "_wxPrintQuality","_time_t",0},
3757 { "_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler
},
3758 { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
},
3759 { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
},
3760 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
3761 { "_wxImageHandler","_wxANIHandler",SwigwxANIHandlerTowxImageHandler
},
3762 { "_wxImageHandler","_wxCURHandler",SwigwxCURHandlerTowxImageHandler
},
3763 { "_wxImageHandler","_wxICOHandler",SwigwxICOHandlerTowxImageHandler
},
3764 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
3765 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
3766 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
3767 { "_byte","_unsigned_char",0},
3768 { "_long","_unsigned_long",0},
3769 { "_long","_signed_long",0},
3770 { "_size_t","_wxCoord",0},
3771 { "_size_t","_wxPrintQuality",0},
3772 { "_size_t","_time_t",0},
3773 { "_size_t","_unsigned_int",0},
3774 { "_size_t","_int",0},
3775 { "_size_t","_wxWindowID",0},
3776 { "_size_t","_uint",0},
3777 { "_uint","_wxCoord",0},
3778 { "_uint","_wxPrintQuality",0},
3779 { "_uint","_time_t",0},
3780 { "_uint","_size_t",0},
3781 { "_uint","_unsigned_int",0},
3782 { "_uint","_int",0},
3783 { "_uint","_wxWindowID",0},
3784 { "_wxChar","_char",0},
3785 { "_char","_wxChar",0},
3786 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3787 { "_EBool","_wxCoord",0},
3788 { "_EBool","_wxPrintQuality",0},
3789 { "_EBool","_signed_int",0},
3790 { "_EBool","_int",0},
3791 { "_EBool","_wxWindowID",0},
3792 { "_unsigned_long","_long",0},
3793 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3794 { "_signed_int","_wxCoord",0},
3795 { "_signed_int","_wxPrintQuality",0},
3796 { "_signed_int","_EBool",0},
3797 { "_signed_int","_wxWindowID",0},
3798 { "_signed_int","_int",0},
3799 { "_WXTYPE","_short",0},
3800 { "_WXTYPE","_signed_short",0},
3801 { "_WXTYPE","_unsigned_short",0},
3802 { "_unsigned_short","_WXTYPE",0},
3803 { "_unsigned_short","_short",0},
3804 { "_wxObject","_wxImage",SwigwxImageTowxObject
},
3805 { "_wxObject","_wxTIFFHandler",SwigwxTIFFHandlerTowxObject
},
3806 { "_wxObject","_wxPCXHandler",SwigwxPCXHandlerTowxObject
},
3807 { "_wxObject","_wxPNMHandler",SwigwxPNMHandlerTowxObject
},
3808 { "_wxObject","_wxGIFHandler",SwigwxGIFHandlerTowxObject
},
3809 { "_wxObject","_wxANIHandler",SwigwxANIHandlerTowxObject
},
3810 { "_wxObject","_wxCURHandler",SwigwxCURHandlerTowxObject
},
3811 { "_wxObject","_wxICOHandler",SwigwxICOHandlerTowxObject
},
3812 { "_wxObject","_wxBMPHandler",SwigwxBMPHandlerTowxObject
},
3813 { "_wxObject","_wxJPEGHandler",SwigwxJPEGHandlerTowxObject
},
3814 { "_wxObject","_wxPNGHandler",SwigwxPNGHandlerTowxObject
},
3815 { "_wxObject","_wxImageHandler",SwigwxImageHandlerTowxObject
},
3816 { "_signed_short","_WXTYPE",0},
3817 { "_signed_short","_short",0},
3818 { "_wxCURHandler","_wxANIHandler",SwigwxANIHandlerTowxCURHandler
},
3819 { "_unsigned_char","_byte",0},
3820 { "_unsigned_int","_wxCoord",0},
3821 { "_unsigned_int","_wxPrintQuality",0},
3822 { "_unsigned_int","_time_t",0},
3823 { "_unsigned_int","_size_t",0},
3824 { "_unsigned_int","_uint",0},
3825 { "_unsigned_int","_wxWindowID",0},
3826 { "_unsigned_int","_int",0},
3827 { "_short","_WXTYPE",0},
3828 { "_short","_unsigned_short",0},
3829 { "_short","_signed_short",0},
3830 { "_wxWindowID","_wxCoord",0},
3831 { "_wxWindowID","_wxPrintQuality",0},
3832 { "_wxWindowID","_time_t",0},
3833 { "_wxWindowID","_size_t",0},
3834 { "_wxWindowID","_EBool",0},
3835 { "_wxWindowID","_uint",0},
3836 { "_wxWindowID","_int",0},
3837 { "_wxWindowID","_signed_int",0},
3838 { "_wxWindowID","_unsigned_int",0},
3839 { "_int","_wxCoord",0},
3840 { "_int","_wxPrintQuality",0},
3841 { "_int","_time_t",0},
3842 { "_int","_size_t",0},
3843 { "_int","_EBool",0},
3844 { "_int","_uint",0},
3845 { "_int","_wxWindowID",0},
3846 { "_int","_unsigned_int",0},
3847 { "_int","_signed_int",0},
3848 { "_time_t","_wxCoord",0},
3849 { "_time_t","_wxPrintQuality",0},
3850 { "_time_t","_unsigned_int",0},
3851 { "_time_t","_int",0},
3852 { "_time_t","_wxWindowID",0},
3853 { "_time_t","_uint",0},
3854 { "_time_t","_size_t",0},
3855 { "_wxCoord","_int",0},
3856 { "_wxCoord","_signed_int",0},
3857 { "_wxCoord","_unsigned_int",0},
3858 { "_wxCoord","_wxWindowID",0},
3859 { "_wxCoord","_uint",0},
3860 { "_wxCoord","_EBool",0},
3861 { "_wxCoord","_size_t",0},
3862 { "_wxCoord","_time_t",0},
3863 { "_wxCoord","_wxPrintQuality",0},
3866 static PyObject
*SWIG_globals
;
3870 SWIGEXPORT(void) initimagec() {
3872 SWIG_globals
= SWIG_newvarlink();
3873 m
= Py_InitModule("imagec", imagecMethods
);
3874 d
= PyModule_GetDict(m
);
3875 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3876 SWIG_addvarlink(SWIG_globals
,"wxNullImage",_wrap_wxNullImage_get
, _wrap_wxNullImage_set
);
3879 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3880 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);