2 * FILE : src/mac/image.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initimagec
55 #define SWIG_name "imagec"
58 #include "pyistream.h"
62 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
68 } else if (target
== Py_None
) {
72 if (!PyTuple_Check(target
)) {
74 target
= PyTuple_New(1);
75 PyTuple_SetItem(target
, 0, o2
);
78 PyTuple_SetItem(o3
, 0, o
);
81 target
= PySequence_Concat(o2
, o3
);
88 wxImage
* wxEmptyImage(int width
=0, int height
=0) {
89 if (width
== 0 && height
== 0)
92 return new wxImage(width
, height
);
96 wxImage
* wxImageFromMime(const wxString
& name
, const wxString
& mimetype
, int index
) {
97 return new wxImage(name
, mimetype
, index
);
101 wxImage
* wxImageFromBitmap(const wxBitmap
&bitmap
) {
102 return new wxImage(bitmap
.ConvertToImage());
106 wxImage
* wxImageFromData(int width
, int height
, unsigned char* data
) {
107 // Copy the source data so the wxImage can clean it up later
108 unsigned char* copy
= (unsigned char*)malloc(width
*height
*3);
113 memcpy(copy
, data
, width
*height
*3);
114 return new wxImage(width
, height
, copy
, FALSE
);
118 wxImage
* wxImageFromStream(wxInputStream
& stream
,
119 long type
= wxBITMAP_TYPE_ANY
, int index
= -1) {
120 return new wxImage(stream
, type
, index
);
124 wxImage
* wxImageFromStreamMime(wxInputStream
& stream
,
125 const wxString
& mimetype
, int index
= -1 ) {
126 return new wxImage(stream
, mimetype
, index
);
130 extern wxImage wxNullImage
;
134 wxBitmap
* wxBitmapFromImage(const wxImage
& img
, int depth
=-1) {
135 return new wxBitmap(img
, depth
);
141 static PyObject
*_wrap_wxEmptyImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
142 PyObject
* _resultobj
;
144 int _arg0
= (int ) 0;
145 int _arg1
= (int ) 0;
146 char *_kwnames
[] = { "width","height", NULL
};
150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|ii:wxEmptyImage",_kwnames
,&_arg0
,&_arg1
))
153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
154 _result
= (wxImage
*)wxEmptyImage(_arg0
,_arg1
);
156 wxPyEndAllowThreads(__tstate
);
157 if (PyErr_Occurred()) return NULL
;
159 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
160 _resultobj
= Py_BuildValue("s",_ptemp
);
163 _resultobj
= Py_None
;
168 static PyObject
*_wrap_wxImageFromMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
169 PyObject
* _resultobj
;
173 int _arg2
= (int ) -1;
174 PyObject
* _obj0
= 0;
175 PyObject
* _obj1
= 0;
176 char *_kwnames
[] = { "name","mimetype","index", NULL
};
180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxImageFromMime",_kwnames
,&_obj0
,&_obj1
,&_arg2
))
183 _arg0
= wxString_in_helper(_obj0
);
188 _arg1
= wxString_in_helper(_obj1
);
193 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
194 _result
= (wxImage
*)wxImageFromMime(*_arg0
,*_arg1
,_arg2
);
196 wxPyEndAllowThreads(__tstate
);
197 if (PyErr_Occurred()) return NULL
;
199 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
200 _resultobj
= Py_BuildValue("s",_ptemp
);
203 _resultobj
= Py_None
;
216 static PyObject
*_wrap_wxImageFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
217 PyObject
* _resultobj
;
220 PyObject
* _argo0
= 0;
221 char *_kwnames
[] = { "bitmap", NULL
};
225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageFromBitmap",_kwnames
,&_argo0
))
228 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
235 _result
= (wxImage
*)wxImageFromBitmap(*_arg0
);
237 wxPyEndAllowThreads(__tstate
);
238 if (PyErr_Occurred()) return NULL
;
240 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
241 _resultobj
= Py_BuildValue("s",_ptemp
);
244 _resultobj
= Py_None
;
249 static PyObject
*_wrap_wxImageFromData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
250 PyObject
* _resultobj
;
254 unsigned char * _arg2
;
255 PyObject
* _argo2
= 0;
256 char *_kwnames
[] = { "width","height","data", NULL
};
260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiO:wxImageFromData",_kwnames
,&_arg0
,&_arg1
,&_argo2
))
263 if (_argo2
== Py_None
) { _arg2
= NULL
; }
264 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_unsigned_char_p")) {
265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageFromData. Expected _unsigned_char_p.");
270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
271 _result
= (wxImage
*)wxImageFromData(_arg0
,_arg1
,_arg2
);
273 wxPyEndAllowThreads(__tstate
);
274 if (PyErr_Occurred()) return NULL
;
276 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
277 _resultobj
= Py_BuildValue("s",_ptemp
);
280 _resultobj
= Py_None
;
285 static PyObject
*_wrap_wxImageFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
286 PyObject
* _resultobj
;
288 wxInputStream
* _arg0
;
289 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
290 int _arg2
= (int ) -1;
291 wxPyInputStream
* temp
;
293 PyObject
* _obj0
= 0;
294 char *_kwnames
[] = { "stream","type","index", NULL
};
298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|li:wxImageFromStream",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
301 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
302 _arg0
= temp
->m_wxis
;
305 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
307 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
314 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
315 _result
= (wxImage
*)wxImageFromStream(*_arg0
,_arg1
,_arg2
);
317 wxPyEndAllowThreads(__tstate
);
318 if (PyErr_Occurred()) return NULL
;
320 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
321 _resultobj
= Py_BuildValue("s",_ptemp
);
324 _resultobj
= Py_None
;
333 static PyObject
*_wrap_wxImageFromStreamMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
334 PyObject
* _resultobj
;
336 wxInputStream
* _arg0
;
338 int _arg2
= (int ) -1;
339 wxPyInputStream
* temp
;
341 PyObject
* _obj0
= 0;
342 PyObject
* _obj1
= 0;
343 char *_kwnames
[] = { "stream","mimetype","index", NULL
};
347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxImageFromStreamMime",_kwnames
,&_obj0
,&_obj1
,&_arg2
))
350 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
351 _arg0
= temp
->m_wxis
;
354 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
356 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
363 _arg1
= wxString_in_helper(_obj1
);
368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
369 _result
= (wxImage
*)wxImageFromStreamMime(*_arg0
,*_arg1
,_arg2
);
371 wxPyEndAllowThreads(__tstate
);
372 if (PyErr_Occurred()) return NULL
;
374 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
375 _resultobj
= Py_BuildValue("s",_ptemp
);
378 _resultobj
= Py_None
;
391 static PyObject
*_wrap_wxInitAllImageHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
392 PyObject
* _resultobj
;
393 char *_kwnames
[] = { NULL
};
396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxInitAllImageHandlers",_kwnames
))
399 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
400 wxInitAllImageHandlers();
402 wxPyEndAllowThreads(__tstate
);
403 if (PyErr_Occurred()) return NULL
;
404 } Py_INCREF(Py_None
);
405 _resultobj
= Py_None
;
409 static int _wrap_wxNullImage_set(PyObject
*val
) {
411 PyErr_SetString(PyExc_TypeError
,"Variable wxNullImage is read-only.");
415 static PyObject
*_wrap_wxNullImage_get() {
419 SWIG_MakePtr(ptemp
,(char *) &wxNullImage
,"_wxImage_p");
420 pyobj
= PyString_FromString(ptemp
);
424 static PyObject
*_wrap_wxBitmapFromImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
425 PyObject
* _resultobj
;
428 int _arg1
= (int ) -1;
429 PyObject
* _argo0
= 0;
430 char *_kwnames
[] = { "img","depth", NULL
};
434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxBitmapFromImage",_kwnames
,&_argo0
,&_arg1
))
437 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromImage. Expected _wxImage_p.");
443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
444 _result
= (wxBitmap
*)wxBitmapFromImage(*_arg0
,_arg1
);
446 wxPyEndAllowThreads(__tstate
);
447 if (PyErr_Occurred()) return NULL
;
449 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
450 _resultobj
= Py_BuildValue("s",_ptemp
);
453 _resultobj
= Py_None
;
458 #define new_wxImageHistogram() (new wxImageHistogram())
459 static PyObject
*_wrap_new_wxImageHistogram(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
460 PyObject
* _resultobj
;
461 wxImageHistogram
* _result
;
462 char *_kwnames
[] = { NULL
};
466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxImageHistogram",_kwnames
))
469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
470 _result
= (wxImageHistogram
*)new_wxImageHistogram();
472 wxPyEndAllowThreads(__tstate
);
473 if (PyErr_Occurred()) return NULL
;
475 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageHistogram_p");
476 _resultobj
= Py_BuildValue("s",_ptemp
);
479 _resultobj
= Py_None
;
484 static PyObject
*_wrap_wxImageHistogram_MakeKey(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
485 PyObject
* _resultobj
;
486 unsigned long _result
;
490 char *_kwnames
[] = { "r","g","b", NULL
};
493 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"bbb:wxImageHistogram_MakeKey",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
496 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
497 _result
= (unsigned long )wxImageHistogram::MakeKey(_arg0
,_arg1
,_arg2
);
499 wxPyEndAllowThreads(__tstate
);
500 if (PyErr_Occurred()) return NULL
;
501 } _resultobj
= Py_BuildValue("l",_result
);
505 #define wxImageHistogram_FindFirstUnusedColour(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->FindFirstUnusedColour(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
506 static PyObject
*_wrap_wxImageHistogram_FindFirstUnusedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
507 PyObject
* _resultobj
;
509 wxImageHistogram
* _arg0
;
510 unsigned char * _arg1
;
512 unsigned char * _arg2
;
514 unsigned char * _arg3
;
516 unsigned char _arg4
= (unsigned char ) 1;
517 unsigned char _arg5
= (unsigned char ) 0;
518 unsigned char _arg6
= (unsigned char ) 0;
519 PyObject
* _argo0
= 0;
520 char *_kwnames
[] = { "self","startR","startG","startB", NULL
};
532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|bbb:wxImageHistogram_FindFirstUnusedColour",_kwnames
,&_argo0
,&_arg4
,&_arg5
,&_arg6
))
535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHistogram_p")) {
537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHistogram_FindFirstUnusedColour. Expected _wxImageHistogram_p.");
542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
543 _result
= (bool )wxImageHistogram_FindFirstUnusedColour(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
545 wxPyEndAllowThreads(__tstate
);
546 if (PyErr_Occurred()) return NULL
;
547 } _resultobj
= Py_BuildValue("i",_result
);
550 o
= PyInt_FromLong((long) (*_arg1
));
551 _resultobj
= t_output_helper(_resultobj
, o
);
555 o
= PyInt_FromLong((long) (*_arg2
));
556 _resultobj
= t_output_helper(_resultobj
, o
);
560 o
= PyInt_FromLong((long) (*_arg3
));
561 _resultobj
= t_output_helper(_resultobj
, o
);
566 static void *SwigwxImageHandlerTowxObject(void *ptr
) {
569 src
= (wxImageHandler
*) ptr
;
570 dest
= (wxObject
*) src
;
571 return (void *) dest
;
574 #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
575 static PyObject
*_wrap_wxImageHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
576 PyObject
* _resultobj
;
578 wxImageHandler
* _arg0
;
579 PyObject
* _argo0
= 0;
580 char *_kwnames
[] = { "self", NULL
};
583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetName",_kwnames
,&_argo0
))
586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
593 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
594 _result
= new wxString (wxImageHandler_GetName(_arg0
));
596 wxPyEndAllowThreads(__tstate
);
597 if (PyErr_Occurred()) return NULL
;
600 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
602 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
611 #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
612 static PyObject
*_wrap_wxImageHandler_GetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
613 PyObject
* _resultobj
;
615 wxImageHandler
* _arg0
;
616 PyObject
* _argo0
= 0;
617 char *_kwnames
[] = { "self", NULL
};
620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetExtension",_kwnames
,&_argo0
))
623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
631 _result
= new wxString (wxImageHandler_GetExtension(_arg0
));
633 wxPyEndAllowThreads(__tstate
);
634 if (PyErr_Occurred()) return NULL
;
637 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
639 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
648 #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
649 static PyObject
*_wrap_wxImageHandler_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
650 PyObject
* _resultobj
;
652 wxImageHandler
* _arg0
;
653 PyObject
* _argo0
= 0;
654 char *_kwnames
[] = { "self", NULL
};
657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetType",_kwnames
,&_argo0
))
660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
667 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
668 _result
= (long )wxImageHandler_GetType(_arg0
);
670 wxPyEndAllowThreads(__tstate
);
671 if (PyErr_Occurred()) return NULL
;
672 } _resultobj
= Py_BuildValue("l",_result
);
676 #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
677 static PyObject
*_wrap_wxImageHandler_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
678 PyObject
* _resultobj
;
680 wxImageHandler
* _arg0
;
681 PyObject
* _argo0
= 0;
682 char *_kwnames
[] = { "self", NULL
};
685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetMimeType",_kwnames
,&_argo0
))
688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
695 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
696 _result
= new wxString (wxImageHandler_GetMimeType(_arg0
));
698 wxPyEndAllowThreads(__tstate
);
699 if (PyErr_Occurred()) return NULL
;
702 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
704 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
713 #define wxImageHandler_CanRead(_swigobj,_swigarg0) (_swigobj->CanRead(_swigarg0))
714 static PyObject
*_wrap_wxImageHandler_CanRead(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
715 PyObject
* _resultobj
;
717 wxImageHandler
* _arg0
;
719 PyObject
* _argo0
= 0;
720 PyObject
* _obj1
= 0;
721 char *_kwnames
[] = { "self","name", NULL
};
724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_CanRead",_kwnames
,&_argo0
,&_obj1
))
727 if (_argo0
== Py_None
) { _arg0
= NULL
; }
728 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_CanRead. Expected _wxImageHandler_p.");
734 _arg1
= wxString_in_helper(_obj1
);
739 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
740 _result
= (bool )wxImageHandler_CanRead(_arg0
,*_arg1
);
742 wxPyEndAllowThreads(__tstate
);
743 if (PyErr_Occurred()) return NULL
;
744 } _resultobj
= Py_BuildValue("i",_result
);
752 #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
753 static PyObject
*_wrap_wxImageHandler_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
754 PyObject
* _resultobj
;
755 wxImageHandler
* _arg0
;
757 PyObject
* _argo0
= 0;
758 PyObject
* _obj1
= 0;
759 char *_kwnames
[] = { "self","name", NULL
};
762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetName",_kwnames
,&_argo0
,&_obj1
))
765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
772 _arg1
= wxString_in_helper(_obj1
);
777 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
778 wxImageHandler_SetName(_arg0
,*_arg1
);
780 wxPyEndAllowThreads(__tstate
);
781 if (PyErr_Occurred()) return NULL
;
782 } Py_INCREF(Py_None
);
783 _resultobj
= Py_None
;
791 #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
792 static PyObject
*_wrap_wxImageHandler_SetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
793 PyObject
* _resultobj
;
794 wxImageHandler
* _arg0
;
796 PyObject
* _argo0
= 0;
797 PyObject
* _obj1
= 0;
798 char *_kwnames
[] = { "self","extension", NULL
};
801 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetExtension",_kwnames
,&_argo0
,&_obj1
))
804 if (_argo0
== Py_None
) { _arg0
= NULL
; }
805 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
811 _arg1
= wxString_in_helper(_obj1
);
816 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
817 wxImageHandler_SetExtension(_arg0
,*_arg1
);
819 wxPyEndAllowThreads(__tstate
);
820 if (PyErr_Occurred()) return NULL
;
821 } Py_INCREF(Py_None
);
822 _resultobj
= Py_None
;
830 #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
831 static PyObject
*_wrap_wxImageHandler_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
832 PyObject
* _resultobj
;
833 wxImageHandler
* _arg0
;
835 PyObject
* _argo0
= 0;
836 char *_kwnames
[] = { "self","type", NULL
};
839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxImageHandler_SetType",_kwnames
,&_argo0
,&_arg1
))
842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
850 wxImageHandler_SetType(_arg0
,_arg1
);
852 wxPyEndAllowThreads(__tstate
);
853 if (PyErr_Occurred()) return NULL
;
854 } Py_INCREF(Py_None
);
855 _resultobj
= Py_None
;
859 #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
860 static PyObject
*_wrap_wxImageHandler_SetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
861 PyObject
* _resultobj
;
862 wxImageHandler
* _arg0
;
864 PyObject
* _argo0
= 0;
865 PyObject
* _obj1
= 0;
866 char *_kwnames
[] = { "self","mimetype", NULL
};
869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetMimeType",_kwnames
,&_argo0
,&_obj1
))
872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
879 _arg1
= wxString_in_helper(_obj1
);
884 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
885 wxImageHandler_SetMimeType(_arg0
,*_arg1
);
887 wxPyEndAllowThreads(__tstate
);
888 if (PyErr_Occurred()) return NULL
;
889 } Py_INCREF(Py_None
);
890 _resultobj
= Py_None
;
898 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr
) {
900 wxImageHandler
*dest
;
901 src
= (wxPNGHandler
*) ptr
;
902 dest
= (wxImageHandler
*) src
;
903 return (void *) dest
;
906 static void *SwigwxPNGHandlerTowxObject(void *ptr
) {
909 src
= (wxPNGHandler
*) ptr
;
910 dest
= (wxObject
*) src
;
911 return (void *) dest
;
914 #define new_wxPNGHandler() (new wxPNGHandler())
915 static PyObject
*_wrap_new_wxPNGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
916 PyObject
* _resultobj
;
917 wxPNGHandler
* _result
;
918 char *_kwnames
[] = { NULL
};
922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNGHandler",_kwnames
))
925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
926 _result
= (wxPNGHandler
*)new_wxPNGHandler();
928 wxPyEndAllowThreads(__tstate
);
929 if (PyErr_Occurred()) return NULL
;
931 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNGHandler_p");
932 _resultobj
= Py_BuildValue("s",_ptemp
);
935 _resultobj
= Py_None
;
940 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr
) {
942 wxImageHandler
*dest
;
943 src
= (wxJPEGHandler
*) ptr
;
944 dest
= (wxImageHandler
*) src
;
945 return (void *) dest
;
948 static void *SwigwxJPEGHandlerTowxObject(void *ptr
) {
951 src
= (wxJPEGHandler
*) ptr
;
952 dest
= (wxObject
*) src
;
953 return (void *) dest
;
956 #define new_wxJPEGHandler() (new wxJPEGHandler())
957 static PyObject
*_wrap_new_wxJPEGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
958 PyObject
* _resultobj
;
959 wxJPEGHandler
* _result
;
960 char *_kwnames
[] = { NULL
};
964 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxJPEGHandler",_kwnames
))
967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
968 _result
= (wxJPEGHandler
*)new_wxJPEGHandler();
970 wxPyEndAllowThreads(__tstate
);
971 if (PyErr_Occurred()) return NULL
;
973 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxJPEGHandler_p");
974 _resultobj
= Py_BuildValue("s",_ptemp
);
977 _resultobj
= Py_None
;
982 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr
) {
984 wxImageHandler
*dest
;
985 src
= (wxBMPHandler
*) ptr
;
986 dest
= (wxImageHandler
*) src
;
987 return (void *) dest
;
990 static void *SwigwxBMPHandlerTowxObject(void *ptr
) {
993 src
= (wxBMPHandler
*) ptr
;
994 dest
= (wxObject
*) src
;
995 return (void *) dest
;
998 #define new_wxBMPHandler() (new wxBMPHandler())
999 static PyObject
*_wrap_new_wxBMPHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1000 PyObject
* _resultobj
;
1001 wxBMPHandler
* _result
;
1002 char *_kwnames
[] = { NULL
};
1006 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxBMPHandler",_kwnames
))
1009 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1010 _result
= (wxBMPHandler
*)new_wxBMPHandler();
1012 wxPyEndAllowThreads(__tstate
);
1013 if (PyErr_Occurred()) return NULL
;
1015 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBMPHandler_p");
1016 _resultobj
= Py_BuildValue("s",_ptemp
);
1019 _resultobj
= Py_None
;
1024 static void *SwigwxICOHandlerTowxBMPHandler(void *ptr
) {
1027 src
= (wxICOHandler
*) ptr
;
1028 dest
= (wxBMPHandler
*) src
;
1029 return (void *) dest
;
1032 static void *SwigwxICOHandlerTowxImageHandler(void *ptr
) {
1034 wxImageHandler
*dest
;
1035 src
= (wxICOHandler
*) ptr
;
1036 dest
= (wxImageHandler
*) src
;
1037 return (void *) dest
;
1040 static void *SwigwxICOHandlerTowxObject(void *ptr
) {
1043 src
= (wxICOHandler
*) ptr
;
1044 dest
= (wxObject
*) src
;
1045 return (void *) dest
;
1048 #define new_wxICOHandler() (new wxICOHandler())
1049 static PyObject
*_wrap_new_wxICOHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1050 PyObject
* _resultobj
;
1051 wxICOHandler
* _result
;
1052 char *_kwnames
[] = { NULL
};
1056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxICOHandler",_kwnames
))
1059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1060 _result
= (wxICOHandler
*)new_wxICOHandler();
1062 wxPyEndAllowThreads(__tstate
);
1063 if (PyErr_Occurred()) return NULL
;
1065 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxICOHandler_p");
1066 _resultobj
= Py_BuildValue("s",_ptemp
);
1069 _resultobj
= Py_None
;
1074 static void *SwigwxCURHandlerTowxICOHandler(void *ptr
) {
1077 src
= (wxCURHandler
*) ptr
;
1078 dest
= (wxICOHandler
*) src
;
1079 return (void *) dest
;
1082 static void *SwigwxCURHandlerTowxBMPHandler(void *ptr
) {
1085 src
= (wxCURHandler
*) ptr
;
1086 dest
= (wxBMPHandler
*) src
;
1087 return (void *) dest
;
1090 static void *SwigwxCURHandlerTowxImageHandler(void *ptr
) {
1092 wxImageHandler
*dest
;
1093 src
= (wxCURHandler
*) ptr
;
1094 dest
= (wxImageHandler
*) src
;
1095 return (void *) dest
;
1098 static void *SwigwxCURHandlerTowxObject(void *ptr
) {
1101 src
= (wxCURHandler
*) ptr
;
1102 dest
= (wxObject
*) src
;
1103 return (void *) dest
;
1106 #define new_wxCURHandler() (new wxCURHandler())
1107 static PyObject
*_wrap_new_wxCURHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1108 PyObject
* _resultobj
;
1109 wxCURHandler
* _result
;
1110 char *_kwnames
[] = { NULL
};
1114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxCURHandler",_kwnames
))
1117 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1118 _result
= (wxCURHandler
*)new_wxCURHandler();
1120 wxPyEndAllowThreads(__tstate
);
1121 if (PyErr_Occurred()) return NULL
;
1123 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCURHandler_p");
1124 _resultobj
= Py_BuildValue("s",_ptemp
);
1127 _resultobj
= Py_None
;
1132 static void *SwigwxANIHandlerTowxCURHandler(void *ptr
) {
1135 src
= (wxANIHandler
*) ptr
;
1136 dest
= (wxCURHandler
*) src
;
1137 return (void *) dest
;
1140 static void *SwigwxANIHandlerTowxICOHandler(void *ptr
) {
1143 src
= (wxANIHandler
*) ptr
;
1144 dest
= (wxICOHandler
*) src
;
1145 return (void *) dest
;
1148 static void *SwigwxANIHandlerTowxBMPHandler(void *ptr
) {
1151 src
= (wxANIHandler
*) ptr
;
1152 dest
= (wxBMPHandler
*) src
;
1153 return (void *) dest
;
1156 static void *SwigwxANIHandlerTowxImageHandler(void *ptr
) {
1158 wxImageHandler
*dest
;
1159 src
= (wxANIHandler
*) ptr
;
1160 dest
= (wxImageHandler
*) src
;
1161 return (void *) dest
;
1164 static void *SwigwxANIHandlerTowxObject(void *ptr
) {
1167 src
= (wxANIHandler
*) ptr
;
1168 dest
= (wxObject
*) src
;
1169 return (void *) dest
;
1172 #define new_wxANIHandler() (new wxANIHandler())
1173 static PyObject
*_wrap_new_wxANIHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1174 PyObject
* _resultobj
;
1175 wxANIHandler
* _result
;
1176 char *_kwnames
[] = { NULL
};
1180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxANIHandler",_kwnames
))
1183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1184 _result
= (wxANIHandler
*)new_wxANIHandler();
1186 wxPyEndAllowThreads(__tstate
);
1187 if (PyErr_Occurred()) return NULL
;
1189 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxANIHandler_p");
1190 _resultobj
= Py_BuildValue("s",_ptemp
);
1193 _resultobj
= Py_None
;
1198 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr
) {
1200 wxImageHandler
*dest
;
1201 src
= (wxGIFHandler
*) ptr
;
1202 dest
= (wxImageHandler
*) src
;
1203 return (void *) dest
;
1206 static void *SwigwxGIFHandlerTowxObject(void *ptr
) {
1209 src
= (wxGIFHandler
*) ptr
;
1210 dest
= (wxObject
*) src
;
1211 return (void *) dest
;
1214 #define new_wxGIFHandler() (new wxGIFHandler())
1215 static PyObject
*_wrap_new_wxGIFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1216 PyObject
* _resultobj
;
1217 wxGIFHandler
* _result
;
1218 char *_kwnames
[] = { NULL
};
1222 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGIFHandler",_kwnames
))
1225 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1226 _result
= (wxGIFHandler
*)new_wxGIFHandler();
1228 wxPyEndAllowThreads(__tstate
);
1229 if (PyErr_Occurred()) return NULL
;
1231 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGIFHandler_p");
1232 _resultobj
= Py_BuildValue("s",_ptemp
);
1235 _resultobj
= Py_None
;
1240 static void *SwigwxPNMHandlerTowxImageHandler(void *ptr
) {
1242 wxImageHandler
*dest
;
1243 src
= (wxPNMHandler
*) ptr
;
1244 dest
= (wxImageHandler
*) src
;
1245 return (void *) dest
;
1248 static void *SwigwxPNMHandlerTowxObject(void *ptr
) {
1251 src
= (wxPNMHandler
*) ptr
;
1252 dest
= (wxObject
*) src
;
1253 return (void *) dest
;
1256 #define new_wxPNMHandler() (new wxPNMHandler())
1257 static PyObject
*_wrap_new_wxPNMHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1258 PyObject
* _resultobj
;
1259 wxPNMHandler
* _result
;
1260 char *_kwnames
[] = { NULL
};
1264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNMHandler",_kwnames
))
1267 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1268 _result
= (wxPNMHandler
*)new_wxPNMHandler();
1270 wxPyEndAllowThreads(__tstate
);
1271 if (PyErr_Occurred()) return NULL
;
1273 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNMHandler_p");
1274 _resultobj
= Py_BuildValue("s",_ptemp
);
1277 _resultobj
= Py_None
;
1282 static void *SwigwxPCXHandlerTowxImageHandler(void *ptr
) {
1284 wxImageHandler
*dest
;
1285 src
= (wxPCXHandler
*) ptr
;
1286 dest
= (wxImageHandler
*) src
;
1287 return (void *) dest
;
1290 static void *SwigwxPCXHandlerTowxObject(void *ptr
) {
1293 src
= (wxPCXHandler
*) ptr
;
1294 dest
= (wxObject
*) src
;
1295 return (void *) dest
;
1298 #define new_wxPCXHandler() (new wxPCXHandler())
1299 static PyObject
*_wrap_new_wxPCXHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1300 PyObject
* _resultobj
;
1301 wxPCXHandler
* _result
;
1302 char *_kwnames
[] = { NULL
};
1306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPCXHandler",_kwnames
))
1309 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1310 _result
= (wxPCXHandler
*)new_wxPCXHandler();
1312 wxPyEndAllowThreads(__tstate
);
1313 if (PyErr_Occurred()) return NULL
;
1315 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPCXHandler_p");
1316 _resultobj
= Py_BuildValue("s",_ptemp
);
1319 _resultobj
= Py_None
;
1324 static void *SwigwxTIFFHandlerTowxImageHandler(void *ptr
) {
1326 wxImageHandler
*dest
;
1327 src
= (wxTIFFHandler
*) ptr
;
1328 dest
= (wxImageHandler
*) src
;
1329 return (void *) dest
;
1332 static void *SwigwxTIFFHandlerTowxObject(void *ptr
) {
1335 src
= (wxTIFFHandler
*) ptr
;
1336 dest
= (wxObject
*) src
;
1337 return (void *) dest
;
1340 #define new_wxTIFFHandler() (new wxTIFFHandler())
1341 static PyObject
*_wrap_new_wxTIFFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1342 PyObject
* _resultobj
;
1343 wxTIFFHandler
* _result
;
1344 char *_kwnames
[] = { NULL
};
1348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTIFFHandler",_kwnames
))
1351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1352 _result
= (wxTIFFHandler
*)new_wxTIFFHandler();
1354 wxPyEndAllowThreads(__tstate
);
1355 if (PyErr_Occurred()) return NULL
;
1357 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTIFFHandler_p");
1358 _resultobj
= Py_BuildValue("s",_ptemp
);
1361 _resultobj
= Py_None
;
1366 static void *SwigwxImageTowxObject(void *ptr
) {
1369 src
= (wxImage
*) ptr
;
1370 dest
= (wxObject
*) src
;
1371 return (void *) dest
;
1374 #define new_wxImage(_swigarg0,_swigarg1,_swigarg2) (new wxImage(_swigarg0,_swigarg1,_swigarg2))
1375 static PyObject
*_wrap_new_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1376 PyObject
* _resultobj
;
1379 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
1380 int _arg2
= (int ) -1;
1381 PyObject
* _obj0
= 0;
1382 char *_kwnames
[] = { "name","type","index", NULL
};
1386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|li:new_wxImage",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
1389 _arg0
= wxString_in_helper(_obj0
);
1394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1395 _result
= (wxImage
*)new_wxImage(*_arg0
,_arg1
,_arg2
);
1397 wxPyEndAllowThreads(__tstate
);
1398 if (PyErr_Occurred()) return NULL
;
1400 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
1401 _resultobj
= Py_BuildValue("s",_ptemp
);
1404 _resultobj
= Py_None
;
1413 #define delete_wxImage(_swigobj) (delete _swigobj)
1414 static PyObject
*_wrap_delete_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1415 PyObject
* _resultobj
;
1417 PyObject
* _argo0
= 0;
1418 char *_kwnames
[] = { "self", NULL
};
1421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImage",_kwnames
,&_argo0
))
1424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
1431 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1432 delete_wxImage(_arg0
);
1434 wxPyEndAllowThreads(__tstate
);
1435 if (PyErr_Occurred()) return NULL
;
1436 } Py_INCREF(Py_None
);
1437 _resultobj
= Py_None
;
1441 #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
1442 static PyObject
*_wrap_wxImage_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1443 PyObject
* _resultobj
;
1447 PyObject
* _argo0
= 0;
1448 char *_kwnames
[] = { "self","width","height", NULL
};
1451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Create",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1454 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1455 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1456 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
1461 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1462 wxImage_Create(_arg0
,_arg1
,_arg2
);
1464 wxPyEndAllowThreads(__tstate
);
1465 if (PyErr_Occurred()) return NULL
;
1466 } Py_INCREF(Py_None
);
1467 _resultobj
= Py_None
;
1471 #define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
1472 static PyObject
*_wrap_wxImage_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1473 PyObject
* _resultobj
;
1475 PyObject
* _argo0
= 0;
1476 char *_kwnames
[] = { "self", NULL
};
1479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Destroy",_kwnames
,&_argo0
))
1482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
1489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1490 wxImage_Destroy(_arg0
);
1492 wxPyEndAllowThreads(__tstate
);
1493 if (PyErr_Occurred()) return NULL
;
1494 } Py_INCREF(Py_None
);
1495 _resultobj
= Py_None
;
1499 #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
1500 static PyObject
*_wrap_wxImage_Scale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1501 PyObject
* _resultobj
;
1506 PyObject
* _argo0
= 0;
1507 char *_kwnames
[] = { "self","width","height", NULL
};
1511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Scale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
1521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1522 _result
= new wxImage (wxImage_Scale(_arg0
,_arg1
,_arg2
));
1524 wxPyEndAllowThreads(__tstate
);
1525 if (PyErr_Occurred()) return NULL
;
1526 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1527 _resultobj
= Py_BuildValue("s",_ptemp
);
1531 #define wxImage_ShrinkBy(_swigobj,_swigarg0,_swigarg1) (_swigobj->ShrinkBy(_swigarg0,_swigarg1))
1532 static PyObject
*_wrap_wxImage_ShrinkBy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1533 PyObject
* _resultobj
;
1538 PyObject
* _argo0
= 0;
1539 char *_kwnames
[] = { "self","xFactor","yFactor", NULL
};
1543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_ShrinkBy",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ShrinkBy. Expected _wxImage_p.");
1553 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1554 _result
= new wxImage (wxImage_ShrinkBy(_arg0
,_arg1
,_arg2
));
1556 wxPyEndAllowThreads(__tstate
);
1557 if (PyErr_Occurred()) return NULL
;
1558 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1559 _resultobj
= Py_BuildValue("s",_ptemp
);
1563 #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
1564 static PyObject
*_wrap_wxImage_Rescale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1565 PyObject
* _resultobj
;
1570 PyObject
* _argo0
= 0;
1571 char *_kwnames
[] = { "self","width","height", NULL
};
1575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Rescale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
1585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1586 wxImage
& _result_ref
= wxImage_Rescale(_arg0
,_arg1
,_arg2
);
1587 _result
= (wxImage
*) &_result_ref
;
1589 wxPyEndAllowThreads(__tstate
);
1590 if (PyErr_Occurred()) return NULL
;
1592 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
1593 _resultobj
= Py_BuildValue("s",_ptemp
);
1596 _resultobj
= Py_None
;
1601 #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1602 static PyObject
*_wrap_wxImage_SetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1603 PyObject
* _resultobj
;
1607 unsigned char _arg3
;
1608 unsigned char _arg4
;
1609 unsigned char _arg5
;
1610 PyObject
* _argo0
= 0;
1611 char *_kwnames
[] = { "self","x","y","r","g","b", NULL
};
1614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiibbb:wxImage_SetRGB",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
1617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
1624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1625 wxImage_SetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
1627 wxPyEndAllowThreads(__tstate
);
1628 if (PyErr_Occurred()) return NULL
;
1629 } Py_INCREF(Py_None
);
1630 _resultobj
= Py_None
;
1634 #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
1635 static PyObject
*_wrap_wxImage_GetRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1636 PyObject
* _resultobj
;
1637 unsigned char _result
;
1641 PyObject
* _argo0
= 0;
1642 char *_kwnames
[] = { "self","x","y", NULL
};
1645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetRed",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
1655 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1656 _result
= (unsigned char )wxImage_GetRed(_arg0
,_arg1
,_arg2
);
1658 wxPyEndAllowThreads(__tstate
);
1659 if (PyErr_Occurred()) return NULL
;
1660 } _resultobj
= Py_BuildValue("b",_result
);
1664 #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
1665 static PyObject
*_wrap_wxImage_GetGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1666 PyObject
* _resultobj
;
1667 unsigned char _result
;
1671 PyObject
* _argo0
= 0;
1672 char *_kwnames
[] = { "self","x","y", NULL
};
1675 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetGreen",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1678 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1679 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1680 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1685 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1686 _result
= (unsigned char )wxImage_GetGreen(_arg0
,_arg1
,_arg2
);
1688 wxPyEndAllowThreads(__tstate
);
1689 if (PyErr_Occurred()) return NULL
;
1690 } _resultobj
= Py_BuildValue("b",_result
);
1694 #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
1695 static PyObject
*_wrap_wxImage_GetBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1696 PyObject
* _resultobj
;
1697 unsigned char _result
;
1701 PyObject
* _argo0
= 0;
1702 char *_kwnames
[] = { "self","x","y", NULL
};
1705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetBlue",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1708 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1709 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1710 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1715 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1716 _result
= (unsigned char )wxImage_GetBlue(_arg0
,_arg1
,_arg2
);
1718 wxPyEndAllowThreads(__tstate
);
1719 if (PyErr_Occurred()) return NULL
;
1720 } _resultobj
= Py_BuildValue("b",_result
);
1724 #define wxImage_SetAlpha(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetAlpha(_swigarg0,_swigarg1,_swigarg2))
1725 static PyObject
*_wrap_wxImage_SetAlpha(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1726 PyObject
* _resultobj
;
1730 unsigned char _arg3
;
1731 PyObject
* _argo0
= 0;
1732 char *_kwnames
[] = { "self","x","y","alpha", NULL
};
1735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiib:wxImage_SetAlpha",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1738 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1739 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1740 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetAlpha. Expected _wxImage_p.");
1745 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1746 wxImage_SetAlpha(_arg0
,_arg1
,_arg2
,_arg3
);
1748 wxPyEndAllowThreads(__tstate
);
1749 if (PyErr_Occurred()) return NULL
;
1750 } Py_INCREF(Py_None
);
1751 _resultobj
= Py_None
;
1755 #define wxImage_GetAlpha(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAlpha(_swigarg0,_swigarg1))
1756 static PyObject
*_wrap_wxImage_GetAlpha(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1757 PyObject
* _resultobj
;
1758 unsigned char _result
;
1762 PyObject
* _argo0
= 0;
1763 char *_kwnames
[] = { "self","x","y", NULL
};
1766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetAlpha",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetAlpha. Expected _wxImage_p.");
1776 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1777 _result
= (unsigned char )wxImage_GetAlpha(_arg0
,_arg1
,_arg2
);
1779 wxPyEndAllowThreads(__tstate
);
1780 if (PyErr_Occurred()) return NULL
;
1781 } _resultobj
= Py_BuildValue("b",_result
);
1785 #define wxImage_HasAlpha(_swigobj) (_swigobj->HasAlpha())
1786 static PyObject
*_wrap_wxImage_HasAlpha(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1787 PyObject
* _resultobj
;
1790 PyObject
* _argo0
= 0;
1791 char *_kwnames
[] = { "self", NULL
};
1794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_HasAlpha",_kwnames
,&_argo0
))
1797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasAlpha. Expected _wxImage_p.");
1804 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1805 _result
= (bool )wxImage_HasAlpha(_arg0
);
1807 wxPyEndAllowThreads(__tstate
);
1808 if (PyErr_Occurred()) return NULL
;
1809 } _resultobj
= Py_BuildValue("i",_result
);
1813 #define wxImage_FindFirstUnusedColour(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->FindFirstUnusedColour(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1814 static PyObject
*_wrap_wxImage_FindFirstUnusedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1815 PyObject
* _resultobj
;
1824 byte _arg4
= (byte
) 0;
1825 byte _arg5
= (byte
) 0;
1826 byte _arg6
= (byte
) 0;
1827 PyObject
* _argo0
= 0;
1828 char *_kwnames
[] = { "self","startR","startG","startB", NULL
};
1832 _arg1
= (byte
*)&temp
;
1835 _arg2
= (byte
*)&temp0
;
1838 _arg3
= (byte
*)&temp1
;
1840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|bbb:wxImage_FindFirstUnusedColour",_kwnames
,&_argo0
,&_arg4
,&_arg5
,&_arg6
))
1843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_FindFirstUnusedColour. Expected _wxImage_p.");
1850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1851 _result
= (bool )wxImage_FindFirstUnusedColour(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
1853 wxPyEndAllowThreads(__tstate
);
1854 if (PyErr_Occurred()) return NULL
;
1855 } _resultobj
= Py_BuildValue("i",_result
);
1858 o
= PyInt_FromLong((long) (*_arg1
));
1859 _resultobj
= t_output_helper(_resultobj
, o
);
1863 o
= PyInt_FromLong((long) (*_arg2
));
1864 _resultobj
= t_output_helper(_resultobj
, o
);
1868 o
= PyInt_FromLong((long) (*_arg3
));
1869 _resultobj
= t_output_helper(_resultobj
, o
);
1874 #define wxImage_SetMaskFromImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetMaskFromImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1875 static PyObject
*_wrap_wxImage_SetMaskFromImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1876 PyObject
* _resultobj
;
1883 PyObject
* _argo0
= 0;
1884 PyObject
* _argo1
= 0;
1885 char *_kwnames
[] = { "self","mask","mr","mg","mb", NULL
};
1888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OObbb:wxImage_SetMaskFromImage",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
1891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskFromImage. Expected _wxImage_p.");
1898 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) {
1899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImage_SetMaskFromImage. Expected _wxImage_p.");
1904 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1905 _result
= (bool )wxImage_SetMaskFromImage(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
1907 wxPyEndAllowThreads(__tstate
);
1908 if (PyErr_Occurred()) return NULL
;
1909 } _resultobj
= Py_BuildValue("i",_result
);
1913 static PyObject
*_wrap_wxImage_CanRead(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1914 PyObject
* _resultobj
;
1917 PyObject
* _obj0
= 0;
1918 char *_kwnames
[] = { "name", NULL
};
1921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_CanRead",_kwnames
,&_obj0
))
1924 _arg0
= wxString_in_helper(_obj0
);
1929 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1930 _result
= (bool )wxImage::CanRead(*_arg0
);
1932 wxPyEndAllowThreads(__tstate
);
1933 if (PyErr_Occurred()) return NULL
;
1934 } _resultobj
= Py_BuildValue("i",_result
);
1942 static PyObject
*_wrap_wxImage_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1943 PyObject
* _resultobj
;
1946 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
1947 PyObject
* _obj0
= 0;
1948 char *_kwnames
[] = { "name","type", NULL
};
1951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:wxImage_GetImageCount",_kwnames
,&_obj0
,&_arg1
))
1954 _arg0
= wxString_in_helper(_obj0
);
1959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1960 _result
= (int )wxImage::GetImageCount(*_arg0
,_arg1
);
1962 wxPyEndAllowThreads(__tstate
);
1963 if (PyErr_Occurred()) return NULL
;
1964 } _resultobj
= Py_BuildValue("i",_result
);
1972 #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
1973 static PyObject
*_wrap_wxImage_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1974 PyObject
* _resultobj
;
1978 long _arg2
= (long ) wxBITMAP_TYPE_ANY
;
1979 int _arg3
= (int ) -1;
1980 PyObject
* _argo0
= 0;
1981 PyObject
* _obj1
= 0;
1982 char *_kwnames
[] = { "self","name","type","index", NULL
};
1985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|li:wxImage_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
1988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1995 _arg1
= wxString_in_helper(_obj1
);
2000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2001 _result
= (bool )wxImage_LoadFile(_arg0
,*_arg1
,_arg2
,_arg3
);
2003 wxPyEndAllowThreads(__tstate
);
2004 if (PyErr_Occurred()) return NULL
;
2005 } _resultobj
= Py_BuildValue("i",_result
);
2013 #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
2014 static PyObject
*_wrap_wxImage_LoadMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2015 PyObject
* _resultobj
;
2020 int _arg3
= (int ) -1;
2021 PyObject
* _argo0
= 0;
2022 PyObject
* _obj1
= 0;
2023 PyObject
* _obj2
= 0;
2024 char *_kwnames
[] = { "self","name","mimetype","index", NULL
};
2027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxImage_LoadMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2030 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2031 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2032 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
2037 _arg1
= wxString_in_helper(_obj1
);
2042 _arg2
= wxString_in_helper(_obj2
);
2047 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2048 _result
= (bool )wxImage_LoadMimeFile(_arg0
,*_arg1
,*_arg2
,_arg3
);
2050 wxPyEndAllowThreads(__tstate
);
2051 if (PyErr_Occurred()) return NULL
;
2052 } _resultobj
= Py_BuildValue("i",_result
);
2064 #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
2065 static PyObject
*_wrap_wxImage_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2066 PyObject
* _resultobj
;
2071 PyObject
* _argo0
= 0;
2072 PyObject
* _obj1
= 0;
2073 char *_kwnames
[] = { "self","name","type", NULL
};
2076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
2086 _arg1
= wxString_in_helper(_obj1
);
2091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2092 _result
= (bool )wxImage_SaveFile(_arg0
,*_arg1
,_arg2
);
2094 wxPyEndAllowThreads(__tstate
);
2095 if (PyErr_Occurred()) return NULL
;
2096 } _resultobj
= Py_BuildValue("i",_result
);
2104 #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
2105 static PyObject
*_wrap_wxImage_SaveMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2106 PyObject
* _resultobj
;
2111 PyObject
* _argo0
= 0;
2112 PyObject
* _obj1
= 0;
2113 PyObject
* _obj2
= 0;
2114 char *_kwnames
[] = { "self","name","mimetype", NULL
};
2117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SaveMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
2127 _arg1
= wxString_in_helper(_obj1
);
2132 _arg2
= wxString_in_helper(_obj2
);
2137 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2138 _result
= (bool )wxImage_SaveMimeFile(_arg0
,*_arg1
,*_arg2
);
2140 wxPyEndAllowThreads(__tstate
);
2141 if (PyErr_Occurred()) return NULL
;
2142 } _resultobj
= Py_BuildValue("i",_result
);
2154 static PyObject
*_wrap_wxImage_CanReadStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2155 PyObject
* _resultobj
;
2157 wxInputStream
* _arg0
;
2158 wxPyInputStream
* temp
;
2160 PyObject
* _obj0
= 0;
2161 char *_kwnames
[] = { "stream", NULL
};
2164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_CanReadStream",_kwnames
,&_obj0
))
2167 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
2168 _arg0
= temp
->m_wxis
;
2171 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
2172 if (_arg0
== NULL
) {
2173 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
2180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2181 _result
= (bool )wxImage::CanRead(*_arg0
);
2183 wxPyEndAllowThreads(__tstate
);
2184 if (PyErr_Occurred()) return NULL
;
2185 } _resultobj
= Py_BuildValue("i",_result
);
2193 #define wxImage_LoadStream(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
2194 static PyObject
*_wrap_wxImage_LoadStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2195 PyObject
* _resultobj
;
2198 wxInputStream
* _arg1
;
2199 long _arg2
= (long ) wxBITMAP_TYPE_ANY
;
2200 int _arg3
= (int ) -1;
2201 PyObject
* _argo0
= 0;
2202 wxPyInputStream
* temp
;
2204 PyObject
* _obj1
= 0;
2205 char *_kwnames
[] = { "self","stream","type","index", NULL
};
2208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|li:wxImage_LoadStream",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
2211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadStream. Expected _wxImage_p.");
2218 if (SWIG_GetPtrObj(_obj1
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
2219 _arg1
= temp
->m_wxis
;
2222 _arg1
= wxPyCBInputStream_create(_obj1
, FALSE
);
2223 if (_arg1
== NULL
) {
2224 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
2231 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2232 _result
= (bool )wxImage_LoadStream(_arg0
,*_arg1
,_arg2
,_arg3
);
2234 wxPyEndAllowThreads(__tstate
);
2235 if (PyErr_Occurred()) return NULL
;
2236 } _resultobj
= Py_BuildValue("i",_result
);
2244 #define wxImage_LoadMimeStream(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
2245 static PyObject
*_wrap_wxImage_LoadMimeStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2246 PyObject
* _resultobj
;
2249 wxInputStream
* _arg1
;
2251 int _arg3
= (int ) -1;
2252 PyObject
* _argo0
= 0;
2253 wxPyInputStream
* temp
;
2255 PyObject
* _obj1
= 0;
2256 PyObject
* _obj2
= 0;
2257 char *_kwnames
[] = { "self","stream","mimetype","index", NULL
};
2260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxImage_LoadMimeStream",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeStream. Expected _wxImage_p.");
2270 if (SWIG_GetPtrObj(_obj1
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
2271 _arg1
= temp
->m_wxis
;
2274 _arg1
= wxPyCBInputStream_create(_obj1
, FALSE
);
2275 if (_arg1
== NULL
) {
2276 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
2283 _arg2
= wxString_in_helper(_obj2
);
2288 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2289 _result
= (bool )wxImage_LoadMimeStream(_arg0
,*_arg1
,*_arg2
,_arg3
);
2291 wxPyEndAllowThreads(__tstate
);
2292 if (PyErr_Occurred()) return NULL
;
2293 } _resultobj
= Py_BuildValue("i",_result
);
2305 #define wxImage_Ok(_swigobj) (_swigobj->Ok())
2306 static PyObject
*_wrap_wxImage_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2307 PyObject
* _resultobj
;
2310 PyObject
* _argo0
= 0;
2311 char *_kwnames
[] = { "self", NULL
};
2314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Ok",_kwnames
,&_argo0
))
2317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
2324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2325 _result
= (bool )wxImage_Ok(_arg0
);
2327 wxPyEndAllowThreads(__tstate
);
2328 if (PyErr_Occurred()) return NULL
;
2329 } _resultobj
= Py_BuildValue("i",_result
);
2333 #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
2334 static PyObject
*_wrap_wxImage_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2335 PyObject
* _resultobj
;
2338 PyObject
* _argo0
= 0;
2339 char *_kwnames
[] = { "self", NULL
};
2342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetWidth",_kwnames
,&_argo0
))
2345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
2352 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2353 _result
= (int )wxImage_GetWidth(_arg0
);
2355 wxPyEndAllowThreads(__tstate
);
2356 if (PyErr_Occurred()) return NULL
;
2357 } _resultobj
= Py_BuildValue("i",_result
);
2361 #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
2362 static PyObject
*_wrap_wxImage_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2363 PyObject
* _resultobj
;
2366 PyObject
* _argo0
= 0;
2367 char *_kwnames
[] = { "self", NULL
};
2370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetHeight",_kwnames
,&_argo0
))
2373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
2380 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2381 _result
= (int )wxImage_GetHeight(_arg0
);
2383 wxPyEndAllowThreads(__tstate
);
2384 if (PyErr_Occurred()) return NULL
;
2385 } _resultobj
= Py_BuildValue("i",_result
);
2389 #define wxImage_GetSubImage(_swigobj,_swigarg0) (_swigobj->GetSubImage(_swigarg0))
2390 static PyObject
*_wrap_wxImage_GetSubImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2391 PyObject
* _resultobj
;
2395 PyObject
* _argo0
= 0;
2397 PyObject
* _obj1
= 0;
2398 char *_kwnames
[] = { "self","rect", NULL
};
2402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetSubImage",_kwnames
,&_argo0
,&_obj1
))
2405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetSubImage. Expected _wxImage_p.");
2413 if (! wxRect_helper(_obj1
, &_arg1
))
2417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2418 _result
= new wxImage (wxImage_GetSubImage(_arg0
,*_arg1
));
2420 wxPyEndAllowThreads(__tstate
);
2421 if (PyErr_Occurred()) return NULL
;
2422 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2423 _resultobj
= Py_BuildValue("s",_ptemp
);
2427 #define wxImage_Copy(_swigobj) (_swigobj->Copy())
2428 static PyObject
*_wrap_wxImage_Copy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2429 PyObject
* _resultobj
;
2432 PyObject
* _argo0
= 0;
2433 char *_kwnames
[] = { "self", NULL
};
2437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Copy",_kwnames
,&_argo0
))
2440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Copy. Expected _wxImage_p.");
2447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2448 _result
= new wxImage (wxImage_Copy(_arg0
));
2450 wxPyEndAllowThreads(__tstate
);
2451 if (PyErr_Occurred()) return NULL
;
2452 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2453 _resultobj
= Py_BuildValue("s",_ptemp
);
2457 #define wxImage_Paste(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Paste(_swigarg0,_swigarg1,_swigarg2))
2458 static PyObject
*_wrap_wxImage_Paste(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2459 PyObject
* _resultobj
;
2464 PyObject
* _argo0
= 0;
2465 PyObject
* _argo1
= 0;
2466 char *_kwnames
[] = { "self","image","x","y", NULL
};
2469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxImage_Paste",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
2472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Paste. Expected _wxImage_p.");
2479 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) {
2480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImage_Paste. Expected _wxImage_p.");
2485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2486 wxImage_Paste(_arg0
,*_arg1
,_arg2
,_arg3
);
2488 wxPyEndAllowThreads(__tstate
);
2489 if (PyErr_Occurred()) return NULL
;
2490 } Py_INCREF(Py_None
);
2491 _resultobj
= Py_None
;
2495 static PyObject
* wxImage_GetData(wxImage
*self
) {
2496 unsigned char* data
= self
->GetData();
2497 int len
= self
->GetWidth() * self
->GetHeight() * 3;
2498 return PyString_FromStringAndSize((char*)data
, len
);
2500 static PyObject
*_wrap_wxImage_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2501 PyObject
* _resultobj
;
2504 PyObject
* _argo0
= 0;
2505 char *_kwnames
[] = { "self", NULL
};
2508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetData",_kwnames
,&_argo0
))
2511 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2512 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
2518 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2519 _result
= (PyObject
*)wxImage_GetData(_arg0
);
2521 wxPyEndAllowThreads(__tstate
);
2522 if (PyErr_Occurred()) return NULL
;
2524 _resultobj
= _result
;
2529 static void wxImage_SetData(wxImage
*self
,PyObject
* data
) {
2530 unsigned char* dataPtr
;
2532 if (! PyString_Check(data
)) {
2533 PyErr_SetString(PyExc_TypeError
, "Expected string object");
2537 size_t len
= self
->GetWidth() * self
->GetHeight() * 3;
2538 dataPtr
= (unsigned char*) malloc(len
);
2539 memcpy(dataPtr
, PyString_AsString(data
), len
);
2540 self
->SetData(dataPtr
);
2541 // wxImage takes ownership of dataPtr...
2543 static PyObject
*_wrap_wxImage_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2544 PyObject
* _resultobj
;
2547 PyObject
* _argo0
= 0;
2548 PyObject
* _obj1
= 0;
2549 char *_kwnames
[] = { "self","data", NULL
};
2552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetData",_kwnames
,&_argo0
,&_obj1
))
2555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
2565 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2566 wxImage_SetData(_arg0
,_arg1
);
2568 wxPyEndAllowThreads(__tstate
);
2569 if (PyErr_Occurred()) return NULL
;
2570 } Py_INCREF(Py_None
);
2571 _resultobj
= Py_None
;
2575 static PyObject
* wxImage_GetDataBuffer(wxImage
*self
) {
2576 unsigned char* data
= self
->GetData();
2577 int len
= self
->GetWidth() * self
->GetHeight() * 3;
2578 return PyBuffer_FromReadWriteMemory(data
, len
);
2580 static PyObject
*_wrap_wxImage_GetDataBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2581 PyObject
* _resultobj
;
2584 PyObject
* _argo0
= 0;
2585 char *_kwnames
[] = { "self", NULL
};
2588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetDataBuffer",_kwnames
,&_argo0
))
2591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetDataBuffer. Expected _wxImage_p.");
2598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2599 _result
= (PyObject
*)wxImage_GetDataBuffer(_arg0
);
2601 wxPyEndAllowThreads(__tstate
);
2602 if (PyErr_Occurred()) return NULL
;
2604 _resultobj
= _result
;
2609 static void wxImage_SetDataBuffer(wxImage
*self
,PyObject
* data
) {
2610 unsigned char* buffer
;
2613 if (!PyArg_Parse(data
, "w#", &buffer
, &size
))
2616 if (size
!= self
->GetWidth() * self
->GetHeight() * 3) {
2617 PyErr_SetString(PyExc_TypeError
, "Incorrect buffer size");
2620 self
->SetData(buffer
);
2622 static PyObject
*_wrap_wxImage_SetDataBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2623 PyObject
* _resultobj
;
2626 PyObject
* _argo0
= 0;
2627 PyObject
* _obj1
= 0;
2628 char *_kwnames
[] = { "self","data", NULL
};
2631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetDataBuffer",_kwnames
,&_argo0
,&_obj1
))
2634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetDataBuffer. Expected _wxImage_p.");
2644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2645 wxImage_SetDataBuffer(_arg0
,_arg1
);
2647 wxPyEndAllowThreads(__tstate
);
2648 if (PyErr_Occurred()) return NULL
;
2649 } Py_INCREF(Py_None
);
2650 _resultobj
= Py_None
;
2654 static PyObject
* wxImage_GetAlphaData(wxImage
*self
) {
2655 unsigned char* data
= self
->GetAlpha();
2659 int len
= self
->GetWidth() * self
->GetHeight();
2660 return PyString_FromStringAndSize((char*)data
, len
);
2663 static PyObject
*_wrap_wxImage_GetAlphaData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2664 PyObject
* _resultobj
;
2667 PyObject
* _argo0
= 0;
2668 char *_kwnames
[] = { "self", NULL
};
2671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetAlphaData",_kwnames
,&_argo0
))
2674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetAlphaData. Expected _wxImage_p.");
2681 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2682 _result
= (PyObject
*)wxImage_GetAlphaData(_arg0
);
2684 wxPyEndAllowThreads(__tstate
);
2685 if (PyErr_Occurred()) return NULL
;
2687 _resultobj
= _result
;
2692 static void wxImage_SetAlphaData(wxImage
*self
,PyObject
* data
) {
2693 unsigned char* dataPtr
;
2695 if (! PyString_Check(data
)) {
2696 PyErr_SetString(PyExc_TypeError
, "Expected string object");
2700 size_t len
= self
->GetWidth() * self
->GetHeight();
2701 dataPtr
= (unsigned char*) malloc(len
);
2702 memcpy(dataPtr
, PyString_AsString(data
), len
);
2703 self
->SetAlpha(dataPtr
);
2704 // wxImage takes ownership of dataPtr...
2706 static PyObject
*_wrap_wxImage_SetAlphaData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2707 PyObject
* _resultobj
;
2710 PyObject
* _argo0
= 0;
2711 PyObject
* _obj1
= 0;
2712 char *_kwnames
[] = { "self","data", NULL
};
2715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetAlphaData",_kwnames
,&_argo0
,&_obj1
))
2718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetAlphaData. Expected _wxImage_p.");
2728 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2729 wxImage_SetAlphaData(_arg0
,_arg1
);
2731 wxPyEndAllowThreads(__tstate
);
2732 if (PyErr_Occurred()) return NULL
;
2733 } Py_INCREF(Py_None
);
2734 _resultobj
= Py_None
;
2738 static PyObject
* wxImage_GetAlphaBuffer(wxImage
*self
) {
2739 unsigned char* data
= self
->GetAlpha();
2740 int len
= self
->GetWidth() * self
->GetHeight();
2741 return PyBuffer_FromReadWriteMemory(data
, len
);
2743 static PyObject
*_wrap_wxImage_GetAlphaBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2744 PyObject
* _resultobj
;
2747 PyObject
* _argo0
= 0;
2748 char *_kwnames
[] = { "self", NULL
};
2751 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetAlphaBuffer",_kwnames
,&_argo0
))
2754 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2755 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetAlphaBuffer. Expected _wxImage_p.");
2761 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2762 _result
= (PyObject
*)wxImage_GetAlphaBuffer(_arg0
);
2764 wxPyEndAllowThreads(__tstate
);
2765 if (PyErr_Occurred()) return NULL
;
2767 _resultobj
= _result
;
2772 static void wxImage_SetAlphaBuffer(wxImage
*self
,PyObject
* data
) {
2773 unsigned char* buffer
;
2776 if (!PyArg_Parse(data
, "w#", &buffer
, &size
))
2779 if (size
!= self
->GetWidth() * self
->GetHeight()) {
2780 PyErr_SetString(PyExc_TypeError
, "Incorrect buffer size");
2783 self
->SetAlpha(buffer
);
2785 static PyObject
*_wrap_wxImage_SetAlphaBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2786 PyObject
* _resultobj
;
2789 PyObject
* _argo0
= 0;
2790 PyObject
* _obj1
= 0;
2791 char *_kwnames
[] = { "self","data", NULL
};
2794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetAlphaBuffer",_kwnames
,&_argo0
,&_obj1
))
2797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetAlphaBuffer. Expected _wxImage_p.");
2807 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2808 wxImage_SetAlphaBuffer(_arg0
,_arg1
);
2810 wxPyEndAllowThreads(__tstate
);
2811 if (PyErr_Occurred()) return NULL
;
2812 } Py_INCREF(Py_None
);
2813 _resultobj
= Py_None
;
2817 #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
2818 static PyObject
*_wrap_wxImage_SetMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2819 PyObject
* _resultobj
;
2821 unsigned char _arg1
;
2822 unsigned char _arg2
;
2823 unsigned char _arg3
;
2824 PyObject
* _argo0
= 0;
2825 char *_kwnames
[] = { "self","r","g","b", NULL
};
2828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_SetMaskColour",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
2838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2839 wxImage_SetMaskColour(_arg0
,_arg1
,_arg2
,_arg3
);
2841 wxPyEndAllowThreads(__tstate
);
2842 if (PyErr_Occurred()) return NULL
;
2843 } Py_INCREF(Py_None
);
2844 _resultobj
= Py_None
;
2848 #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
2849 static PyObject
*_wrap_wxImage_GetMaskRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2850 PyObject
* _resultobj
;
2851 unsigned char _result
;
2853 PyObject
* _argo0
= 0;
2854 char *_kwnames
[] = { "self", NULL
};
2857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskRed",_kwnames
,&_argo0
))
2860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
2867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2868 _result
= (unsigned char )wxImage_GetMaskRed(_arg0
);
2870 wxPyEndAllowThreads(__tstate
);
2871 if (PyErr_Occurred()) return NULL
;
2872 } _resultobj
= Py_BuildValue("b",_result
);
2876 #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
2877 static PyObject
*_wrap_wxImage_GetMaskGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2878 PyObject
* _resultobj
;
2879 unsigned char _result
;
2881 PyObject
* _argo0
= 0;
2882 char *_kwnames
[] = { "self", NULL
};
2885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskGreen",_kwnames
,&_argo0
))
2888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
2895 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2896 _result
= (unsigned char )wxImage_GetMaskGreen(_arg0
);
2898 wxPyEndAllowThreads(__tstate
);
2899 if (PyErr_Occurred()) return NULL
;
2900 } _resultobj
= Py_BuildValue("b",_result
);
2904 #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
2905 static PyObject
*_wrap_wxImage_GetMaskBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2906 PyObject
* _resultobj
;
2907 unsigned char _result
;
2909 PyObject
* _argo0
= 0;
2910 char *_kwnames
[] = { "self", NULL
};
2913 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskBlue",_kwnames
,&_argo0
))
2916 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2917 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2918 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
2923 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2924 _result
= (unsigned char )wxImage_GetMaskBlue(_arg0
);
2926 wxPyEndAllowThreads(__tstate
);
2927 if (PyErr_Occurred()) return NULL
;
2928 } _resultobj
= Py_BuildValue("b",_result
);
2932 #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
2933 static PyObject
*_wrap_wxImage_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2934 PyObject
* _resultobj
;
2936 bool _arg1
= (bool ) TRUE
;
2937 PyObject
* _argo0
= 0;
2938 int tempbool1
= (int) TRUE
;
2939 char *_kwnames
[] = { "self","mask", NULL
};
2942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_SetMask",_kwnames
,&_argo0
,&tempbool1
))
2945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
2951 _arg1
= (bool ) tempbool1
;
2953 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2954 wxImage_SetMask(_arg0
,_arg1
);
2956 wxPyEndAllowThreads(__tstate
);
2957 if (PyErr_Occurred()) return NULL
;
2958 } Py_INCREF(Py_None
);
2959 _resultobj
= Py_None
;
2963 #define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
2964 static PyObject
*_wrap_wxImage_HasMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2965 PyObject
* _resultobj
;
2968 PyObject
* _argo0
= 0;
2969 char *_kwnames
[] = { "self", NULL
};
2972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_HasMask",_kwnames
,&_argo0
))
2975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
2982 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2983 _result
= (bool )wxImage_HasMask(_arg0
);
2985 wxPyEndAllowThreads(__tstate
);
2986 if (PyErr_Occurred()) return NULL
;
2987 } _resultobj
= Py_BuildValue("i",_result
);
2991 #define wxImage_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2992 static PyObject
*_wrap_wxImage_Rotate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2993 PyObject
* _resultobj
;
2998 bool _arg3
= (bool ) TRUE
;
2999 wxPoint
* _arg4
= (wxPoint
*) NULL
;
3000 PyObject
* _argo0
= 0;
3002 PyObject
* _obj2
= 0;
3003 int tempbool3
= (int) TRUE
;
3005 PyObject
* _obj4
= 0;
3006 char *_kwnames
[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL
};
3010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OdO|iO:wxImage_Rotate",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
,&_obj4
))
3013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rotate. Expected _wxImage_p.");
3021 if (! wxPoint_helper(_obj2
, &_arg2
))
3024 _arg3
= (bool ) tempbool3
;
3028 if (! wxPoint_helper(_obj4
, &_arg4
))
3032 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3033 _result
= new wxImage (wxImage_Rotate(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
));
3035 wxPyEndAllowThreads(__tstate
);
3036 if (PyErr_Occurred()) return NULL
;
3037 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
3038 _resultobj
= Py_BuildValue("s",_ptemp
);
3042 #define wxImage_Rotate90(_swigobj,_swigarg0) (_swigobj->Rotate90(_swigarg0))
3043 static PyObject
*_wrap_wxImage_Rotate90(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3044 PyObject
* _resultobj
;
3047 bool _arg1
= (bool ) TRUE
;
3048 PyObject
* _argo0
= 0;
3049 int tempbool1
= (int) TRUE
;
3050 char *_kwnames
[] = { "self","clockwise", NULL
};
3054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Rotate90",_kwnames
,&_argo0
,&tempbool1
))
3057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rotate90. Expected _wxImage_p.");
3063 _arg1
= (bool ) tempbool1
;
3065 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3066 _result
= new wxImage (wxImage_Rotate90(_arg0
,_arg1
));
3068 wxPyEndAllowThreads(__tstate
);
3069 if (PyErr_Occurred()) return NULL
;
3070 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
3071 _resultobj
= Py_BuildValue("s",_ptemp
);
3075 #define wxImage_Mirror(_swigobj,_swigarg0) (_swigobj->Mirror(_swigarg0))
3076 static PyObject
*_wrap_wxImage_Mirror(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3077 PyObject
* _resultobj
;
3080 bool _arg1
= (bool ) TRUE
;
3081 PyObject
* _argo0
= 0;
3082 int tempbool1
= (int) TRUE
;
3083 char *_kwnames
[] = { "self","horizontally", NULL
};
3087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Mirror",_kwnames
,&_argo0
,&tempbool1
))
3090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Mirror. Expected _wxImage_p.");
3096 _arg1
= (bool ) tempbool1
;
3098 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3099 _result
= new wxImage (wxImage_Mirror(_arg0
,_arg1
));
3101 wxPyEndAllowThreads(__tstate
);
3102 if (PyErr_Occurred()) return NULL
;
3103 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
3104 _resultobj
= Py_BuildValue("s",_ptemp
);
3108 #define wxImage_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3109 static PyObject
*_wrap_wxImage_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3110 PyObject
* _resultobj
;
3112 unsigned char _arg1
;
3113 unsigned char _arg2
;
3114 unsigned char _arg3
;
3115 unsigned char _arg4
;
3116 unsigned char _arg5
;
3117 unsigned char _arg6
;
3118 PyObject
* _argo0
= 0;
3119 char *_kwnames
[] = { "self","r1","g1","b1","r2","g2","b2", NULL
};
3122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbbbbb:wxImage_Replace",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Replace. Expected _wxImage_p.");
3132 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3133 wxImage_Replace(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3135 wxPyEndAllowThreads(__tstate
);
3136 if (PyErr_Occurred()) return NULL
;
3137 } Py_INCREF(Py_None
);
3138 _resultobj
= Py_None
;
3142 #define wxImage_ConvertToMono(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ConvertToMono(_swigarg0,_swigarg1,_swigarg2))
3143 static PyObject
*_wrap_wxImage_ConvertToMono(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3144 PyObject
* _resultobj
;
3147 unsigned char _arg1
;
3148 unsigned char _arg2
;
3149 unsigned char _arg3
;
3150 PyObject
* _argo0
= 0;
3151 char *_kwnames
[] = { "self","r","g","b", NULL
};
3155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_ConvertToMono",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToMono. Expected _wxImage_p.");
3165 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3166 _result
= new wxImage (wxImage_ConvertToMono(_arg0
,_arg1
,_arg2
,_arg3
));
3168 wxPyEndAllowThreads(__tstate
);
3169 if (PyErr_Occurred()) return NULL
;
3170 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
3171 _resultobj
= Py_BuildValue("s",_ptemp
);
3175 #define wxImage_SetOption(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOption(_swigarg0,_swigarg1))
3176 static PyObject
*_wrap_wxImage_SetOption(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3177 PyObject
* _resultobj
;
3181 PyObject
* _argo0
= 0;
3182 PyObject
* _obj1
= 0;
3183 PyObject
* _obj2
= 0;
3184 char *_kwnames
[] = { "self","name","value", NULL
};
3187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SetOption",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetOption. Expected _wxImage_p.");
3197 _arg1
= wxString_in_helper(_obj1
);
3202 _arg2
= wxString_in_helper(_obj2
);
3207 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3208 wxImage_SetOption(_arg0
,*_arg1
,*_arg2
);
3210 wxPyEndAllowThreads(__tstate
);
3211 if (PyErr_Occurred()) return NULL
;
3212 } Py_INCREF(Py_None
);
3213 _resultobj
= Py_None
;
3225 #define wxImage_SetOptionInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOption(_swigarg0,_swigarg1))
3226 static PyObject
*_wrap_wxImage_SetOptionInt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3227 PyObject
* _resultobj
;
3231 PyObject
* _argo0
= 0;
3232 PyObject
* _obj1
= 0;
3233 char *_kwnames
[] = { "self","name","value", NULL
};
3236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SetOptionInt",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
3239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetOptionInt. Expected _wxImage_p.");
3246 _arg1
= wxString_in_helper(_obj1
);
3251 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3252 wxImage_SetOptionInt(_arg0
,*_arg1
,_arg2
);
3254 wxPyEndAllowThreads(__tstate
);
3255 if (PyErr_Occurred()) return NULL
;
3256 } Py_INCREF(Py_None
);
3257 _resultobj
= Py_None
;
3265 #define wxImage_GetOption(_swigobj,_swigarg0) (_swigobj->GetOption(_swigarg0))
3266 static PyObject
*_wrap_wxImage_GetOption(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3267 PyObject
* _resultobj
;
3271 PyObject
* _argo0
= 0;
3272 PyObject
* _obj1
= 0;
3273 char *_kwnames
[] = { "self","name", NULL
};
3276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetOption",_kwnames
,&_argo0
,&_obj1
))
3279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetOption. Expected _wxImage_p.");
3286 _arg1
= wxString_in_helper(_obj1
);
3291 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3292 _result
= new wxString (wxImage_GetOption(_arg0
,*_arg1
));
3294 wxPyEndAllowThreads(__tstate
);
3295 if (PyErr_Occurred()) return NULL
;
3298 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
3300 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3313 #define wxImage_GetOptionInt(_swigobj,_swigarg0) (_swigobj->GetOptionInt(_swigarg0))
3314 static PyObject
*_wrap_wxImage_GetOptionInt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3315 PyObject
* _resultobj
;
3319 PyObject
* _argo0
= 0;
3320 PyObject
* _obj1
= 0;
3321 char *_kwnames
[] = { "self","name", NULL
};
3324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetOptionInt",_kwnames
,&_argo0
,&_obj1
))
3327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetOptionInt. Expected _wxImage_p.");
3334 _arg1
= wxString_in_helper(_obj1
);
3339 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3340 _result
= (int )wxImage_GetOptionInt(_arg0
,*_arg1
);
3342 wxPyEndAllowThreads(__tstate
);
3343 if (PyErr_Occurred()) return NULL
;
3344 } _resultobj
= Py_BuildValue("i",_result
);
3352 #define wxImage_HasOption(_swigobj,_swigarg0) (_swigobj->HasOption(_swigarg0))
3353 static PyObject
*_wrap_wxImage_HasOption(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3354 PyObject
* _resultobj
;
3358 PyObject
* _argo0
= 0;
3359 PyObject
* _obj1
= 0;
3360 char *_kwnames
[] = { "self","name", NULL
};
3363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_HasOption",_kwnames
,&_argo0
,&_obj1
))
3366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasOption. Expected _wxImage_p.");
3373 _arg1
= wxString_in_helper(_obj1
);
3378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3379 _result
= (bool )wxImage_HasOption(_arg0
,*_arg1
);
3381 wxPyEndAllowThreads(__tstate
);
3382 if (PyErr_Occurred()) return NULL
;
3383 } _resultobj
= Py_BuildValue("i",_result
);
3391 #define wxImage_CountColours(_swigobj,_swigarg0) (_swigobj->CountColours(_swigarg0))
3392 static PyObject
*_wrap_wxImage_CountColours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3393 PyObject
* _resultobj
;
3394 unsigned long _result
;
3396 unsigned long _arg1
= (unsigned long ) (unsigned long)-1;
3397 PyObject
* _argo0
= 0;
3398 char *_kwnames
[] = { "self","stopafter", NULL
};
3401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:wxImage_CountColours",_kwnames
,&_argo0
,&_arg1
))
3404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_CountColours. Expected _wxImage_p.");
3411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3412 _result
= (unsigned long )wxImage_CountColours(_arg0
,_arg1
);
3414 wxPyEndAllowThreads(__tstate
);
3415 if (PyErr_Occurred()) return NULL
;
3416 } _resultobj
= Py_BuildValue("l",_result
);
3420 #define wxImage_ComputeHistogram(_swigobj,_swigarg0) (_swigobj->ComputeHistogram(_swigarg0))
3421 static PyObject
*_wrap_wxImage_ComputeHistogram(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3422 PyObject
* _resultobj
;
3423 unsigned long _result
;
3425 wxImageHistogram
* _arg1
;
3426 PyObject
* _argo0
= 0;
3427 PyObject
* _argo1
= 0;
3428 char *_kwnames
[] = { "self","h", NULL
};
3431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_ComputeHistogram",_kwnames
,&_argo0
,&_argo1
))
3434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ComputeHistogram. Expected _wxImage_p.");
3441 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImageHistogram_p")) {
3442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImage_ComputeHistogram. Expected _wxImageHistogram_p.");
3447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3448 _result
= (unsigned long )wxImage_ComputeHistogram(_arg0
,*_arg1
);
3450 wxPyEndAllowThreads(__tstate
);
3451 if (PyErr_Occurred()) return NULL
;
3452 } _resultobj
= Py_BuildValue("l",_result
);
3456 static PyObject
*_wrap_wxImage_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3457 PyObject
* _resultobj
;
3458 wxImageHandler
* _arg0
;
3459 PyObject
* _argo0
= 0;
3460 char *_kwnames
[] = { "handler", NULL
};
3463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_AddHandler",_kwnames
,&_argo0
))
3466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
3468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
3473 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3474 wxImage::AddHandler(_arg0
);
3476 wxPyEndAllowThreads(__tstate
);
3477 if (PyErr_Occurred()) return NULL
;
3478 } Py_INCREF(Py_None
);
3479 _resultobj
= Py_None
;
3483 static PyObject
*_wrap_wxImage_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3484 PyObject
* _resultobj
;
3485 wxImageHandler
* _arg0
;
3486 PyObject
* _argo0
= 0;
3487 char *_kwnames
[] = { "handler", NULL
};
3490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_InsertHandler",_kwnames
,&_argo0
))
3493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
3495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_InsertHandler. Expected _wxImageHandler_p.");
3500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3501 wxImage::InsertHandler(_arg0
);
3503 wxPyEndAllowThreads(__tstate
);
3504 if (PyErr_Occurred()) return NULL
;
3505 } Py_INCREF(Py_None
);
3506 _resultobj
= Py_None
;
3510 static PyObject
*_wrap_wxImage_RemoveHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3511 PyObject
* _resultobj
;
3514 PyObject
* _obj0
= 0;
3515 char *_kwnames
[] = { "name", NULL
};
3518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_RemoveHandler",_kwnames
,&_obj0
))
3521 _arg0
= wxString_in_helper(_obj0
);
3526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3527 _result
= (bool )wxImage::RemoveHandler(*_arg0
);
3529 wxPyEndAllowThreads(__tstate
);
3530 if (PyErr_Occurred()) return NULL
;
3531 } _resultobj
= Py_BuildValue("i",_result
);
3539 static wxBitmap
wxImage_ConvertToBitmap(wxImage
*self
) {
3540 wxBitmap
bitmap(*self
);
3543 static PyObject
*_wrap_wxImage_ConvertToBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3544 PyObject
* _resultobj
;
3547 PyObject
* _argo0
= 0;
3548 char *_kwnames
[] = { "self", NULL
};
3552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_ConvertToBitmap",_kwnames
,&_argo0
))
3555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
3562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3563 _result
= new wxBitmap (wxImage_ConvertToBitmap(_arg0
));
3565 wxPyEndAllowThreads(__tstate
);
3566 if (PyErr_Occurred()) return NULL
;
3567 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
3568 _resultobj
= Py_BuildValue("s",_ptemp
);
3572 static wxBitmap
wxImage_ConvertToMonoBitmap(wxImage
*self
,unsigned char red
,unsigned char green
,unsigned char blue
) {
3573 wxImage mono
= self
->ConvertToMono( red
, green
, blue
);
3574 wxBitmap
bitmap( mono
, 1 );
3577 static PyObject
*_wrap_wxImage_ConvertToMonoBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3578 PyObject
* _resultobj
;
3581 unsigned char _arg1
;
3582 unsigned char _arg2
;
3583 unsigned char _arg3
;
3584 PyObject
* _argo0
= 0;
3585 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_ConvertToMonoBitmap",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
3594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToMonoBitmap. Expected _wxImage_p.");
3599 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3600 _result
= new wxBitmap (wxImage_ConvertToMonoBitmap(_arg0
,_arg1
,_arg2
,_arg3
));
3602 wxPyEndAllowThreads(__tstate
);
3603 if (PyErr_Occurred()) return NULL
;
3604 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
3605 _resultobj
= Py_BuildValue("s",_ptemp
);
3609 static PyMethodDef imagecMethods
[] = {
3610 { "wxImage_ConvertToMonoBitmap", (PyCFunction
) _wrap_wxImage_ConvertToMonoBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3611 { "wxImage_ConvertToBitmap", (PyCFunction
) _wrap_wxImage_ConvertToBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3612 { "wxImage_RemoveHandler", (PyCFunction
) _wrap_wxImage_RemoveHandler
, METH_VARARGS
| METH_KEYWORDS
},
3613 { "wxImage_InsertHandler", (PyCFunction
) _wrap_wxImage_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
3614 { "wxImage_AddHandler", (PyCFunction
) _wrap_wxImage_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
3615 { "wxImage_ComputeHistogram", (PyCFunction
) _wrap_wxImage_ComputeHistogram
, METH_VARARGS
| METH_KEYWORDS
},
3616 { "wxImage_CountColours", (PyCFunction
) _wrap_wxImage_CountColours
, METH_VARARGS
| METH_KEYWORDS
},
3617 { "wxImage_HasOption", (PyCFunction
) _wrap_wxImage_HasOption
, METH_VARARGS
| METH_KEYWORDS
},
3618 { "wxImage_GetOptionInt", (PyCFunction
) _wrap_wxImage_GetOptionInt
, METH_VARARGS
| METH_KEYWORDS
},
3619 { "wxImage_GetOption", (PyCFunction
) _wrap_wxImage_GetOption
, METH_VARARGS
| METH_KEYWORDS
},
3620 { "wxImage_SetOptionInt", (PyCFunction
) _wrap_wxImage_SetOptionInt
, METH_VARARGS
| METH_KEYWORDS
},
3621 { "wxImage_SetOption", (PyCFunction
) _wrap_wxImage_SetOption
, METH_VARARGS
| METH_KEYWORDS
},
3622 { "wxImage_ConvertToMono", (PyCFunction
) _wrap_wxImage_ConvertToMono
, METH_VARARGS
| METH_KEYWORDS
},
3623 { "wxImage_Replace", (PyCFunction
) _wrap_wxImage_Replace
, METH_VARARGS
| METH_KEYWORDS
},
3624 { "wxImage_Mirror", (PyCFunction
) _wrap_wxImage_Mirror
, METH_VARARGS
| METH_KEYWORDS
},
3625 { "wxImage_Rotate90", (PyCFunction
) _wrap_wxImage_Rotate90
, METH_VARARGS
| METH_KEYWORDS
},
3626 { "wxImage_Rotate", (PyCFunction
) _wrap_wxImage_Rotate
, METH_VARARGS
| METH_KEYWORDS
},
3627 { "wxImage_HasMask", (PyCFunction
) _wrap_wxImage_HasMask
, METH_VARARGS
| METH_KEYWORDS
},
3628 { "wxImage_SetMask", (PyCFunction
) _wrap_wxImage_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
3629 { "wxImage_GetMaskBlue", (PyCFunction
) _wrap_wxImage_GetMaskBlue
, METH_VARARGS
| METH_KEYWORDS
},
3630 { "wxImage_GetMaskGreen", (PyCFunction
) _wrap_wxImage_GetMaskGreen
, METH_VARARGS
| METH_KEYWORDS
},
3631 { "wxImage_GetMaskRed", (PyCFunction
) _wrap_wxImage_GetMaskRed
, METH_VARARGS
| METH_KEYWORDS
},
3632 { "wxImage_SetMaskColour", (PyCFunction
) _wrap_wxImage_SetMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
3633 { "wxImage_SetAlphaBuffer", (PyCFunction
) _wrap_wxImage_SetAlphaBuffer
, METH_VARARGS
| METH_KEYWORDS
},
3634 { "wxImage_GetAlphaBuffer", (PyCFunction
) _wrap_wxImage_GetAlphaBuffer
, METH_VARARGS
| METH_KEYWORDS
},
3635 { "wxImage_SetAlphaData", (PyCFunction
) _wrap_wxImage_SetAlphaData
, METH_VARARGS
| METH_KEYWORDS
},
3636 { "wxImage_GetAlphaData", (PyCFunction
) _wrap_wxImage_GetAlphaData
, METH_VARARGS
| METH_KEYWORDS
},
3637 { "wxImage_SetDataBuffer", (PyCFunction
) _wrap_wxImage_SetDataBuffer
, METH_VARARGS
| METH_KEYWORDS
},
3638 { "wxImage_GetDataBuffer", (PyCFunction
) _wrap_wxImage_GetDataBuffer
, METH_VARARGS
| METH_KEYWORDS
},
3639 { "wxImage_SetData", (PyCFunction
) _wrap_wxImage_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3640 { "wxImage_GetData", (PyCFunction
) _wrap_wxImage_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3641 { "wxImage_Paste", (PyCFunction
) _wrap_wxImage_Paste
, METH_VARARGS
| METH_KEYWORDS
},
3642 { "wxImage_Copy", (PyCFunction
) _wrap_wxImage_Copy
, METH_VARARGS
| METH_KEYWORDS
},
3643 { "wxImage_GetSubImage", (PyCFunction
) _wrap_wxImage_GetSubImage
, METH_VARARGS
| METH_KEYWORDS
},
3644 { "wxImage_GetHeight", (PyCFunction
) _wrap_wxImage_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
3645 { "wxImage_GetWidth", (PyCFunction
) _wrap_wxImage_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
3646 { "wxImage_Ok", (PyCFunction
) _wrap_wxImage_Ok
, METH_VARARGS
| METH_KEYWORDS
},
3647 { "wxImage_LoadMimeStream", (PyCFunction
) _wrap_wxImage_LoadMimeStream
, METH_VARARGS
| METH_KEYWORDS
},
3648 { "wxImage_LoadStream", (PyCFunction
) _wrap_wxImage_LoadStream
, METH_VARARGS
| METH_KEYWORDS
},
3649 { "wxImage_CanReadStream", (PyCFunction
) _wrap_wxImage_CanReadStream
, METH_VARARGS
| METH_KEYWORDS
},
3650 { "wxImage_SaveMimeFile", (PyCFunction
) _wrap_wxImage_SaveMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
3651 { "wxImage_SaveFile", (PyCFunction
) _wrap_wxImage_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
3652 { "wxImage_LoadMimeFile", (PyCFunction
) _wrap_wxImage_LoadMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
3653 { "wxImage_LoadFile", (PyCFunction
) _wrap_wxImage_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
3654 { "wxImage_GetImageCount", (PyCFunction
) _wrap_wxImage_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
3655 { "wxImage_CanRead", (PyCFunction
) _wrap_wxImage_CanRead
, METH_VARARGS
| METH_KEYWORDS
},
3656 { "wxImage_SetMaskFromImage", (PyCFunction
) _wrap_wxImage_SetMaskFromImage
, METH_VARARGS
| METH_KEYWORDS
},
3657 { "wxImage_FindFirstUnusedColour", (PyCFunction
) _wrap_wxImage_FindFirstUnusedColour
, METH_VARARGS
| METH_KEYWORDS
},
3658 { "wxImage_HasAlpha", (PyCFunction
) _wrap_wxImage_HasAlpha
, METH_VARARGS
| METH_KEYWORDS
},
3659 { "wxImage_GetAlpha", (PyCFunction
) _wrap_wxImage_GetAlpha
, METH_VARARGS
| METH_KEYWORDS
},
3660 { "wxImage_SetAlpha", (PyCFunction
) _wrap_wxImage_SetAlpha
, METH_VARARGS
| METH_KEYWORDS
},
3661 { "wxImage_GetBlue", (PyCFunction
) _wrap_wxImage_GetBlue
, METH_VARARGS
| METH_KEYWORDS
},
3662 { "wxImage_GetGreen", (PyCFunction
) _wrap_wxImage_GetGreen
, METH_VARARGS
| METH_KEYWORDS
},
3663 { "wxImage_GetRed", (PyCFunction
) _wrap_wxImage_GetRed
, METH_VARARGS
| METH_KEYWORDS
},
3664 { "wxImage_SetRGB", (PyCFunction
) _wrap_wxImage_SetRGB
, METH_VARARGS
| METH_KEYWORDS
},
3665 { "wxImage_Rescale", (PyCFunction
) _wrap_wxImage_Rescale
, METH_VARARGS
| METH_KEYWORDS
},
3666 { "wxImage_ShrinkBy", (PyCFunction
) _wrap_wxImage_ShrinkBy
, METH_VARARGS
| METH_KEYWORDS
},
3667 { "wxImage_Scale", (PyCFunction
) _wrap_wxImage_Scale
, METH_VARARGS
| METH_KEYWORDS
},
3668 { "wxImage_Destroy", (PyCFunction
) _wrap_wxImage_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3669 { "wxImage_Create", (PyCFunction
) _wrap_wxImage_Create
, METH_VARARGS
| METH_KEYWORDS
},
3670 { "delete_wxImage", (PyCFunction
) _wrap_delete_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
3671 { "new_wxImage", (PyCFunction
) _wrap_new_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
3672 { "new_wxTIFFHandler", (PyCFunction
) _wrap_new_wxTIFFHandler
, METH_VARARGS
| METH_KEYWORDS
},
3673 { "new_wxPCXHandler", (PyCFunction
) _wrap_new_wxPCXHandler
, METH_VARARGS
| METH_KEYWORDS
},
3674 { "new_wxPNMHandler", (PyCFunction
) _wrap_new_wxPNMHandler
, METH_VARARGS
| METH_KEYWORDS
},
3675 { "new_wxGIFHandler", (PyCFunction
) _wrap_new_wxGIFHandler
, METH_VARARGS
| METH_KEYWORDS
},
3676 { "new_wxANIHandler", (PyCFunction
) _wrap_new_wxANIHandler
, METH_VARARGS
| METH_KEYWORDS
},
3677 { "new_wxCURHandler", (PyCFunction
) _wrap_new_wxCURHandler
, METH_VARARGS
| METH_KEYWORDS
},
3678 { "new_wxICOHandler", (PyCFunction
) _wrap_new_wxICOHandler
, METH_VARARGS
| METH_KEYWORDS
},
3679 { "new_wxBMPHandler", (PyCFunction
) _wrap_new_wxBMPHandler
, METH_VARARGS
| METH_KEYWORDS
},
3680 { "new_wxJPEGHandler", (PyCFunction
) _wrap_new_wxJPEGHandler
, METH_VARARGS
| METH_KEYWORDS
},
3681 { "new_wxPNGHandler", (PyCFunction
) _wrap_new_wxPNGHandler
, METH_VARARGS
| METH_KEYWORDS
},
3682 { "wxImageHandler_SetMimeType", (PyCFunction
) _wrap_wxImageHandler_SetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
3683 { "wxImageHandler_SetType", (PyCFunction
) _wrap_wxImageHandler_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3684 { "wxImageHandler_SetExtension", (PyCFunction
) _wrap_wxImageHandler_SetExtension
, METH_VARARGS
| METH_KEYWORDS
},
3685 { "wxImageHandler_SetName", (PyCFunction
) _wrap_wxImageHandler_SetName
, METH_VARARGS
| METH_KEYWORDS
},
3686 { "wxImageHandler_CanRead", (PyCFunction
) _wrap_wxImageHandler_CanRead
, METH_VARARGS
| METH_KEYWORDS
},
3687 { "wxImageHandler_GetMimeType", (PyCFunction
) _wrap_wxImageHandler_GetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
3688 { "wxImageHandler_GetType", (PyCFunction
) _wrap_wxImageHandler_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3689 { "wxImageHandler_GetExtension", (PyCFunction
) _wrap_wxImageHandler_GetExtension
, METH_VARARGS
| METH_KEYWORDS
},
3690 { "wxImageHandler_GetName", (PyCFunction
) _wrap_wxImageHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
3691 { "wxImageHistogram_FindFirstUnusedColour", (PyCFunction
) _wrap_wxImageHistogram_FindFirstUnusedColour
, METH_VARARGS
| METH_KEYWORDS
},
3692 { "wxImageHistogram_MakeKey", (PyCFunction
) _wrap_wxImageHistogram_MakeKey
, METH_VARARGS
| METH_KEYWORDS
},
3693 { "new_wxImageHistogram", (PyCFunction
) _wrap_new_wxImageHistogram
, METH_VARARGS
| METH_KEYWORDS
},
3694 { "wxBitmapFromImage", (PyCFunction
) _wrap_wxBitmapFromImage
, METH_VARARGS
| METH_KEYWORDS
},
3695 { "wxInitAllImageHandlers", (PyCFunction
) _wrap_wxInitAllImageHandlers
, METH_VARARGS
| METH_KEYWORDS
},
3696 { "wxImageFromStreamMime", (PyCFunction
) _wrap_wxImageFromStreamMime
, METH_VARARGS
| METH_KEYWORDS
},
3697 { "wxImageFromStream", (PyCFunction
) _wrap_wxImageFromStream
, METH_VARARGS
| METH_KEYWORDS
},
3698 { "wxImageFromData", (PyCFunction
) _wrap_wxImageFromData
, METH_VARARGS
| METH_KEYWORDS
},
3699 { "wxImageFromBitmap", (PyCFunction
) _wrap_wxImageFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3700 { "wxImageFromMime", (PyCFunction
) _wrap_wxImageFromMime
, METH_VARARGS
| METH_KEYWORDS
},
3701 { "wxEmptyImage", (PyCFunction
) _wrap_wxEmptyImage
, METH_VARARGS
| METH_KEYWORDS
},
3708 * This table is used by the pointer type-checker
3710 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3711 { "_signed_long","_long",0},
3712 { "_wxBMPHandler","_wxANIHandler",SwigwxANIHandlerTowxBMPHandler
},
3713 { "_wxBMPHandler","_wxCURHandler",SwigwxCURHandlerTowxBMPHandler
},
3714 { "_wxBMPHandler","_wxICOHandler",SwigwxICOHandlerTowxBMPHandler
},
3715 { "_wxICOHandler","_wxANIHandler",SwigwxANIHandlerTowxICOHandler
},
3716 { "_wxICOHandler","_wxCURHandler",SwigwxCURHandlerTowxICOHandler
},
3717 { "_wxPrintQuality","_wxCoord",0},
3718 { "_wxPrintQuality","_int",0},
3719 { "_wxPrintQuality","_signed_int",0},
3720 { "_wxPrintQuality","_unsigned_int",0},
3721 { "_wxPrintQuality","_wxWindowID",0},
3722 { "_wxPrintQuality","_uint",0},
3723 { "_wxPrintQuality","_EBool",0},
3724 { "_wxPrintQuality","_size_t",0},
3725 { "_wxPrintQuality","_time_t",0},
3726 { "_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler
},
3727 { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
},
3728 { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
},
3729 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
3730 { "_wxImageHandler","_wxANIHandler",SwigwxANIHandlerTowxImageHandler
},
3731 { "_wxImageHandler","_wxCURHandler",SwigwxCURHandlerTowxImageHandler
},
3732 { "_wxImageHandler","_wxICOHandler",SwigwxICOHandlerTowxImageHandler
},
3733 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
3734 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
3735 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
3736 { "_byte","_unsigned_char",0},
3737 { "_long","_unsigned_long",0},
3738 { "_long","_signed_long",0},
3739 { "_size_t","_wxCoord",0},
3740 { "_size_t","_wxPrintQuality",0},
3741 { "_size_t","_time_t",0},
3742 { "_size_t","_unsigned_int",0},
3743 { "_size_t","_int",0},
3744 { "_size_t","_wxWindowID",0},
3745 { "_size_t","_uint",0},
3746 { "_uint","_wxCoord",0},
3747 { "_uint","_wxPrintQuality",0},
3748 { "_uint","_time_t",0},
3749 { "_uint","_size_t",0},
3750 { "_uint","_unsigned_int",0},
3751 { "_uint","_int",0},
3752 { "_uint","_wxWindowID",0},
3753 { "_wxChar","_char",0},
3754 { "_char","_wxChar",0},
3755 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3756 { "_EBool","_wxCoord",0},
3757 { "_EBool","_wxPrintQuality",0},
3758 { "_EBool","_signed_int",0},
3759 { "_EBool","_int",0},
3760 { "_EBool","_wxWindowID",0},
3761 { "_unsigned_long","_long",0},
3762 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3763 { "_signed_int","_wxCoord",0},
3764 { "_signed_int","_wxPrintQuality",0},
3765 { "_signed_int","_EBool",0},
3766 { "_signed_int","_wxWindowID",0},
3767 { "_signed_int","_int",0},
3768 { "_WXTYPE","_short",0},
3769 { "_WXTYPE","_signed_short",0},
3770 { "_WXTYPE","_unsigned_short",0},
3771 { "_unsigned_short","_WXTYPE",0},
3772 { "_unsigned_short","_short",0},
3773 { "_wxObject","_wxImage",SwigwxImageTowxObject
},
3774 { "_wxObject","_wxTIFFHandler",SwigwxTIFFHandlerTowxObject
},
3775 { "_wxObject","_wxPCXHandler",SwigwxPCXHandlerTowxObject
},
3776 { "_wxObject","_wxPNMHandler",SwigwxPNMHandlerTowxObject
},
3777 { "_wxObject","_wxGIFHandler",SwigwxGIFHandlerTowxObject
},
3778 { "_wxObject","_wxANIHandler",SwigwxANIHandlerTowxObject
},
3779 { "_wxObject","_wxCURHandler",SwigwxCURHandlerTowxObject
},
3780 { "_wxObject","_wxICOHandler",SwigwxICOHandlerTowxObject
},
3781 { "_wxObject","_wxBMPHandler",SwigwxBMPHandlerTowxObject
},
3782 { "_wxObject","_wxJPEGHandler",SwigwxJPEGHandlerTowxObject
},
3783 { "_wxObject","_wxPNGHandler",SwigwxPNGHandlerTowxObject
},
3784 { "_wxObject","_wxImageHandler",SwigwxImageHandlerTowxObject
},
3785 { "_signed_short","_WXTYPE",0},
3786 { "_signed_short","_short",0},
3787 { "_wxCURHandler","_wxANIHandler",SwigwxANIHandlerTowxCURHandler
},
3788 { "_unsigned_char","_byte",0},
3789 { "_unsigned_int","_wxCoord",0},
3790 { "_unsigned_int","_wxPrintQuality",0},
3791 { "_unsigned_int","_time_t",0},
3792 { "_unsigned_int","_size_t",0},
3793 { "_unsigned_int","_uint",0},
3794 { "_unsigned_int","_wxWindowID",0},
3795 { "_unsigned_int","_int",0},
3796 { "_short","_WXTYPE",0},
3797 { "_short","_unsigned_short",0},
3798 { "_short","_signed_short",0},
3799 { "_wxWindowID","_wxCoord",0},
3800 { "_wxWindowID","_wxPrintQuality",0},
3801 { "_wxWindowID","_time_t",0},
3802 { "_wxWindowID","_size_t",0},
3803 { "_wxWindowID","_EBool",0},
3804 { "_wxWindowID","_uint",0},
3805 { "_wxWindowID","_int",0},
3806 { "_wxWindowID","_signed_int",0},
3807 { "_wxWindowID","_unsigned_int",0},
3808 { "_int","_wxCoord",0},
3809 { "_int","_wxPrintQuality",0},
3810 { "_int","_time_t",0},
3811 { "_int","_size_t",0},
3812 { "_int","_EBool",0},
3813 { "_int","_uint",0},
3814 { "_int","_wxWindowID",0},
3815 { "_int","_unsigned_int",0},
3816 { "_int","_signed_int",0},
3817 { "_time_t","_wxCoord",0},
3818 { "_time_t","_wxPrintQuality",0},
3819 { "_time_t","_unsigned_int",0},
3820 { "_time_t","_int",0},
3821 { "_time_t","_wxWindowID",0},
3822 { "_time_t","_uint",0},
3823 { "_time_t","_size_t",0},
3824 { "_wxCoord","_int",0},
3825 { "_wxCoord","_signed_int",0},
3826 { "_wxCoord","_unsigned_int",0},
3827 { "_wxCoord","_wxWindowID",0},
3828 { "_wxCoord","_uint",0},
3829 { "_wxCoord","_EBool",0},
3830 { "_wxCoord","_size_t",0},
3831 { "_wxCoord","_time_t",0},
3832 { "_wxCoord","_wxPrintQuality",0},
3835 static PyObject
*SWIG_globals
;
3839 SWIGEXPORT(void) initimagec() {
3841 SWIG_globals
= SWIG_newvarlink();
3842 m
= Py_InitModule("imagec", imagecMethods
);
3843 d
= PyModule_GetDict(m
);
3844 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3845 SWIG_addvarlink(SWIG_globals
,"wxNullImage",_wrap_wxNullImage_get
, _wrap_wxNullImage_set
);
3848 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3849 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);