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