]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/image.cpp
correction for Mac OS compilation
[wxWidgets.git] / wxPython / src / gtk / image.cpp
CommitLineData
ab9bc19b 1/*
2cd2fac8 2 * FILE : src/gtk/image.cpp
ab9bc19b
RD
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
2cd2fac8 6 * Version 1.1 (Build 883)
ab9bc19b
RD
7 *
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.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
2d091820 27# define SWIGEXPORT(a) __declspec(dllexport) a
ab9bc19b
RD
28# else
29# if defined(__BORLANDC__)
1c09ae54 30# define SWIGEXPORT(a) a _export
ab9bc19b 31# else
1c09ae54 32# define SWIGEXPORT(a) a
ab9bc19b
RD
33# endif
34# endif
35#else
1c09ae54 36# define SWIGEXPORT(a) a
ab9bc19b
RD
37#endif
38
1c09ae54
RD
39#include "Python.h"
40
ab9bc19b
RD
41#ifdef __cplusplus
42extern "C" {
43#endif
1c09ae54 44
ab9bc19b
RD
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
2d091820 48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
ab9bc19b
RD
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
ab9bc19b
RD
54#define SWIG_init initimagec
55
56#define SWIG_name "imagec"
57
58#include "helpers.h"
59#include <wx/image.h>
60
ab9bc19b
RD
61
62static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
1c09ae54 66 if (!target) {
ab9bc19b 67 target = o;
1c09ae54 68 } else if (target == Py_None) {
ab9bc19b
RD
69 Py_DECREF(Py_None);
70 target = o;
1c09ae54 71 } else {
ab9bc19b
RD
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
1c09ae54
RD
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
ab9bc19b
RD
79
80 o2 = target;
1c09ae54
RD
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
ab9bc19b
RD
83 Py_DECREF(o3);
84 }
85 return target;
86}
87
7a446686
RD
88#if PYTHON_API_VERSION >= 1009
89 static char* wxStringErrorMsg = "String or Unicode type required";
90#else
91 static char* wxStringErrorMsg = "string type is required for parameter";
92#endif
ab9bc19b 93
df05452e
RD
94 wxImage* wxEmptyImage(int width=0, int height=0) {
95 if (width == 0 && height == 0)
96 return new wxImage;
97 else
98 return new wxImage(width, height);
ab9bc19b
RD
99 }
100
101 wxImage* wxImageFromMime(const wxString& name, const wxString& mimetype) {
102 return new wxImage(name, mimetype);
103 }
104
105 wxImage* wxImageFromBitmap(const wxBitmap &bitmap) {
106 return new wxImage(bitmap);
107 }
df05452e
RD
108
109#if 0
110extern wxImage wxNullImage;
111
112#endif
9e689c06
RD
113
114 wxBitmap* wxBitmapFromImage(const wxImage& img, int depth=-1) {
115 return new wxBitmap(img, depth);
116 }
117
2d091820
RD
118#ifdef __cplusplus
119extern "C" {
120#endif
107e4716 121static PyObject *_wrap_wxEmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
122 PyObject * _resultobj;
123 wxImage * _result;
df05452e
RD
124 int _arg0 = (int ) 0;
125 int _arg1 = (int ) 0;
107e4716 126 char *_kwnames[] = { "width","height", NULL };
ab9bc19b
RD
127 char _ptemp[128];
128
129 self = self;
df05452e 130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:wxEmptyImage",_kwnames,&_arg0,&_arg1))
ab9bc19b
RD
131 return NULL;
132{
133 wxPy_BEGIN_ALLOW_THREADS;
134 _result = (wxImage *)wxEmptyImage(_arg0,_arg1);
135
136 wxPy_END_ALLOW_THREADS;
4dfaa61e 137 if (PyErr_Occurred()) return NULL;
2d091820
RD
138} if (_result) {
139 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
140 _resultobj = Py_BuildValue("s",_ptemp);
141 } else {
142 Py_INCREF(Py_None);
143 _resultobj = Py_None;
144 }
ab9bc19b
RD
145 return _resultobj;
146}
147
107e4716 148static PyObject *_wrap_wxImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
149 PyObject * _resultobj;
150 wxImage * _result;
151 wxString * _arg0;
152 wxString * _arg1;
153 PyObject * _obj0 = 0;
154 PyObject * _obj1 = 0;
107e4716 155 char *_kwnames[] = { "name","mimetype", NULL };
ab9bc19b
RD
156 char _ptemp[128];
157
158 self = self;
107e4716 159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageFromMime",_kwnames,&_obj0,&_obj1))
ab9bc19b
RD
160 return NULL;
161{
2cd2fac8
RD
162#if PYTHON_API_VERSION >= 1009
163 char* tmpPtr; int tmpSize;
164 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
7a446686 165 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
166 return NULL;
167 }
168 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
169 return NULL;
170 _arg0 = new wxString(tmpPtr, tmpSize);
171#else
ab9bc19b
RD
172 if (!PyString_Check(_obj0)) {
173 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
174 return NULL;
175 }
2cd2fac8
RD
176 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
177#endif
ab9bc19b
RD
178}
179{
2cd2fac8
RD
180#if PYTHON_API_VERSION >= 1009
181 char* tmpPtr; int tmpSize;
182 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 183 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
184 return NULL;
185 }
186 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
187 return NULL;
188 _arg1 = new wxString(tmpPtr, tmpSize);
189#else
ab9bc19b
RD
190 if (!PyString_Check(_obj1)) {
191 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
192 return NULL;
193 }
2cd2fac8
RD
194 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
195#endif
ab9bc19b
RD
196}
197{
198 wxPy_BEGIN_ALLOW_THREADS;
199 _result = (wxImage *)wxImageFromMime(*_arg0,*_arg1);
200
201 wxPy_END_ALLOW_THREADS;
4dfaa61e 202 if (PyErr_Occurred()) return NULL;
2d091820
RD
203} if (_result) {
204 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
205 _resultobj = Py_BuildValue("s",_ptemp);
206 } else {
207 Py_INCREF(Py_None);
208 _resultobj = Py_None;
209 }
ab9bc19b
RD
210{
211 if (_obj0)
212 delete _arg0;
213}
214{
215 if (_obj1)
216 delete _arg1;
217}
218 return _resultobj;
219}
220
107e4716 221static PyObject *_wrap_wxImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
222 PyObject * _resultobj;
223 wxImage * _result;
224 wxBitmap * _arg0;
2d091820 225 PyObject * _argo0 = 0;
107e4716 226 char *_kwnames[] = { "bitmap", NULL };
ab9bc19b
RD
227 char _ptemp[128];
228
229 self = self;
107e4716 230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageFromBitmap",_kwnames,&_argo0))
ab9bc19b 231 return NULL;
2d091820
RD
232 if (_argo0) {
233 if (_argo0 == Py_None) { _arg0 = NULL; }
234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
ab9bc19b
RD
235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
236 return NULL;
237 }
238 }
239{
240 wxPy_BEGIN_ALLOW_THREADS;
241 _result = (wxImage *)wxImageFromBitmap(*_arg0);
242
243 wxPy_END_ALLOW_THREADS;
4dfaa61e 244 if (PyErr_Occurred()) return NULL;
2d091820
RD
245} if (_result) {
246 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
247 _resultobj = Py_BuildValue("s",_ptemp);
248 } else {
249 Py_INCREF(Py_None);
250 _resultobj = Py_None;
251 }
ab9bc19b
RD
252 return _resultobj;
253}
254
bc29c5e0
RD
255static PyObject *_wrap_wxInitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
256 PyObject * _resultobj;
257 char *_kwnames[] = { NULL };
258
259 self = self;
260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxInitAllImageHandlers",_kwnames))
261 return NULL;
262{
263 wxPy_BEGIN_ALLOW_THREADS;
264 wxInitAllImageHandlers();
265
266 wxPy_END_ALLOW_THREADS;
4dfaa61e 267 if (PyErr_Occurred()) return NULL;
bc29c5e0
RD
268} Py_INCREF(Py_None);
269 _resultobj = Py_None;
270 return _resultobj;
271}
272
df05452e
RD
273static int _wrap_wxNullImage_set(PyObject *val) {
274
275 PyErr_SetString(PyExc_TypeError,"Variable wxNullImage is read-only.");
276 return 1;
277}
278
279static PyObject *_wrap_wxNullImage_get() {
280 PyObject * pyobj;
281 char ptemp[128];
282
283 SWIG_MakePtr(ptemp,(char *) &wxNullImage,"_wxImage_p");
284 pyobj = PyString_FromString(ptemp);
285 return pyobj;
286}
287
9e689c06
RD
288static PyObject *_wrap_wxBitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
289 PyObject * _resultobj;
290 wxBitmap * _result;
291 wxImage * _arg0;
292 int _arg1 = (int ) -1;
293 PyObject * _argo0 = 0;
294 char *_kwnames[] = { "img","depth", NULL };
295 char _ptemp[128];
296
297 self = self;
298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxBitmapFromImage",_kwnames,&_argo0,&_arg1))
299 return NULL;
300 if (_argo0) {
301 if (_argo0 == Py_None) { _arg0 = NULL; }
302 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromImage. Expected _wxImage_p.");
304 return NULL;
305 }
306 }
307{
308 wxPy_BEGIN_ALLOW_THREADS;
309 _result = (wxBitmap *)wxBitmapFromImage(*_arg0,_arg1);
310
311 wxPy_END_ALLOW_THREADS;
4dfaa61e 312 if (PyErr_Occurred()) return NULL;
9e689c06
RD
313} if (_result) {
314 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
315 _resultobj = Py_BuildValue("s",_ptemp);
316 } else {
317 Py_INCREF(Py_None);
318 _resultobj = Py_None;
319 }
320 return _resultobj;
321}
322
9df61a29
RD
323static void *SwigwxImageHandlerTowxObject(void *ptr) {
324 wxImageHandler *src;
325 wxObject *dest;
326 src = (wxImageHandler *) ptr;
327 dest = (wxObject *) src;
328 return (void *) dest;
329}
330
ab9bc19b 331#define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
107e4716 332static PyObject *_wrap_wxImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
333 PyObject * _resultobj;
334 wxString * _result;
335 wxImageHandler * _arg0;
2d091820 336 PyObject * _argo0 = 0;
107e4716 337 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
338
339 self = self;
107e4716 340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetName",_kwnames,&_argo0))
ab9bc19b 341 return NULL;
2d091820
RD
342 if (_argo0) {
343 if (_argo0 == Py_None) { _arg0 = NULL; }
344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
346 return NULL;
347 }
348 }
349{
350 wxPy_BEGIN_ALLOW_THREADS;
351 _result = new wxString (wxImageHandler_GetName(_arg0));
352
353 wxPy_END_ALLOW_THREADS;
4dfaa61e 354 if (PyErr_Occurred()) return NULL;
ab9bc19b 355}{
e02c03a4 356 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
ab9bc19b
RD
357}
358{
359 delete _result;
360}
361 return _resultobj;
362}
363
364#define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
107e4716 365static PyObject *_wrap_wxImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
366 PyObject * _resultobj;
367 wxString * _result;
368 wxImageHandler * _arg0;
2d091820 369 PyObject * _argo0 = 0;
107e4716 370 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
371
372 self = self;
107e4716 373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetExtension",_kwnames,&_argo0))
ab9bc19b 374 return NULL;
2d091820
RD
375 if (_argo0) {
376 if (_argo0 == Py_None) { _arg0 = NULL; }
377 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
378 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
379 return NULL;
380 }
381 }
382{
383 wxPy_BEGIN_ALLOW_THREADS;
384 _result = new wxString (wxImageHandler_GetExtension(_arg0));
385
386 wxPy_END_ALLOW_THREADS;
4dfaa61e 387 if (PyErr_Occurred()) return NULL;
ab9bc19b 388}{
e02c03a4 389 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
ab9bc19b
RD
390}
391{
392 delete _result;
393}
394 return _resultobj;
395}
396
397#define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
107e4716 398static PyObject *_wrap_wxImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
399 PyObject * _resultobj;
400 long _result;
401 wxImageHandler * _arg0;
2d091820 402 PyObject * _argo0 = 0;
107e4716 403 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
404
405 self = self;
107e4716 406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetType",_kwnames,&_argo0))
ab9bc19b 407 return NULL;
2d091820
RD
408 if (_argo0) {
409 if (_argo0 == Py_None) { _arg0 = NULL; }
410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
412 return NULL;
413 }
414 }
415{
416 wxPy_BEGIN_ALLOW_THREADS;
417 _result = (long )wxImageHandler_GetType(_arg0);
418
419 wxPy_END_ALLOW_THREADS;
4dfaa61e 420 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
421} _resultobj = Py_BuildValue("l",_result);
422 return _resultobj;
423}
424
425#define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
107e4716 426static PyObject *_wrap_wxImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
427 PyObject * _resultobj;
428 wxString * _result;
429 wxImageHandler * _arg0;
2d091820 430 PyObject * _argo0 = 0;
107e4716 431 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
432
433 self = self;
107e4716 434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetMimeType",_kwnames,&_argo0))
ab9bc19b 435 return NULL;
2d091820
RD
436 if (_argo0) {
437 if (_argo0 == Py_None) { _arg0 = NULL; }
438 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
439 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
440 return NULL;
441 }
442 }
443{
444 wxPy_BEGIN_ALLOW_THREADS;
445 _result = new wxString (wxImageHandler_GetMimeType(_arg0));
446
447 wxPy_END_ALLOW_THREADS;
4dfaa61e 448 if (PyErr_Occurred()) return NULL;
ab9bc19b 449}{
e02c03a4 450 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
ab9bc19b
RD
451}
452{
453 delete _result;
454}
455 return _resultobj;
456}
457
458#define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
107e4716 459static PyObject *_wrap_wxImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
460 PyObject * _resultobj;
461 wxImageHandler * _arg0;
462 wxString * _arg1;
2d091820 463 PyObject * _argo0 = 0;
ab9bc19b 464 PyObject * _obj1 = 0;
107e4716 465 char *_kwnames[] = { "self","name", NULL };
ab9bc19b
RD
466
467 self = self;
107e4716 468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetName",_kwnames,&_argo0,&_obj1))
ab9bc19b 469 return NULL;
2d091820
RD
470 if (_argo0) {
471 if (_argo0 == Py_None) { _arg0 = NULL; }
472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
474 return NULL;
475 }
476 }
477{
2cd2fac8
RD
478#if PYTHON_API_VERSION >= 1009
479 char* tmpPtr; int tmpSize;
480 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 481 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
482 return NULL;
483 }
484 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
485 return NULL;
486 _arg1 = new wxString(tmpPtr, tmpSize);
487#else
ab9bc19b
RD
488 if (!PyString_Check(_obj1)) {
489 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
490 return NULL;
491 }
2cd2fac8
RD
492 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
493#endif
ab9bc19b
RD
494}
495{
496 wxPy_BEGIN_ALLOW_THREADS;
497 wxImageHandler_SetName(_arg0,*_arg1);
498
499 wxPy_END_ALLOW_THREADS;
4dfaa61e 500 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
501} Py_INCREF(Py_None);
502 _resultobj = Py_None;
503{
504 if (_obj1)
505 delete _arg1;
506}
507 return _resultobj;
508}
509
510#define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
107e4716 511static PyObject *_wrap_wxImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
512 PyObject * _resultobj;
513 wxImageHandler * _arg0;
514 wxString * _arg1;
2d091820 515 PyObject * _argo0 = 0;
ab9bc19b 516 PyObject * _obj1 = 0;
107e4716 517 char *_kwnames[] = { "self","extension", NULL };
ab9bc19b
RD
518
519 self = self;
107e4716 520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetExtension",_kwnames,&_argo0,&_obj1))
ab9bc19b 521 return NULL;
2d091820
RD
522 if (_argo0) {
523 if (_argo0 == Py_None) { _arg0 = NULL; }
524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
526 return NULL;
527 }
528 }
529{
2cd2fac8
RD
530#if PYTHON_API_VERSION >= 1009
531 char* tmpPtr; int tmpSize;
532 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 533 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
534 return NULL;
535 }
536 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
537 return NULL;
538 _arg1 = new wxString(tmpPtr, tmpSize);
539#else
ab9bc19b
RD
540 if (!PyString_Check(_obj1)) {
541 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
542 return NULL;
543 }
2cd2fac8
RD
544 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
545#endif
ab9bc19b
RD
546}
547{
548 wxPy_BEGIN_ALLOW_THREADS;
549 wxImageHandler_SetExtension(_arg0,*_arg1);
550
551 wxPy_END_ALLOW_THREADS;
4dfaa61e 552 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
553} Py_INCREF(Py_None);
554 _resultobj = Py_None;
555{
556 if (_obj1)
557 delete _arg1;
558}
559 return _resultobj;
560}
561
562#define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
107e4716 563static PyObject *_wrap_wxImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
564 PyObject * _resultobj;
565 wxImageHandler * _arg0;
566 long _arg1;
2d091820 567 PyObject * _argo0 = 0;
107e4716 568 char *_kwnames[] = { "self","type", NULL };
ab9bc19b
RD
569
570 self = self;
107e4716 571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxImageHandler_SetType",_kwnames,&_argo0,&_arg1))
ab9bc19b 572 return NULL;
2d091820
RD
573 if (_argo0) {
574 if (_argo0 == Py_None) { _arg0 = NULL; }
575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
577 return NULL;
578 }
579 }
580{
581 wxPy_BEGIN_ALLOW_THREADS;
582 wxImageHandler_SetType(_arg0,_arg1);
583
584 wxPy_END_ALLOW_THREADS;
4dfaa61e 585 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
586} Py_INCREF(Py_None);
587 _resultobj = Py_None;
588 return _resultobj;
589}
590
591#define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
107e4716 592static PyObject *_wrap_wxImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
593 PyObject * _resultobj;
594 wxImageHandler * _arg0;
595 wxString * _arg1;
2d091820 596 PyObject * _argo0 = 0;
ab9bc19b 597 PyObject * _obj1 = 0;
107e4716 598 char *_kwnames[] = { "self","mimetype", NULL };
ab9bc19b
RD
599
600 self = self;
107e4716 601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetMimeType",_kwnames,&_argo0,&_obj1))
ab9bc19b 602 return NULL;
2d091820
RD
603 if (_argo0) {
604 if (_argo0 == Py_None) { _arg0 = NULL; }
605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
607 return NULL;
608 }
609 }
610{
2cd2fac8
RD
611#if PYTHON_API_VERSION >= 1009
612 char* tmpPtr; int tmpSize;
613 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 614 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
615 return NULL;
616 }
617 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
618 return NULL;
619 _arg1 = new wxString(tmpPtr, tmpSize);
620#else
ab9bc19b
RD
621 if (!PyString_Check(_obj1)) {
622 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
623 return NULL;
624 }
2cd2fac8
RD
625 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
626#endif
ab9bc19b
RD
627}
628{
629 wxPy_BEGIN_ALLOW_THREADS;
630 wxImageHandler_SetMimeType(_arg0,*_arg1);
631
632 wxPy_END_ALLOW_THREADS;
4dfaa61e 633 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
634} Py_INCREF(Py_None);
635 _resultobj = Py_None;
636{
637 if (_obj1)
638 delete _arg1;
639}
640 return _resultobj;
641}
642
643static void *SwigwxPNGHandlerTowxImageHandler(void *ptr) {
644 wxPNGHandler *src;
645 wxImageHandler *dest;
646 src = (wxPNGHandler *) ptr;
647 dest = (wxImageHandler *) src;
648 return (void *) dest;
649}
650
9df61a29
RD
651static void *SwigwxPNGHandlerTowxObject(void *ptr) {
652 wxPNGHandler *src;
653 wxObject *dest;
654 src = (wxPNGHandler *) ptr;
655 dest = (wxObject *) src;
656 return (void *) dest;
657}
658
ab9bc19b 659#define new_wxPNGHandler() (new wxPNGHandler())
107e4716 660static PyObject *_wrap_new_wxPNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
661 PyObject * _resultobj;
662 wxPNGHandler * _result;
107e4716 663 char *_kwnames[] = { NULL };
ab9bc19b
RD
664 char _ptemp[128];
665
666 self = self;
107e4716 667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPNGHandler",_kwnames))
ab9bc19b
RD
668 return NULL;
669{
670 wxPy_BEGIN_ALLOW_THREADS;
671 _result = (wxPNGHandler *)new_wxPNGHandler();
672
673 wxPy_END_ALLOW_THREADS;
4dfaa61e 674 if (PyErr_Occurred()) return NULL;
2d091820
RD
675} if (_result) {
676 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPNGHandler_p");
677 _resultobj = Py_BuildValue("s",_ptemp);
678 } else {
679 Py_INCREF(Py_None);
680 _resultobj = Py_None;
681 }
ab9bc19b
RD
682 return _resultobj;
683}
684
685static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr) {
686 wxJPEGHandler *src;
687 wxImageHandler *dest;
688 src = (wxJPEGHandler *) ptr;
689 dest = (wxImageHandler *) src;
690 return (void *) dest;
691}
692
9df61a29
RD
693static void *SwigwxJPEGHandlerTowxObject(void *ptr) {
694 wxJPEGHandler *src;
695 wxObject *dest;
696 src = (wxJPEGHandler *) ptr;
697 dest = (wxObject *) src;
698 return (void *) dest;
699}
700
ab9bc19b 701#define new_wxJPEGHandler() (new wxJPEGHandler())
107e4716 702static PyObject *_wrap_new_wxJPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
703 PyObject * _resultobj;
704 wxJPEGHandler * _result;
107e4716 705 char *_kwnames[] = { NULL };
ab9bc19b
RD
706 char _ptemp[128];
707
708 self = self;
107e4716 709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxJPEGHandler",_kwnames))
ab9bc19b
RD
710 return NULL;
711{
712 wxPy_BEGIN_ALLOW_THREADS;
713 _result = (wxJPEGHandler *)new_wxJPEGHandler();
714
715 wxPy_END_ALLOW_THREADS;
4dfaa61e 716 if (PyErr_Occurred()) return NULL;
2d091820
RD
717} if (_result) {
718 SWIG_MakePtr(_ptemp, (char *) _result,"_wxJPEGHandler_p");
719 _resultobj = Py_BuildValue("s",_ptemp);
720 } else {
721 Py_INCREF(Py_None);
722 _resultobj = Py_None;
723 }
ab9bc19b
RD
724 return _resultobj;
725}
726
727static void *SwigwxBMPHandlerTowxImageHandler(void *ptr) {
728 wxBMPHandler *src;
729 wxImageHandler *dest;
730 src = (wxBMPHandler *) ptr;
731 dest = (wxImageHandler *) src;
732 return (void *) dest;
733}
734
9df61a29
RD
735static void *SwigwxBMPHandlerTowxObject(void *ptr) {
736 wxBMPHandler *src;
737 wxObject *dest;
738 src = (wxBMPHandler *) ptr;
739 dest = (wxObject *) src;
740 return (void *) dest;
741}
742
ab9bc19b 743#define new_wxBMPHandler() (new wxBMPHandler())
107e4716 744static PyObject *_wrap_new_wxBMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
745 PyObject * _resultobj;
746 wxBMPHandler * _result;
107e4716 747 char *_kwnames[] = { NULL };
ab9bc19b
RD
748 char _ptemp[128];
749
750 self = self;
107e4716 751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxBMPHandler",_kwnames))
ab9bc19b
RD
752 return NULL;
753{
754 wxPy_BEGIN_ALLOW_THREADS;
755 _result = (wxBMPHandler *)new_wxBMPHandler();
756
757 wxPy_END_ALLOW_THREADS;
4dfaa61e 758 if (PyErr_Occurred()) return NULL;
2d091820
RD
759} if (_result) {
760 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBMPHandler_p");
761 _resultobj = Py_BuildValue("s",_ptemp);
762 } else {
763 Py_INCREF(Py_None);
764 _resultobj = Py_None;
765 }
ab9bc19b
RD
766 return _resultobj;
767}
768
769static void *SwigwxGIFHandlerTowxImageHandler(void *ptr) {
770 wxGIFHandler *src;
771 wxImageHandler *dest;
772 src = (wxGIFHandler *) ptr;
773 dest = (wxImageHandler *) src;
774 return (void *) dest;
775}
776
9df61a29
RD
777static void *SwigwxGIFHandlerTowxObject(void *ptr) {
778 wxGIFHandler *src;
779 wxObject *dest;
780 src = (wxGIFHandler *) ptr;
781 dest = (wxObject *) src;
782 return (void *) dest;
783}
784
ab9bc19b 785#define new_wxGIFHandler() (new wxGIFHandler())
107e4716 786static PyObject *_wrap_new_wxGIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
787 PyObject * _resultobj;
788 wxGIFHandler * _result;
107e4716 789 char *_kwnames[] = { NULL };
ab9bc19b
RD
790 char _ptemp[128];
791
792 self = self;
107e4716 793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGIFHandler",_kwnames))
ab9bc19b
RD
794 return NULL;
795{
796 wxPy_BEGIN_ALLOW_THREADS;
797 _result = (wxGIFHandler *)new_wxGIFHandler();
798
799 wxPy_END_ALLOW_THREADS;
4dfaa61e 800 if (PyErr_Occurred()) return NULL;
2d091820
RD
801} if (_result) {
802 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGIFHandler_p");
803 _resultobj = Py_BuildValue("s",_ptemp);
804 } else {
805 Py_INCREF(Py_None);
806 _resultobj = Py_None;
807 }
ab9bc19b
RD
808 return _resultobj;
809}
810
bc29c5e0
RD
811static void *SwigwxPNMHandlerTowxImageHandler(void *ptr) {
812 wxPNMHandler *src;
813 wxImageHandler *dest;
814 src = (wxPNMHandler *) ptr;
815 dest = (wxImageHandler *) src;
816 return (void *) dest;
817}
818
9df61a29
RD
819static void *SwigwxPNMHandlerTowxObject(void *ptr) {
820 wxPNMHandler *src;
821 wxObject *dest;
822 src = (wxPNMHandler *) ptr;
823 dest = (wxObject *) src;
824 return (void *) dest;
825}
826
bc29c5e0
RD
827#define new_wxPNMHandler() (new wxPNMHandler())
828static PyObject *_wrap_new_wxPNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
829 PyObject * _resultobj;
830 wxPNMHandler * _result;
831 char *_kwnames[] = { NULL };
832 char _ptemp[128];
833
834 self = self;
835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPNMHandler",_kwnames))
836 return NULL;
837{
838 wxPy_BEGIN_ALLOW_THREADS;
839 _result = (wxPNMHandler *)new_wxPNMHandler();
840
841 wxPy_END_ALLOW_THREADS;
4dfaa61e 842 if (PyErr_Occurred()) return NULL;
bc29c5e0
RD
843} if (_result) {
844 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPNMHandler_p");
845 _resultobj = Py_BuildValue("s",_ptemp);
846 } else {
847 Py_INCREF(Py_None);
848 _resultobj = Py_None;
849 }
850 return _resultobj;
851}
852
853static void *SwigwxPCXHandlerTowxImageHandler(void *ptr) {
854 wxPCXHandler *src;
855 wxImageHandler *dest;
856 src = (wxPCXHandler *) ptr;
857 dest = (wxImageHandler *) src;
858 return (void *) dest;
859}
860
9df61a29
RD
861static void *SwigwxPCXHandlerTowxObject(void *ptr) {
862 wxPCXHandler *src;
863 wxObject *dest;
864 src = (wxPCXHandler *) ptr;
865 dest = (wxObject *) src;
866 return (void *) dest;
867}
868
bc29c5e0
RD
869#define new_wxPCXHandler() (new wxPCXHandler())
870static PyObject *_wrap_new_wxPCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
871 PyObject * _resultobj;
872 wxPCXHandler * _result;
873 char *_kwnames[] = { NULL };
874 char _ptemp[128];
875
876 self = self;
877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPCXHandler",_kwnames))
878 return NULL;
879{
880 wxPy_BEGIN_ALLOW_THREADS;
881 _result = (wxPCXHandler *)new_wxPCXHandler();
882
883 wxPy_END_ALLOW_THREADS;
4dfaa61e 884 if (PyErr_Occurred()) return NULL;
bc29c5e0
RD
885} if (_result) {
886 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPCXHandler_p");
887 _resultobj = Py_BuildValue("s",_ptemp);
888 } else {
889 Py_INCREF(Py_None);
890 _resultobj = Py_None;
891 }
892 return _resultobj;
893}
894
ab2208b5
RD
895static void *SwigwxTIFFHandlerTowxImageHandler(void *ptr) {
896 wxTIFFHandler *src;
897 wxImageHandler *dest;
898 src = (wxTIFFHandler *) ptr;
899 dest = (wxImageHandler *) src;
900 return (void *) dest;
901}
902
9df61a29
RD
903static void *SwigwxTIFFHandlerTowxObject(void *ptr) {
904 wxTIFFHandler *src;
905 wxObject *dest;
906 src = (wxTIFFHandler *) ptr;
907 dest = (wxObject *) src;
908 return (void *) dest;
909}
910
ab2208b5
RD
911#define new_wxTIFFHandler() (new wxTIFFHandler())
912static PyObject *_wrap_new_wxTIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
913 PyObject * _resultobj;
914 wxTIFFHandler * _result;
915 char *_kwnames[] = { NULL };
916 char _ptemp[128];
917
918 self = self;
919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTIFFHandler",_kwnames))
920 return NULL;
921{
922 wxPy_BEGIN_ALLOW_THREADS;
923 _result = (wxTIFFHandler *)new_wxTIFFHandler();
924
925 wxPy_END_ALLOW_THREADS;
4dfaa61e 926 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
927} if (_result) {
928 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTIFFHandler_p");
929 _resultobj = Py_BuildValue("s",_ptemp);
930 } else {
931 Py_INCREF(Py_None);
932 _resultobj = Py_None;
933 }
934 return _resultobj;
935}
936
9df61a29
RD
937static void *SwigwxImageTowxObject(void *ptr) {
938 wxImage *src;
939 wxObject *dest;
940 src = (wxImage *) ptr;
941 dest = (wxObject *) src;
942 return (void *) dest;
943}
944
ab9bc19b 945#define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1))
107e4716 946static PyObject *_wrap_new_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
947 PyObject * _resultobj;
948 wxImage * _result;
949 wxString * _arg0;
f6bcfd97 950 long _arg1 = (long ) wxBITMAP_TYPE_ANY;
ab9bc19b 951 PyObject * _obj0 = 0;
107e4716 952 char *_kwnames[] = { "name","type", NULL };
ab9bc19b
RD
953 char _ptemp[128];
954
955 self = self;
107e4716 956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:new_wxImage",_kwnames,&_obj0,&_arg1))
ab9bc19b
RD
957 return NULL;
958{
2cd2fac8
RD
959#if PYTHON_API_VERSION >= 1009
960 char* tmpPtr; int tmpSize;
961 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
7a446686 962 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
963 return NULL;
964 }
965 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
966 return NULL;
967 _arg0 = new wxString(tmpPtr, tmpSize);
968#else
ab9bc19b
RD
969 if (!PyString_Check(_obj0)) {
970 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
971 return NULL;
972 }
2cd2fac8
RD
973 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
974#endif
ab9bc19b
RD
975}
976{
977 wxPy_BEGIN_ALLOW_THREADS;
978 _result = (wxImage *)new_wxImage(*_arg0,_arg1);
979
980 wxPy_END_ALLOW_THREADS;
4dfaa61e 981 if (PyErr_Occurred()) return NULL;
2d091820
RD
982} if (_result) {
983 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
984 _resultobj = Py_BuildValue("s",_ptemp);
985 } else {
986 Py_INCREF(Py_None);
987 _resultobj = Py_None;
988 }
ab9bc19b
RD
989{
990 if (_obj0)
991 delete _arg0;
992}
993 return _resultobj;
994}
995
996#define delete_wxImage(_swigobj) (delete _swigobj)
107e4716 997static PyObject *_wrap_delete_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
998 PyObject * _resultobj;
999 wxImage * _arg0;
2d091820 1000 PyObject * _argo0 = 0;
107e4716 1001 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1002
1003 self = self;
107e4716 1004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImage",_kwnames,&_argo0))
ab9bc19b 1005 return NULL;
2d091820
RD
1006 if (_argo0) {
1007 if (_argo0 == Py_None) { _arg0 = NULL; }
1008 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1009 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
1010 return NULL;
1011 }
1012 }
1013{
1014 wxPy_BEGIN_ALLOW_THREADS;
1015 delete_wxImage(_arg0);
1016
1017 wxPy_END_ALLOW_THREADS;
4dfaa61e 1018 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1019} Py_INCREF(Py_None);
1020 _resultobj = Py_None;
1021 return _resultobj;
1022}
1023
1024#define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
107e4716 1025static PyObject *_wrap_wxImage_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1026 PyObject * _resultobj;
1027 wxBitmap * _result;
1028 wxImage * _arg0;
2d091820 1029 PyObject * _argo0 = 0;
107e4716 1030 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1031 char _ptemp[128];
1032
1033 self = self;
107e4716 1034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_ConvertToBitmap",_kwnames,&_argo0))
ab9bc19b 1035 return NULL;
2d091820
RD
1036 if (_argo0) {
1037 if (_argo0 == Py_None) { _arg0 = NULL; }
1038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
1040 return NULL;
1041 }
1042 }
1043{
1044 wxPy_BEGIN_ALLOW_THREADS;
1045 _result = new wxBitmap (wxImage_ConvertToBitmap(_arg0));
1046
1047 wxPy_END_ALLOW_THREADS;
4dfaa61e 1048 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1049} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1050 _resultobj = Py_BuildValue("s",_ptemp);
1051 return _resultobj;
1052}
1053
9e689c06
RD
1054#define wxImage_ConvertToMonoBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ConvertToMonoBitmap(_swigarg0,_swigarg1,_swigarg2))
1055static PyObject *_wrap_wxImage_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1056 PyObject * _resultobj;
1057 wxBitmap * _result;
1058 wxImage * _arg0;
1059 unsigned char _arg1;
1060 unsigned char _arg2;
1061 unsigned char _arg3;
1062 PyObject * _argo0 = 0;
1063 char *_kwnames[] = { "self","red","green","blue", NULL };
1064 char _ptemp[128];
1065
1066 self = self;
1067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_ConvertToMonoBitmap",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1068 return NULL;
1069 if (_argo0) {
1070 if (_argo0 == Py_None) { _arg0 = NULL; }
1071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToMonoBitmap. Expected _wxImage_p.");
1073 return NULL;
1074 }
1075 }
1076{
1077 wxPy_BEGIN_ALLOW_THREADS;
1078 _result = new wxBitmap (wxImage_ConvertToMonoBitmap(_arg0,_arg1,_arg2,_arg3));
1079
1080 wxPy_END_ALLOW_THREADS;
4dfaa61e 1081 if (PyErr_Occurred()) return NULL;
9e689c06
RD
1082} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1083 _resultobj = Py_BuildValue("s",_ptemp);
1084 return _resultobj;
1085}
1086
ab9bc19b 1087#define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
107e4716 1088static PyObject *_wrap_wxImage_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1089 PyObject * _resultobj;
1090 wxImage * _arg0;
1091 int _arg1;
1092 int _arg2;
2d091820 1093 PyObject * _argo0 = 0;
107e4716 1094 char *_kwnames[] = { "self","width","height", NULL };
ab9bc19b
RD
1095
1096 self = self;
107e4716 1097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Create",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1098 return NULL;
2d091820
RD
1099 if (_argo0) {
1100 if (_argo0 == Py_None) { _arg0 = NULL; }
1101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
1103 return NULL;
1104 }
1105 }
1106{
1107 wxPy_BEGIN_ALLOW_THREADS;
1108 wxImage_Create(_arg0,_arg1,_arg2);
1109
1110 wxPy_END_ALLOW_THREADS;
4dfaa61e 1111 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1112} Py_INCREF(Py_None);
1113 _resultobj = Py_None;
1114 return _resultobj;
1115}
1116
1117#define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
107e4716 1118static PyObject *_wrap_wxImage_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1119 PyObject * _resultobj;
1120 wxImage * _arg0;
2d091820 1121 PyObject * _argo0 = 0;
107e4716 1122 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1123
1124 self = self;
107e4716 1125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Destroy",_kwnames,&_argo0))
ab9bc19b 1126 return NULL;
2d091820
RD
1127 if (_argo0) {
1128 if (_argo0 == Py_None) { _arg0 = NULL; }
1129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
1131 return NULL;
1132 }
1133 }
1134{
1135 wxPy_BEGIN_ALLOW_THREADS;
1136 wxImage_Destroy(_arg0);
1137
1138 wxPy_END_ALLOW_THREADS;
4dfaa61e 1139 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1140} Py_INCREF(Py_None);
1141 _resultobj = Py_None;
1142 return _resultobj;
1143}
1144
1145#define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
107e4716 1146static PyObject *_wrap_wxImage_Scale(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1147 PyObject * _resultobj;
1148 wxImage * _result;
1149 wxImage * _arg0;
1150 int _arg1;
1151 int _arg2;
2d091820 1152 PyObject * _argo0 = 0;
107e4716 1153 char *_kwnames[] = { "self","width","height", NULL };
ab9bc19b
RD
1154 char _ptemp[128];
1155
1156 self = self;
107e4716 1157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Scale",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1158 return NULL;
2d091820
RD
1159 if (_argo0) {
1160 if (_argo0 == Py_None) { _arg0 = NULL; }
1161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
1163 return NULL;
1164 }
1165 }
1166{
1167 wxPy_BEGIN_ALLOW_THREADS;
1168 _result = new wxImage (wxImage_Scale(_arg0,_arg1,_arg2));
1169
1170 wxPy_END_ALLOW_THREADS;
4dfaa61e 1171 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1172} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
1173 _resultobj = Py_BuildValue("s",_ptemp);
1174 return _resultobj;
1175}
1176
8bf5d46e 1177#define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
107e4716 1178static PyObject *_wrap_wxImage_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
8bf5d46e 1179 PyObject * _resultobj;
f6bcfd97 1180 wxImage * _result;
8bf5d46e
RD
1181 wxImage * _arg0;
1182 int _arg1;
1183 int _arg2;
2d091820 1184 PyObject * _argo0 = 0;
107e4716 1185 char *_kwnames[] = { "self","width","height", NULL };
f6bcfd97 1186 char _ptemp[128];
8bf5d46e
RD
1187
1188 self = self;
107e4716 1189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Rescale",_kwnames,&_argo0,&_arg1,&_arg2))
8bf5d46e 1190 return NULL;
2d091820
RD
1191 if (_argo0) {
1192 if (_argo0 == Py_None) { _arg0 = NULL; }
1193 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
8bf5d46e
RD
1194 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
1195 return NULL;
1196 }
1197 }
1198{
1199 wxPy_BEGIN_ALLOW_THREADS;
f6bcfd97
BP
1200 wxImage & _result_ref = wxImage_Rescale(_arg0,_arg1,_arg2);
1201 _result = (wxImage *) &_result_ref;
8bf5d46e
RD
1202
1203 wxPy_END_ALLOW_THREADS;
4dfaa61e 1204 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1205} if (_result) {
1206 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
1207 _resultobj = Py_BuildValue("s",_ptemp);
1208 } else {
1209 Py_INCREF(Py_None);
1210 _resultobj = Py_None;
1211 }
8bf5d46e
RD
1212 return _resultobj;
1213}
1214
ab9bc19b 1215#define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 1216static PyObject *_wrap_wxImage_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1217 PyObject * _resultobj;
1218 wxImage * _arg0;
1219 int _arg1;
1220 int _arg2;
1221 unsigned char _arg3;
1222 unsigned char _arg4;
1223 unsigned char _arg5;
2d091820 1224 PyObject * _argo0 = 0;
107e4716 1225 char *_kwnames[] = { "self","x","y","r","g","b", NULL };
ab9bc19b
RD
1226
1227 self = self;
107e4716 1228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiibbb:wxImage_SetRGB",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
ab9bc19b 1229 return NULL;
2d091820
RD
1230 if (_argo0) {
1231 if (_argo0 == Py_None) { _arg0 = NULL; }
1232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
1234 return NULL;
1235 }
1236 }
1237{
1238 wxPy_BEGIN_ALLOW_THREADS;
1239 wxImage_SetRGB(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
1240
1241 wxPy_END_ALLOW_THREADS;
4dfaa61e 1242 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1243} Py_INCREF(Py_None);
1244 _resultobj = Py_None;
1245 return _resultobj;
1246}
1247
1248#define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
107e4716 1249static PyObject *_wrap_wxImage_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1250 PyObject * _resultobj;
1251 unsigned char _result;
1252 wxImage * _arg0;
1253 int _arg1;
1254 int _arg2;
2d091820 1255 PyObject * _argo0 = 0;
107e4716 1256 char *_kwnames[] = { "self","x","y", NULL };
ab9bc19b
RD
1257
1258 self = self;
107e4716 1259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetRed",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1260 return NULL;
2d091820
RD
1261 if (_argo0) {
1262 if (_argo0 == Py_None) { _arg0 = NULL; }
1263 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1264 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
1265 return NULL;
1266 }
1267 }
1268{
1269 wxPy_BEGIN_ALLOW_THREADS;
1270 _result = (unsigned char )wxImage_GetRed(_arg0,_arg1,_arg2);
1271
1272 wxPy_END_ALLOW_THREADS;
4dfaa61e 1273 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1274} _resultobj = Py_BuildValue("b",_result);
1275 return _resultobj;
1276}
1277
1278#define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
107e4716 1279static PyObject *_wrap_wxImage_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1280 PyObject * _resultobj;
1281 unsigned char _result;
1282 wxImage * _arg0;
1283 int _arg1;
1284 int _arg2;
2d091820 1285 PyObject * _argo0 = 0;
107e4716 1286 char *_kwnames[] = { "self","x","y", NULL };
ab9bc19b
RD
1287
1288 self = self;
107e4716 1289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetGreen",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1290 return NULL;
2d091820
RD
1291 if (_argo0) {
1292 if (_argo0 == Py_None) { _arg0 = NULL; }
1293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1295 return NULL;
1296 }
1297 }
1298{
1299 wxPy_BEGIN_ALLOW_THREADS;
1300 _result = (unsigned char )wxImage_GetGreen(_arg0,_arg1,_arg2);
1301
1302 wxPy_END_ALLOW_THREADS;
4dfaa61e 1303 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1304} _resultobj = Py_BuildValue("b",_result);
1305 return _resultobj;
1306}
1307
1308#define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
107e4716 1309static PyObject *_wrap_wxImage_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1310 PyObject * _resultobj;
1311 unsigned char _result;
1312 wxImage * _arg0;
1313 int _arg1;
1314 int _arg2;
2d091820 1315 PyObject * _argo0 = 0;
107e4716 1316 char *_kwnames[] = { "self","x","y", NULL };
ab9bc19b
RD
1317
1318 self = self;
107e4716 1319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetBlue",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1320 return NULL;
2d091820
RD
1321 if (_argo0) {
1322 if (_argo0 == Py_None) { _arg0 = NULL; }
1323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1325 return NULL;
1326 }
1327 }
1328{
1329 wxPy_BEGIN_ALLOW_THREADS;
1330 _result = (unsigned char )wxImage_GetBlue(_arg0,_arg1,_arg2);
1331
1332 wxPy_END_ALLOW_THREADS;
4dfaa61e 1333 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1334} _resultobj = Py_BuildValue("b",_result);
1335 return _resultobj;
1336}
1337
fbcadfca
RD
1338static PyObject *_wrap_wxImage_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
1339 PyObject * _resultobj;
1340 bool _result;
1341 wxString * _arg0;
1342 PyObject * _obj0 = 0;
1343 char *_kwnames[] = { "name", NULL };
1344
1345 self = self;
1346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_CanRead",_kwnames,&_obj0))
1347 return NULL;
1348{
1349#if PYTHON_API_VERSION >= 1009
1350 char* tmpPtr; int tmpSize;
1351 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
7a446686 1352 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
fbcadfca
RD
1353 return NULL;
1354 }
1355 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1356 return NULL;
1357 _arg0 = new wxString(tmpPtr, tmpSize);
1358#else
1359 if (!PyString_Check(_obj0)) {
1360 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1361 return NULL;
1362 }
1363 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1364#endif
1365}
1366{
1367 wxPy_BEGIN_ALLOW_THREADS;
1368 _result = (bool )wxImage::CanRead(*_arg0);
1369
1370 wxPy_END_ALLOW_THREADS;
4dfaa61e 1371 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
1372} _resultobj = Py_BuildValue("i",_result);
1373{
1374 if (_obj0)
1375 delete _arg0;
1376}
1377 return _resultobj;
1378}
1379
ab9bc19b 1380#define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
107e4716 1381static PyObject *_wrap_wxImage_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1382 PyObject * _resultobj;
1383 bool _result;
1384 wxImage * _arg0;
1385 wxString * _arg1;
fbcadfca 1386 long _arg2 = (long ) wxBITMAP_TYPE_ANY;
2d091820 1387 PyObject * _argo0 = 0;
ab9bc19b 1388 PyObject * _obj1 = 0;
107e4716 1389 char *_kwnames[] = { "self","name","type", NULL };
ab9bc19b
RD
1390
1391 self = self;
107e4716 1392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|l:wxImage_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
ab9bc19b 1393 return NULL;
2d091820
RD
1394 if (_argo0) {
1395 if (_argo0 == Py_None) { _arg0 = NULL; }
1396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1398 return NULL;
1399 }
1400 }
1401{
2cd2fac8
RD
1402#if PYTHON_API_VERSION >= 1009
1403 char* tmpPtr; int tmpSize;
1404 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 1405 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1406 return NULL;
1407 }
1408 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1409 return NULL;
1410 _arg1 = new wxString(tmpPtr, tmpSize);
1411#else
ab9bc19b
RD
1412 if (!PyString_Check(_obj1)) {
1413 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1414 return NULL;
1415 }
2cd2fac8
RD
1416 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1417#endif
ab9bc19b
RD
1418}
1419{
1420 wxPy_BEGIN_ALLOW_THREADS;
1421 _result = (bool )wxImage_LoadFile(_arg0,*_arg1,_arg2);
1422
1423 wxPy_END_ALLOW_THREADS;
4dfaa61e 1424 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1425} _resultobj = Py_BuildValue("i",_result);
1426{
1427 if (_obj1)
1428 delete _arg1;
1429}
1430 return _resultobj;
1431}
1432
1433#define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
107e4716 1434static PyObject *_wrap_wxImage_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1435 PyObject * _resultobj;
1436 bool _result;
1437 wxImage * _arg0;
1438 wxString * _arg1;
1439 wxString * _arg2;
2d091820 1440 PyObject * _argo0 = 0;
ab9bc19b
RD
1441 PyObject * _obj1 = 0;
1442 PyObject * _obj2 = 0;
107e4716 1443 char *_kwnames[] = { "self","name","mimetype", NULL };
ab9bc19b
RD
1444
1445 self = self;
107e4716 1446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_LoadMimeFile",_kwnames,&_argo0,&_obj1,&_obj2))
ab9bc19b 1447 return NULL;
2d091820
RD
1448 if (_argo0) {
1449 if (_argo0 == Py_None) { _arg0 = NULL; }
1450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1452 return NULL;
1453 }
1454 }
1455{
2cd2fac8
RD
1456#if PYTHON_API_VERSION >= 1009
1457 char* tmpPtr; int tmpSize;
1458 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 1459 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1460 return NULL;
1461 }
1462 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1463 return NULL;
1464 _arg1 = new wxString(tmpPtr, tmpSize);
1465#else
ab9bc19b
RD
1466 if (!PyString_Check(_obj1)) {
1467 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1468 return NULL;
1469 }
2cd2fac8
RD
1470 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1471#endif
ab9bc19b
RD
1472}
1473{
2cd2fac8
RD
1474#if PYTHON_API_VERSION >= 1009
1475 char* tmpPtr; int tmpSize;
1476 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 1477 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1478 return NULL;
1479 }
1480 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1481 return NULL;
1482 _arg2 = new wxString(tmpPtr, tmpSize);
1483#else
ab9bc19b
RD
1484 if (!PyString_Check(_obj2)) {
1485 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1486 return NULL;
1487 }
2cd2fac8
RD
1488 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1489#endif
ab9bc19b
RD
1490}
1491{
1492 wxPy_BEGIN_ALLOW_THREADS;
1493 _result = (bool )wxImage_LoadMimeFile(_arg0,*_arg1,*_arg2);
1494
1495 wxPy_END_ALLOW_THREADS;
4dfaa61e 1496 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1497} _resultobj = Py_BuildValue("i",_result);
1498{
1499 if (_obj1)
1500 delete _arg1;
1501}
1502{
1503 if (_obj2)
1504 delete _arg2;
1505}
1506 return _resultobj;
1507}
1508
1509#define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
107e4716 1510static PyObject *_wrap_wxImage_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1511 PyObject * _resultobj;
1512 bool _result;
1513 wxImage * _arg0;
1514 wxString * _arg1;
1515 int _arg2;
2d091820 1516 PyObject * _argo0 = 0;
ab9bc19b 1517 PyObject * _obj1 = 0;
107e4716 1518 char *_kwnames[] = { "self","name","type", NULL };
ab9bc19b
RD
1519
1520 self = self;
107e4716 1521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxImage_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2))
ab9bc19b 1522 return NULL;
2d091820
RD
1523 if (_argo0) {
1524 if (_argo0 == Py_None) { _arg0 = NULL; }
1525 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1526 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1527 return NULL;
1528 }
1529 }
1530{
2cd2fac8
RD
1531#if PYTHON_API_VERSION >= 1009
1532 char* tmpPtr; int tmpSize;
1533 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 1534 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1535 return NULL;
1536 }
1537 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1538 return NULL;
1539 _arg1 = new wxString(tmpPtr, tmpSize);
1540#else
ab9bc19b
RD
1541 if (!PyString_Check(_obj1)) {
1542 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1543 return NULL;
1544 }
2cd2fac8
RD
1545 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1546#endif
ab9bc19b
RD
1547}
1548{
1549 wxPy_BEGIN_ALLOW_THREADS;
1550 _result = (bool )wxImage_SaveFile(_arg0,*_arg1,_arg2);
1551
1552 wxPy_END_ALLOW_THREADS;
4dfaa61e 1553 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1554} _resultobj = Py_BuildValue("i",_result);
1555{
1556 if (_obj1)
1557 delete _arg1;
1558}
1559 return _resultobj;
1560}
1561
1562#define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
107e4716 1563static PyObject *_wrap_wxImage_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1564 PyObject * _resultobj;
1565 bool _result;
1566 wxImage * _arg0;
1567 wxString * _arg1;
1568 wxString * _arg2;
2d091820 1569 PyObject * _argo0 = 0;
ab9bc19b
RD
1570 PyObject * _obj1 = 0;
1571 PyObject * _obj2 = 0;
107e4716 1572 char *_kwnames[] = { "self","name","mimetype", NULL };
ab9bc19b
RD
1573
1574 self = self;
107e4716 1575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_SaveMimeFile",_kwnames,&_argo0,&_obj1,&_obj2))
ab9bc19b 1576 return NULL;
2d091820
RD
1577 if (_argo0) {
1578 if (_argo0 == Py_None) { _arg0 = NULL; }
1579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1581 return NULL;
1582 }
1583 }
1584{
2cd2fac8
RD
1585#if PYTHON_API_VERSION >= 1009
1586 char* tmpPtr; int tmpSize;
1587 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 1588 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1589 return NULL;
1590 }
1591 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1592 return NULL;
1593 _arg1 = new wxString(tmpPtr, tmpSize);
1594#else
ab9bc19b
RD
1595 if (!PyString_Check(_obj1)) {
1596 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1597 return NULL;
1598 }
2cd2fac8
RD
1599 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1600#endif
ab9bc19b
RD
1601}
1602{
2cd2fac8
RD
1603#if PYTHON_API_VERSION >= 1009
1604 char* tmpPtr; int tmpSize;
1605 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 1606 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1607 return NULL;
1608 }
1609 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1610 return NULL;
1611 _arg2 = new wxString(tmpPtr, tmpSize);
1612#else
ab9bc19b
RD
1613 if (!PyString_Check(_obj2)) {
1614 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1615 return NULL;
1616 }
2cd2fac8
RD
1617 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1618#endif
ab9bc19b
RD
1619}
1620{
1621 wxPy_BEGIN_ALLOW_THREADS;
1622 _result = (bool )wxImage_SaveMimeFile(_arg0,*_arg1,*_arg2);
1623
1624 wxPy_END_ALLOW_THREADS;
4dfaa61e 1625 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1626} _resultobj = Py_BuildValue("i",_result);
1627{
1628 if (_obj1)
1629 delete _arg1;
1630}
1631{
1632 if (_obj2)
1633 delete _arg2;
1634}
1635 return _resultobj;
1636}
1637
1638#define wxImage_Ok(_swigobj) (_swigobj->Ok())
107e4716 1639static PyObject *_wrap_wxImage_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1640 PyObject * _resultobj;
1641 bool _result;
1642 wxImage * _arg0;
2d091820 1643 PyObject * _argo0 = 0;
107e4716 1644 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1645
1646 self = self;
107e4716 1647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Ok",_kwnames,&_argo0))
ab9bc19b 1648 return NULL;
2d091820
RD
1649 if (_argo0) {
1650 if (_argo0 == Py_None) { _arg0 = NULL; }
1651 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1652 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
1653 return NULL;
1654 }
1655 }
1656{
1657 wxPy_BEGIN_ALLOW_THREADS;
1658 _result = (bool )wxImage_Ok(_arg0);
1659
1660 wxPy_END_ALLOW_THREADS;
4dfaa61e 1661 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1662} _resultobj = Py_BuildValue("i",_result);
1663 return _resultobj;
1664}
1665
1666#define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 1667static PyObject *_wrap_wxImage_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1668 PyObject * _resultobj;
1669 int _result;
1670 wxImage * _arg0;
2d091820 1671 PyObject * _argo0 = 0;
107e4716 1672 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1673
1674 self = self;
107e4716 1675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetWidth",_kwnames,&_argo0))
ab9bc19b 1676 return NULL;
2d091820
RD
1677 if (_argo0) {
1678 if (_argo0 == Py_None) { _arg0 = NULL; }
1679 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1680 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
1681 return NULL;
1682 }
1683 }
1684{
1685 wxPy_BEGIN_ALLOW_THREADS;
1686 _result = (int )wxImage_GetWidth(_arg0);
1687
1688 wxPy_END_ALLOW_THREADS;
4dfaa61e 1689 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1690} _resultobj = Py_BuildValue("i",_result);
1691 return _resultobj;
1692}
1693
1694#define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
107e4716 1695static PyObject *_wrap_wxImage_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1696 PyObject * _resultobj;
1697 int _result;
1698 wxImage * _arg0;
2d091820 1699 PyObject * _argo0 = 0;
107e4716 1700 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1701
1702 self = self;
107e4716 1703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetHeight",_kwnames,&_argo0))
ab9bc19b 1704 return NULL;
2d091820
RD
1705 if (_argo0) {
1706 if (_argo0 == Py_None) { _arg0 = NULL; }
1707 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1708 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
1709 return NULL;
1710 }
1711 }
1712{
1713 wxPy_BEGIN_ALLOW_THREADS;
1714 _result = (int )wxImage_GetHeight(_arg0);
1715
1716 wxPy_END_ALLOW_THREADS;
4dfaa61e 1717 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1718} _resultobj = Py_BuildValue("i",_result);
1719 return _resultobj;
1720}
1721
f078d013
RD
1722#define wxImage_GetSubImage(_swigobj,_swigarg0) (_swigobj->GetSubImage(_swigarg0))
1723static PyObject *_wrap_wxImage_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) {
1724 PyObject * _resultobj;
1725 wxImage * _result;
1726 wxImage * _arg0;
1727 wxRect * _arg1;
1728 PyObject * _argo0 = 0;
1729 wxRect temp;
1730 PyObject * _obj1 = 0;
1731 char *_kwnames[] = { "self","rect", NULL };
1732 char _ptemp[128];
1733
1734 self = self;
1735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_GetSubImage",_kwnames,&_argo0,&_obj1))
1736 return NULL;
1737 if (_argo0) {
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_GetSubImage. Expected _wxImage_p.");
1741 return NULL;
1742 }
1743 }
1744{
1745 _arg1 = &temp;
1746 if (! wxRect_helper(_obj1, &_arg1))
1747 return NULL;
1748}
1749{
1750 wxPy_BEGIN_ALLOW_THREADS;
1751 _result = new wxImage (wxImage_GetSubImage(_arg0,*_arg1));
1752
1753 wxPy_END_ALLOW_THREADS;
4dfaa61e 1754 if (PyErr_Occurred()) return NULL;
f078d013
RD
1755} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
1756 _resultobj = Py_BuildValue("s",_ptemp);
1757 return _resultobj;
1758}
1759
f6bcfd97
BP
1760#define wxImage_Copy(_swigobj) (_swigobj->Copy())
1761static PyObject *_wrap_wxImage_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
1762 PyObject * _resultobj;
1763 wxImage * _result;
1764 wxImage * _arg0;
1765 PyObject * _argo0 = 0;
1766 char *_kwnames[] = { "self", NULL };
1767 char _ptemp[128];
1768
1769 self = self;
1770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Copy",_kwnames,&_argo0))
1771 return NULL;
1772 if (_argo0) {
1773 if (_argo0 == Py_None) { _arg0 = NULL; }
1774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Copy. Expected _wxImage_p.");
1776 return NULL;
1777 }
1778 }
1779{
1780 wxPy_BEGIN_ALLOW_THREADS;
1781 _result = new wxImage (wxImage_Copy(_arg0));
1782
1783 wxPy_END_ALLOW_THREADS;
4dfaa61e 1784 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1785} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
1786 _resultobj = Py_BuildValue("s",_ptemp);
1787 return _resultobj;
1788}
1789
1790#define wxImage_Paste(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Paste(_swigarg0,_swigarg1,_swigarg2))
1791static PyObject *_wrap_wxImage_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
1792 PyObject * _resultobj;
1793 wxImage * _arg0;
1794 wxImage * _arg1;
1795 int _arg2;
1796 int _arg3;
1797 PyObject * _argo0 = 0;
1798 PyObject * _argo1 = 0;
1799 char *_kwnames[] = { "self","image","x","y", NULL };
1800
1801 self = self;
1802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxImage_Paste",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
1803 return NULL;
1804 if (_argo0) {
1805 if (_argo0 == Py_None) { _arg0 = NULL; }
1806 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1807 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Paste. Expected _wxImage_p.");
1808 return NULL;
1809 }
1810 }
1811 if (_argo1) {
1812 if (_argo1 == Py_None) { _arg1 = NULL; }
1813 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImage_p")) {
1814 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImage_Paste. Expected _wxImage_p.");
1815 return NULL;
1816 }
1817 }
1818{
1819 wxPy_BEGIN_ALLOW_THREADS;
1820 wxImage_Paste(_arg0,*_arg1,_arg2,_arg3);
1821
1822 wxPy_END_ALLOW_THREADS;
4dfaa61e 1823 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1824} Py_INCREF(Py_None);
1825 _resultobj = Py_None;
1826 return _resultobj;
1827}
1828
3f0be3ec
RD
1829static PyObject * wxImage_GetData(wxImage *self) {
1830 unsigned char* data = self->GetData();
1831 int len = self->GetWidth() * self->GetHeight() * 3;
1832 return PyString_FromStringAndSize((char*)data, len);
1833 }
107e4716 1834static PyObject *_wrap_wxImage_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b 1835 PyObject * _resultobj;
3f0be3ec 1836 PyObject * _result;
ab9bc19b 1837 wxImage * _arg0;
2d091820 1838 PyObject * _argo0 = 0;
107e4716 1839 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1840
1841 self = self;
107e4716 1842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetData",_kwnames,&_argo0))
ab9bc19b 1843 return NULL;
2d091820
RD
1844 if (_argo0) {
1845 if (_argo0 == Py_None) { _arg0 = NULL; }
1846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
1848 return NULL;
1849 }
1850 }
1851{
1852 wxPy_BEGIN_ALLOW_THREADS;
3f0be3ec 1853 _result = (PyObject *)wxImage_GetData(_arg0);
ab9bc19b
RD
1854
1855 wxPy_END_ALLOW_THREADS;
4dfaa61e 1856 if (PyErr_Occurred()) return NULL;
3f0be3ec
RD
1857}{
1858 _resultobj = _result;
1859}
ab9bc19b
RD
1860 return _resultobj;
1861}
1862
3f0be3ec
RD
1863static void wxImage_SetData(wxImage *self,PyObject * data) {
1864 unsigned char* dataPtr;
1865
1866 if (! PyString_Check(data)) {
1867 PyErr_SetString(PyExc_TypeError, "Expected string object");
1868 return /* NULL */ ;
1869 }
f078d013
RD
1870
1871 size_t len = self->GetWidth() * self->GetHeight() * 3;
2cd2fac8 1872 dataPtr = (unsigned char*) malloc(len);
f078d013 1873 memcpy(dataPtr, PyString_AsString(data), len);
3f0be3ec
RD
1874 self->SetData(dataPtr);
1875 }
107e4716 1876static PyObject *_wrap_wxImage_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1877 PyObject * _resultobj;
1878 wxImage * _arg0;
3f0be3ec 1879 PyObject * _arg1;
2d091820 1880 PyObject * _argo0 = 0;
3f0be3ec 1881 PyObject * _obj1 = 0;
107e4716 1882 char *_kwnames[] = { "self","data", NULL };
ab9bc19b
RD
1883
1884 self = self;
107e4716 1885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_SetData",_kwnames,&_argo0,&_obj1))
ab9bc19b 1886 return NULL;
2d091820
RD
1887 if (_argo0) {
1888 if (_argo0 == Py_None) { _arg0 = NULL; }
1889 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1890 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
1891 return NULL;
1892 }
1893 }
3f0be3ec
RD
1894{
1895 _arg1 = _obj1;
1896}
ab9bc19b
RD
1897{
1898 wxPy_BEGIN_ALLOW_THREADS;
1899 wxImage_SetData(_arg0,_arg1);
1900
1901 wxPy_END_ALLOW_THREADS;
4dfaa61e 1902 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1903} Py_INCREF(Py_None);
1904 _resultobj = Py_None;
1905 return _resultobj;
1906}
1907
1908#define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
107e4716 1909static PyObject *_wrap_wxImage_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1910 PyObject * _resultobj;
1911 wxImage * _arg0;
1912 unsigned char _arg1;
1913 unsigned char _arg2;
1914 unsigned char _arg3;
2d091820 1915 PyObject * _argo0 = 0;
107e4716 1916 char *_kwnames[] = { "self","r","g","b", NULL };
ab9bc19b
RD
1917
1918 self = self;
107e4716 1919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_SetMaskColour",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
ab9bc19b 1920 return NULL;
2d091820
RD
1921 if (_argo0) {
1922 if (_argo0 == Py_None) { _arg0 = NULL; }
1923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
1925 return NULL;
1926 }
1927 }
1928{
1929 wxPy_BEGIN_ALLOW_THREADS;
1930 wxImage_SetMaskColour(_arg0,_arg1,_arg2,_arg3);
1931
1932 wxPy_END_ALLOW_THREADS;
4dfaa61e 1933 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1934} Py_INCREF(Py_None);
1935 _resultobj = Py_None;
1936 return _resultobj;
1937}
1938
1939#define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
107e4716 1940static PyObject *_wrap_wxImage_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1941 PyObject * _resultobj;
1942 unsigned char _result;
1943 wxImage * _arg0;
2d091820 1944 PyObject * _argo0 = 0;
107e4716 1945 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1946
1947 self = self;
107e4716 1948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskRed",_kwnames,&_argo0))
ab9bc19b 1949 return NULL;
2d091820
RD
1950 if (_argo0) {
1951 if (_argo0 == Py_None) { _arg0 = NULL; }
1952 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1953 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
1954 return NULL;
1955 }
1956 }
1957{
1958 wxPy_BEGIN_ALLOW_THREADS;
1959 _result = (unsigned char )wxImage_GetMaskRed(_arg0);
1960
1961 wxPy_END_ALLOW_THREADS;
4dfaa61e 1962 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1963} _resultobj = Py_BuildValue("b",_result);
1964 return _resultobj;
1965}
1966
1967#define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
107e4716 1968static PyObject *_wrap_wxImage_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1969 PyObject * _resultobj;
1970 unsigned char _result;
1971 wxImage * _arg0;
2d091820 1972 PyObject * _argo0 = 0;
107e4716 1973 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1974
1975 self = self;
107e4716 1976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskGreen",_kwnames,&_argo0))
ab9bc19b 1977 return NULL;
2d091820
RD
1978 if (_argo0) {
1979 if (_argo0 == Py_None) { _arg0 = NULL; }
1980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
1982 return NULL;
1983 }
1984 }
1985{
1986 wxPy_BEGIN_ALLOW_THREADS;
1987 _result = (unsigned char )wxImage_GetMaskGreen(_arg0);
1988
1989 wxPy_END_ALLOW_THREADS;
4dfaa61e 1990 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1991} _resultobj = Py_BuildValue("b",_result);
1992 return _resultobj;
1993}
1994
1995#define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
107e4716 1996static PyObject *_wrap_wxImage_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1997 PyObject * _resultobj;
1998 unsigned char _result;
1999 wxImage * _arg0;
2d091820 2000 PyObject * _argo0 = 0;
107e4716 2001 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2002
2003 self = self;
107e4716 2004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskBlue",_kwnames,&_argo0))
ab9bc19b 2005 return NULL;
2d091820
RD
2006 if (_argo0) {
2007 if (_argo0 == Py_None) { _arg0 = NULL; }
2008 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2009 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
2010 return NULL;
2011 }
2012 }
2013{
2014 wxPy_BEGIN_ALLOW_THREADS;
2015 _result = (unsigned char )wxImage_GetMaskBlue(_arg0);
2016
2017 wxPy_END_ALLOW_THREADS;
4dfaa61e 2018 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2019} _resultobj = Py_BuildValue("b",_result);
2020 return _resultobj;
2021}
2022
2023#define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
107e4716 2024static PyObject *_wrap_wxImage_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2025 PyObject * _resultobj;
2026 wxImage * _arg0;
2d091820
RD
2027 bool _arg1 = (bool ) TRUE;
2028 PyObject * _argo0 = 0;
2029 int tempbool1 = (int) TRUE;
107e4716 2030 char *_kwnames[] = { "self","mask", NULL };
ab9bc19b
RD
2031
2032 self = self;
107e4716 2033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_SetMask",_kwnames,&_argo0,&tempbool1))
ab9bc19b 2034 return NULL;
2d091820
RD
2035 if (_argo0) {
2036 if (_argo0 == Py_None) { _arg0 = NULL; }
2037 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2038 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
2039 return NULL;
2040 }
2041 }
2042 _arg1 = (bool ) tempbool1;
2043{
2044 wxPy_BEGIN_ALLOW_THREADS;
2045 wxImage_SetMask(_arg0,_arg1);
2046
2047 wxPy_END_ALLOW_THREADS;
4dfaa61e 2048 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2049} Py_INCREF(Py_None);
2050 _resultobj = Py_None;
2051 return _resultobj;
2052}
2053
2054#define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
107e4716 2055static PyObject *_wrap_wxImage_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2056 PyObject * _resultobj;
2057 bool _result;
2058 wxImage * _arg0;
2d091820 2059 PyObject * _argo0 = 0;
107e4716 2060 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2061
2062 self = self;
107e4716 2063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_HasMask",_kwnames,&_argo0))
ab9bc19b 2064 return NULL;
2d091820
RD
2065 if (_argo0) {
2066 if (_argo0 == Py_None) { _arg0 = NULL; }
2067 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2068 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
2069 return NULL;
2070 }
2071 }
2072{
2073 wxPy_BEGIN_ALLOW_THREADS;
2074 _result = (bool )wxImage_HasMask(_arg0);
2075
2076 wxPy_END_ALLOW_THREADS;
4dfaa61e 2077 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2078} _resultobj = Py_BuildValue("i",_result);
2079 return _resultobj;
2080}
2081
f6bcfd97
BP
2082#define wxImage_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2083static PyObject *_wrap_wxImage_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) {
2084 PyObject * _resultobj;
2085 wxImage * _result;
2086 wxImage * _arg0;
2087 double _arg1;
2088 wxPoint * _arg2;
2089 bool _arg3 = (bool ) TRUE;
2090 wxPoint * _arg4 = (wxPoint *) NULL;
2091 PyObject * _argo0 = 0;
2092 wxPoint temp;
2093 PyObject * _obj2 = 0;
2094 int tempbool3 = (int) TRUE;
2095 wxPoint temp0;
2096 PyObject * _obj4 = 0;
2097 char *_kwnames[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL };
2098 char _ptemp[128];
2099
2100 self = self;
2101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OdO|iO:wxImage_Rotate",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3,&_obj4))
2102 return NULL;
2103 if (_argo0) {
2104 if (_argo0 == Py_None) { _arg0 = NULL; }
2105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rotate. Expected _wxImage_p.");
2107 return NULL;
2108 }
2109 }
2110{
2111 _arg2 = &temp;
2112 if (! wxPoint_helper(_obj2, &_arg2))
2113 return NULL;
2114}
2115 _arg3 = (bool ) tempbool3;
2116 if (_obj4)
2117{
2118 _arg4 = &temp0;
2119 if (! wxPoint_helper(_obj4, &_arg4))
2120 return NULL;
2121}
2122{
2123 wxPy_BEGIN_ALLOW_THREADS;
2124 _result = new wxImage (wxImage_Rotate(_arg0,_arg1,*_arg2,_arg3,_arg4));
2125
2126 wxPy_END_ALLOW_THREADS;
4dfaa61e 2127 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2128} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2129 _resultobj = Py_BuildValue("s",_ptemp);
2130 return _resultobj;
2131}
2132
2133#define wxImage_Rotate90(_swigobj,_swigarg0) (_swigobj->Rotate90(_swigarg0))
2134static PyObject *_wrap_wxImage_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) {
2135 PyObject * _resultobj;
2136 wxImage * _result;
2137 wxImage * _arg0;
2138 bool _arg1 = (bool ) TRUE;
2139 PyObject * _argo0 = 0;
2140 int tempbool1 = (int) TRUE;
2141 char *_kwnames[] = { "self","clockwise", NULL };
2142 char _ptemp[128];
2143
2144 self = self;
2145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_Rotate90",_kwnames,&_argo0,&tempbool1))
2146 return NULL;
2147 if (_argo0) {
2148 if (_argo0 == Py_None) { _arg0 = NULL; }
2149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rotate90. Expected _wxImage_p.");
2151 return NULL;
2152 }
2153 }
2154 _arg1 = (bool ) tempbool1;
2155{
2156 wxPy_BEGIN_ALLOW_THREADS;
2157 _result = new wxImage (wxImage_Rotate90(_arg0,_arg1));
2158
2159 wxPy_END_ALLOW_THREADS;
4dfaa61e 2160 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2161} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2162 _resultobj = Py_BuildValue("s",_ptemp);
2163 return _resultobj;
2164}
2165
2166#define wxImage_Mirror(_swigobj,_swigarg0) (_swigobj->Mirror(_swigarg0))
2167static PyObject *_wrap_wxImage_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) {
2168 PyObject * _resultobj;
2169 wxImage * _result;
2170 wxImage * _arg0;
2171 bool _arg1 = (bool ) TRUE;
2172 PyObject * _argo0 = 0;
2173 int tempbool1 = (int) TRUE;
2174 char *_kwnames[] = { "self","horizontally", NULL };
2175 char _ptemp[128];
2176
2177 self = self;
2178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_Mirror",_kwnames,&_argo0,&tempbool1))
2179 return NULL;
2180 if (_argo0) {
2181 if (_argo0 == Py_None) { _arg0 = NULL; }
2182 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2183 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Mirror. Expected _wxImage_p.");
2184 return NULL;
2185 }
2186 }
2187 _arg1 = (bool ) tempbool1;
2188{
2189 wxPy_BEGIN_ALLOW_THREADS;
2190 _result = new wxImage (wxImage_Mirror(_arg0,_arg1));
2191
2192 wxPy_END_ALLOW_THREADS;
4dfaa61e 2193 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2194} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2195 _resultobj = Py_BuildValue("s",_ptemp);
2196 return _resultobj;
2197}
2198
2199#define wxImage_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2200static PyObject *_wrap_wxImage_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
2201 PyObject * _resultobj;
2202 wxImage * _arg0;
2203 unsigned char _arg1;
2204 unsigned char _arg2;
2205 unsigned char _arg3;
2206 unsigned char _arg4;
2207 unsigned char _arg5;
2208 unsigned char _arg6;
2209 PyObject * _argo0 = 0;
2210 char *_kwnames[] = { "self","r1","g1","b1","r2","g2","b2", NULL };
2211
2212 self = self;
2213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbbbbb:wxImage_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
2214 return NULL;
2215 if (_argo0) {
2216 if (_argo0 == Py_None) { _arg0 = NULL; }
2217 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2218 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Replace. Expected _wxImage_p.");
2219 return NULL;
2220 }
2221 }
2222{
2223 wxPy_BEGIN_ALLOW_THREADS;
2224 wxImage_Replace(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
2225
2226 wxPy_END_ALLOW_THREADS;
4dfaa61e 2227 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2228} Py_INCREF(Py_None);
2229 _resultobj = Py_None;
2230 return _resultobj;
2231}
2232
2233#define wxImage_CountColours(_swigobj,_swigarg0) (_swigobj->CountColours(_swigarg0))
2234static PyObject *_wrap_wxImage_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) {
2235 PyObject * _resultobj;
2236 unsigned long _result;
2237 wxImage * _arg0;
2238 unsigned long _arg1 = (unsigned long ) (unsigned long)-1;
2239 PyObject * _argo0 = 0;
2240 char *_kwnames[] = { "self","stopafter", NULL };
2241
2242 self = self;
2243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxImage_CountColours",_kwnames,&_argo0,&_arg1))
2244 return NULL;
2245 if (_argo0) {
2246 if (_argo0 == Py_None) { _arg0 = NULL; }
2247 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2248 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_CountColours. Expected _wxImage_p.");
2249 return NULL;
2250 }
2251 }
2252{
2253 wxPy_BEGIN_ALLOW_THREADS;
2254 _result = (unsigned long )wxImage_CountColours(_arg0,_arg1);
2255
2256 wxPy_END_ALLOW_THREADS;
4dfaa61e 2257 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2258} _resultobj = Py_BuildValue("l",_result);
2259 return _resultobj;
2260}
2261
fbcadfca
RD
2262static PyObject *_wrap_wxImage_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2263 PyObject * _resultobj;
2264 wxImageHandler * _arg0;
2265 PyObject * _argo0 = 0;
2266 char *_kwnames[] = { "handler", NULL };
2267
2268 self = self;
2269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_AddHandler",_kwnames,&_argo0))
2270 return NULL;
2271 if (_argo0) {
2272 if (_argo0 == Py_None) { _arg0 = NULL; }
2273 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
2274 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
2275 return NULL;
2276 }
2277 }
2278{
2279 wxPy_BEGIN_ALLOW_THREADS;
2280 wxImage::AddHandler(_arg0);
2281
2282 wxPy_END_ALLOW_THREADS;
4dfaa61e 2283 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2284} Py_INCREF(Py_None);
2285 _resultobj = Py_None;
2286 return _resultobj;
2287}
2288
2289static PyObject *_wrap_wxImage_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2290 PyObject * _resultobj;
2291 wxImageHandler * _arg0;
2292 PyObject * _argo0 = 0;
2293 char *_kwnames[] = { "handler", NULL };
2294
2295 self = self;
2296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_InsertHandler",_kwnames,&_argo0))
2297 return NULL;
2298 if (_argo0) {
2299 if (_argo0 == Py_None) { _arg0 = NULL; }
2300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
2301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_InsertHandler. Expected _wxImageHandler_p.");
2302 return NULL;
2303 }
2304 }
2305{
2306 wxPy_BEGIN_ALLOW_THREADS;
2307 wxImage::InsertHandler(_arg0);
2308
2309 wxPy_END_ALLOW_THREADS;
4dfaa61e 2310 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2311} Py_INCREF(Py_None);
2312 _resultobj = Py_None;
2313 return _resultobj;
2314}
2315
2316static PyObject *_wrap_wxImage_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2317 PyObject * _resultobj;
2318 bool _result;
2319 wxString * _arg0;
2320 PyObject * _obj0 = 0;
2321 char *_kwnames[] = { "name", NULL };
2322
2323 self = self;
2324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_RemoveHandler",_kwnames,&_obj0))
2325 return NULL;
2326{
2327#if PYTHON_API_VERSION >= 1009
2328 char* tmpPtr; int tmpSize;
2329 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
7a446686 2330 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
fbcadfca
RD
2331 return NULL;
2332 }
2333 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2334 return NULL;
2335 _arg0 = new wxString(tmpPtr, tmpSize);
2336#else
2337 if (!PyString_Check(_obj0)) {
2338 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2339 return NULL;
2340 }
2341 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2342#endif
2343}
2344{
2345 wxPy_BEGIN_ALLOW_THREADS;
2346 _result = (bool )wxImage::RemoveHandler(*_arg0);
2347
2348 wxPy_END_ALLOW_THREADS;
4dfaa61e 2349 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2350} _resultobj = Py_BuildValue("i",_result);
2351{
2352 if (_obj0)
2353 delete _arg0;
2354}
2355 return _resultobj;
2356}
2357
ab9bc19b 2358static PyMethodDef imagecMethods[] = {
fbcadfca
RD
2359 { "wxImage_RemoveHandler", (PyCFunction) _wrap_wxImage_RemoveHandler, METH_VARARGS | METH_KEYWORDS },
2360 { "wxImage_InsertHandler", (PyCFunction) _wrap_wxImage_InsertHandler, METH_VARARGS | METH_KEYWORDS },
2361 { "wxImage_AddHandler", (PyCFunction) _wrap_wxImage_AddHandler, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
2362 { "wxImage_CountColours", (PyCFunction) _wrap_wxImage_CountColours, METH_VARARGS | METH_KEYWORDS },
2363 { "wxImage_Replace", (PyCFunction) _wrap_wxImage_Replace, METH_VARARGS | METH_KEYWORDS },
2364 { "wxImage_Mirror", (PyCFunction) _wrap_wxImage_Mirror, METH_VARARGS | METH_KEYWORDS },
2365 { "wxImage_Rotate90", (PyCFunction) _wrap_wxImage_Rotate90, METH_VARARGS | METH_KEYWORDS },
2366 { "wxImage_Rotate", (PyCFunction) _wrap_wxImage_Rotate, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
2367 { "wxImage_HasMask", (PyCFunction) _wrap_wxImage_HasMask, METH_VARARGS | METH_KEYWORDS },
2368 { "wxImage_SetMask", (PyCFunction) _wrap_wxImage_SetMask, METH_VARARGS | METH_KEYWORDS },
2369 { "wxImage_GetMaskBlue", (PyCFunction) _wrap_wxImage_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
2370 { "wxImage_GetMaskGreen", (PyCFunction) _wrap_wxImage_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
2371 { "wxImage_GetMaskRed", (PyCFunction) _wrap_wxImage_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
2372 { "wxImage_SetMaskColour", (PyCFunction) _wrap_wxImage_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
2373 { "wxImage_SetData", (PyCFunction) _wrap_wxImage_SetData, METH_VARARGS | METH_KEYWORDS },
2374 { "wxImage_GetData", (PyCFunction) _wrap_wxImage_GetData, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
2375 { "wxImage_Paste", (PyCFunction) _wrap_wxImage_Paste, METH_VARARGS | METH_KEYWORDS },
2376 { "wxImage_Copy", (PyCFunction) _wrap_wxImage_Copy, METH_VARARGS | METH_KEYWORDS },
f078d013 2377 { "wxImage_GetSubImage", (PyCFunction) _wrap_wxImage_GetSubImage, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
2378 { "wxImage_GetHeight", (PyCFunction) _wrap_wxImage_GetHeight, METH_VARARGS | METH_KEYWORDS },
2379 { "wxImage_GetWidth", (PyCFunction) _wrap_wxImage_GetWidth, METH_VARARGS | METH_KEYWORDS },
2380 { "wxImage_Ok", (PyCFunction) _wrap_wxImage_Ok, METH_VARARGS | METH_KEYWORDS },
2381 { "wxImage_SaveMimeFile", (PyCFunction) _wrap_wxImage_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
2382 { "wxImage_SaveFile", (PyCFunction) _wrap_wxImage_SaveFile, METH_VARARGS | METH_KEYWORDS },
2383 { "wxImage_LoadMimeFile", (PyCFunction) _wrap_wxImage_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
2384 { "wxImage_LoadFile", (PyCFunction) _wrap_wxImage_LoadFile, METH_VARARGS | METH_KEYWORDS },
fbcadfca 2385 { "wxImage_CanRead", (PyCFunction) _wrap_wxImage_CanRead, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
2386 { "wxImage_GetBlue", (PyCFunction) _wrap_wxImage_GetBlue, METH_VARARGS | METH_KEYWORDS },
2387 { "wxImage_GetGreen", (PyCFunction) _wrap_wxImage_GetGreen, METH_VARARGS | METH_KEYWORDS },
2388 { "wxImage_GetRed", (PyCFunction) _wrap_wxImage_GetRed, METH_VARARGS | METH_KEYWORDS },
2389 { "wxImage_SetRGB", (PyCFunction) _wrap_wxImage_SetRGB, METH_VARARGS | METH_KEYWORDS },
2390 { "wxImage_Rescale", (PyCFunction) _wrap_wxImage_Rescale, METH_VARARGS | METH_KEYWORDS },
2391 { "wxImage_Scale", (PyCFunction) _wrap_wxImage_Scale, METH_VARARGS | METH_KEYWORDS },
2392 { "wxImage_Destroy", (PyCFunction) _wrap_wxImage_Destroy, METH_VARARGS | METH_KEYWORDS },
2393 { "wxImage_Create", (PyCFunction) _wrap_wxImage_Create, METH_VARARGS | METH_KEYWORDS },
9e689c06 2394 { "wxImage_ConvertToMonoBitmap", (PyCFunction) _wrap_wxImage_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
2395 { "wxImage_ConvertToBitmap", (PyCFunction) _wrap_wxImage_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
2396 { "delete_wxImage", (PyCFunction) _wrap_delete_wxImage, METH_VARARGS | METH_KEYWORDS },
2397 { "new_wxImage", (PyCFunction) _wrap_new_wxImage, METH_VARARGS | METH_KEYWORDS },
ab2208b5 2398 { "new_wxTIFFHandler", (PyCFunction) _wrap_new_wxTIFFHandler, METH_VARARGS | METH_KEYWORDS },
bc29c5e0
RD
2399 { "new_wxPCXHandler", (PyCFunction) _wrap_new_wxPCXHandler, METH_VARARGS | METH_KEYWORDS },
2400 { "new_wxPNMHandler", (PyCFunction) _wrap_new_wxPNMHandler, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
2401 { "new_wxGIFHandler", (PyCFunction) _wrap_new_wxGIFHandler, METH_VARARGS | METH_KEYWORDS },
2402 { "new_wxBMPHandler", (PyCFunction) _wrap_new_wxBMPHandler, METH_VARARGS | METH_KEYWORDS },
2403 { "new_wxJPEGHandler", (PyCFunction) _wrap_new_wxJPEGHandler, METH_VARARGS | METH_KEYWORDS },
2404 { "new_wxPNGHandler", (PyCFunction) _wrap_new_wxPNGHandler, METH_VARARGS | METH_KEYWORDS },
2405 { "wxImageHandler_SetMimeType", (PyCFunction) _wrap_wxImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
2406 { "wxImageHandler_SetType", (PyCFunction) _wrap_wxImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
2407 { "wxImageHandler_SetExtension", (PyCFunction) _wrap_wxImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
2408 { "wxImageHandler_SetName", (PyCFunction) _wrap_wxImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
2409 { "wxImageHandler_GetMimeType", (PyCFunction) _wrap_wxImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
2410 { "wxImageHandler_GetType", (PyCFunction) _wrap_wxImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
2411 { "wxImageHandler_GetExtension", (PyCFunction) _wrap_wxImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
2412 { "wxImageHandler_GetName", (PyCFunction) _wrap_wxImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
9e689c06 2413 { "wxBitmapFromImage", (PyCFunction) _wrap_wxBitmapFromImage, METH_VARARGS | METH_KEYWORDS },
bc29c5e0 2414 { "wxInitAllImageHandlers", (PyCFunction) _wrap_wxInitAllImageHandlers, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
2415 { "wxImageFromBitmap", (PyCFunction) _wrap_wxImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
2416 { "wxImageFromMime", (PyCFunction) _wrap_wxImageFromMime, METH_VARARGS | METH_KEYWORDS },
2417 { "wxEmptyImage", (PyCFunction) _wrap_wxEmptyImage, METH_VARARGS | METH_KEYWORDS },
ab9bc19b
RD
2418 { NULL, NULL }
2419};
2d091820
RD
2420#ifdef __cplusplus
2421}
2422#endif
2423/*
2424 * This table is used by the pointer type-checker
2425 */
2426static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2d091820 2427 { "_signed_long","_long",0},
4120ef2b 2428 { "_wxPrintQuality","_wxCoord",0},
2d091820
RD
2429 { "_wxPrintQuality","_int",0},
2430 { "_wxPrintQuality","_signed_int",0},
2431 { "_wxPrintQuality","_unsigned_int",0},
2432 { "_wxPrintQuality","_wxWindowID",0},
2433 { "_wxPrintQuality","_uint",0},
2434 { "_wxPrintQuality","_EBool",0},
2435 { "_wxPrintQuality","_size_t",0},
c368d904 2436 { "_wxPrintQuality","_time_t",0},
ab2208b5
RD
2437 { "_wxImageHandler","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
2438 { "_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
bc29c5e0
RD
2439 { "_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
2440 { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
2441 { "_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
2442 { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
2d091820
RD
2443 { "_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
2444 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
2445 { "_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
2446 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
2447 { "_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
2448 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
2449 { "_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
2450 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
2d091820 2451 { "_byte","_unsigned_char",0},
2d091820
RD
2452 { "_long","_unsigned_long",0},
2453 { "_long","_signed_long",0},
9df61a29
RD
2454 { "_class_wxObject","_class_wxImage",SwigwxImageTowxObject},
2455 { "_class_wxObject","_wxImage",SwigwxImageTowxObject},
2456 { "_class_wxObject","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxObject},
2457 { "_class_wxObject","_wxTIFFHandler",SwigwxTIFFHandlerTowxObject},
2458 { "_class_wxObject","_class_wxPCXHandler",SwigwxPCXHandlerTowxObject},
2459 { "_class_wxObject","_wxPCXHandler",SwigwxPCXHandlerTowxObject},
2460 { "_class_wxObject","_class_wxPNMHandler",SwigwxPNMHandlerTowxObject},
2461 { "_class_wxObject","_wxPNMHandler",SwigwxPNMHandlerTowxObject},
2462 { "_class_wxObject","_class_wxGIFHandler",SwigwxGIFHandlerTowxObject},
2463 { "_class_wxObject","_wxGIFHandler",SwigwxGIFHandlerTowxObject},
2464 { "_class_wxObject","_class_wxBMPHandler",SwigwxBMPHandlerTowxObject},
2465 { "_class_wxObject","_wxBMPHandler",SwigwxBMPHandlerTowxObject},
2466 { "_class_wxObject","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxObject},
2467 { "_class_wxObject","_wxJPEGHandler",SwigwxJPEGHandlerTowxObject},
2468 { "_class_wxObject","_class_wxPNGHandler",SwigwxPNGHandlerTowxObject},
2469 { "_class_wxObject","_wxPNGHandler",SwigwxPNGHandlerTowxObject},
2470 { "_class_wxObject","_class_wxImageHandler",SwigwxImageHandlerTowxObject},
2471 { "_class_wxObject","_wxImageHandler",SwigwxImageHandlerTowxObject},
4120ef2b 2472 { "_size_t","_wxCoord",0},
2d091820 2473 { "_size_t","_wxPrintQuality",0},
c368d904 2474 { "_size_t","_time_t",0},
2d091820
RD
2475 { "_size_t","_unsigned_int",0},
2476 { "_size_t","_int",0},
2477 { "_size_t","_wxWindowID",0},
2478 { "_size_t","_uint",0},
4120ef2b 2479 { "_uint","_wxCoord",0},
2d091820 2480 { "_uint","_wxPrintQuality",0},
c368d904 2481 { "_uint","_time_t",0},
2d091820
RD
2482 { "_uint","_size_t",0},
2483 { "_uint","_unsigned_int",0},
2484 { "_uint","_int",0},
2485 { "_uint","_wxWindowID",0},
f6bcfd97 2486 { "_wxChar","_char",0},
f6bcfd97 2487 { "_char","_wxChar",0},
4120ef2b 2488 { "_EBool","_wxCoord",0},
2d091820
RD
2489 { "_EBool","_wxPrintQuality",0},
2490 { "_EBool","_signed_int",0},
2491 { "_EBool","_int",0},
2492 { "_EBool","_wxWindowID",0},
2d091820 2493 { "_unsigned_long","_long",0},
4120ef2b 2494 { "_signed_int","_wxCoord",0},
2d091820
RD
2495 { "_signed_int","_wxPrintQuality",0},
2496 { "_signed_int","_EBool",0},
2497 { "_signed_int","_wxWindowID",0},
2498 { "_signed_int","_int",0},
2d091820
RD
2499 { "_WXTYPE","_short",0},
2500 { "_WXTYPE","_signed_short",0},
2501 { "_WXTYPE","_unsigned_short",0},
2d091820
RD
2502 { "_unsigned_short","_WXTYPE",0},
2503 { "_unsigned_short","_short",0},
9df61a29
RD
2504 { "_wxObject","_class_wxImage",SwigwxImageTowxObject},
2505 { "_wxObject","_wxImage",SwigwxImageTowxObject},
2506 { "_wxObject","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxObject},
2507 { "_wxObject","_wxTIFFHandler",SwigwxTIFFHandlerTowxObject},
2508 { "_wxObject","_class_wxPCXHandler",SwigwxPCXHandlerTowxObject},
2509 { "_wxObject","_wxPCXHandler",SwigwxPCXHandlerTowxObject},
2510 { "_wxObject","_class_wxPNMHandler",SwigwxPNMHandlerTowxObject},
2511 { "_wxObject","_wxPNMHandler",SwigwxPNMHandlerTowxObject},
2512 { "_wxObject","_class_wxGIFHandler",SwigwxGIFHandlerTowxObject},
2513 { "_wxObject","_wxGIFHandler",SwigwxGIFHandlerTowxObject},
2514 { "_wxObject","_class_wxBMPHandler",SwigwxBMPHandlerTowxObject},
2515 { "_wxObject","_wxBMPHandler",SwigwxBMPHandlerTowxObject},
2516 { "_wxObject","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxObject},
2517 { "_wxObject","_wxJPEGHandler",SwigwxJPEGHandlerTowxObject},
2518 { "_wxObject","_class_wxPNGHandler",SwigwxPNGHandlerTowxObject},
2519 { "_wxObject","_wxPNGHandler",SwigwxPNGHandlerTowxObject},
2520 { "_wxObject","_class_wxImageHandler",SwigwxImageHandlerTowxObject},
2521 { "_wxObject","_wxImageHandler",SwigwxImageHandlerTowxObject},
2d091820
RD
2522 { "_signed_short","_WXTYPE",0},
2523 { "_signed_short","_short",0},
ab2208b5
RD
2524 { "_class_wxImageHandler","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
2525 { "_class_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
bc29c5e0
RD
2526 { "_class_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
2527 { "_class_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
2528 { "_class_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
2529 { "_class_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
2d091820
RD
2530 { "_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
2531 { "_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
2532 { "_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
2533 { "_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
2534 { "_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
2535 { "_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
2536 { "_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
2537 { "_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
2d091820 2538 { "_unsigned_char","_byte",0},
4120ef2b 2539 { "_unsigned_int","_wxCoord",0},
2d091820 2540 { "_unsigned_int","_wxPrintQuality",0},
c368d904 2541 { "_unsigned_int","_time_t",0},
2d091820
RD
2542 { "_unsigned_int","_size_t",0},
2543 { "_unsigned_int","_uint",0},
2544 { "_unsigned_int","_wxWindowID",0},
2545 { "_unsigned_int","_int",0},
2d091820
RD
2546 { "_short","_WXTYPE",0},
2547 { "_short","_unsigned_short",0},
2548 { "_short","_signed_short",0},
4120ef2b 2549 { "_wxWindowID","_wxCoord",0},
2d091820 2550 { "_wxWindowID","_wxPrintQuality",0},
c368d904 2551 { "_wxWindowID","_time_t",0},
2d091820
RD
2552 { "_wxWindowID","_size_t",0},
2553 { "_wxWindowID","_EBool",0},
2554 { "_wxWindowID","_uint",0},
2555 { "_wxWindowID","_int",0},
2556 { "_wxWindowID","_signed_int",0},
2557 { "_wxWindowID","_unsigned_int",0},
4120ef2b 2558 { "_int","_wxCoord",0},
2d091820 2559 { "_int","_wxPrintQuality",0},
c368d904 2560 { "_int","_time_t",0},
2d091820
RD
2561 { "_int","_size_t",0},
2562 { "_int","_EBool",0},
2563 { "_int","_uint",0},
2564 { "_int","_wxWindowID",0},
2565 { "_int","_unsigned_int",0},
2566 { "_int","_signed_int",0},
c368d904
RD
2567 { "_time_t","_wxCoord",0},
2568 { "_time_t","_wxPrintQuality",0},
2569 { "_time_t","_unsigned_int",0},
2570 { "_time_t","_int",0},
2571 { "_time_t","_wxWindowID",0},
2572 { "_time_t","_uint",0},
2573 { "_time_t","_size_t",0},
4120ef2b
RD
2574 { "_wxCoord","_int",0},
2575 { "_wxCoord","_signed_int",0},
2576 { "_wxCoord","_unsigned_int",0},
2577 { "_wxCoord","_wxWindowID",0},
2578 { "_wxCoord","_uint",0},
2579 { "_wxCoord","_EBool",0},
2580 { "_wxCoord","_size_t",0},
c368d904 2581 { "_wxCoord","_time_t",0},
4120ef2b 2582 { "_wxCoord","_wxPrintQuality",0},
2d091820
RD
2583{0,0,0}};
2584
ab9bc19b
RD
2585static PyObject *SWIG_globals;
2586#ifdef __cplusplus
2587extern "C"
2588#endif
2d091820 2589SWIGEXPORT(void) initimagec() {
ab9bc19b
RD
2590 PyObject *m, *d;
2591 SWIG_globals = SWIG_newvarlink();
2592 m = Py_InitModule("imagec", imagecMethods);
2593 d = PyModule_GetDict(m);
df05452e
RD
2594 PyDict_SetItemString(d,"cvar", SWIG_globals);
2595 SWIG_addvarlink(SWIG_globals,"wxNullImage",_wrap_wxNullImage_get, _wrap_wxNullImage_set);
2d091820
RD
2596{
2597 int i;
2598 for (i = 0; _swig_mapping[i].n1; i++)
2599 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2600}
ab9bc19b 2601}