]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | # This file was created automatically by SWIG. |
2 | import imagec | |
3 | ||
4 | from misc import * | |
5 | ||
6 | from gdi import * | |
f74ff5ef | 7 | |
68bc8549 RD |
8 | from fonts import * |
9 | ||
f74ff5ef | 10 | from streams import * |
3856ee0b RD |
11 | class wxImageHistogramPtr : |
12 | def __init__(self,this): | |
13 | self.this = this | |
14 | self.thisown = 0 | |
15 | def FindFirstUnusedColour(self, *_args, **_kwargs): | |
5a2a9da2 | 16 | val = imagec.wxImageHistogram_FindFirstUnusedColour(self, *_args, **_kwargs) |
3856ee0b RD |
17 | return val |
18 | def __repr__(self): | |
5a2a9da2 | 19 | return "<%s.%s instance; proxy of C++ wxImageHistogram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
3856ee0b RD |
20 | class wxImageHistogram(wxImageHistogramPtr): |
21 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 22 | self.this = imagec.new_wxImageHistogram(*_args,**_kwargs) |
3856ee0b RD |
23 | self.thisown = 1 |
24 | ||
25 | ||
26 | ||
27 | ||
9416aa89 | 28 | class wxImageHandlerPtr(wxObjectPtr): |
cf694132 RD |
29 | def __init__(self,this): |
30 | self.this = this | |
31 | self.thisown = 0 | |
1d99702e | 32 | def GetName(self, *_args, **_kwargs): |
5a2a9da2 | 33 | val = imagec.wxImageHandler_GetName(self, *_args, **_kwargs) |
cf694132 | 34 | return val |
1d99702e | 35 | def GetExtension(self, *_args, **_kwargs): |
5a2a9da2 | 36 | val = imagec.wxImageHandler_GetExtension(self, *_args, **_kwargs) |
cf694132 | 37 | return val |
1d99702e | 38 | def GetType(self, *_args, **_kwargs): |
5a2a9da2 | 39 | val = imagec.wxImageHandler_GetType(self, *_args, **_kwargs) |
cf694132 | 40 | return val |
1d99702e | 41 | def GetMimeType(self, *_args, **_kwargs): |
5a2a9da2 | 42 | val = imagec.wxImageHandler_GetMimeType(self, *_args, **_kwargs) |
cf694132 | 43 | return val |
b5a5d647 | 44 | def CanRead(self, *_args, **_kwargs): |
5a2a9da2 | 45 | val = imagec.wxImageHandler_CanRead(self, *_args, **_kwargs) |
b5a5d647 | 46 | return val |
1d99702e | 47 | def SetName(self, *_args, **_kwargs): |
5a2a9da2 | 48 | val = imagec.wxImageHandler_SetName(self, *_args, **_kwargs) |
cf694132 | 49 | return val |
1d99702e | 50 | def SetExtension(self, *_args, **_kwargs): |
5a2a9da2 | 51 | val = imagec.wxImageHandler_SetExtension(self, *_args, **_kwargs) |
cf694132 | 52 | return val |
1d99702e | 53 | def SetType(self, *_args, **_kwargs): |
5a2a9da2 | 54 | val = imagec.wxImageHandler_SetType(self, *_args, **_kwargs) |
cf694132 | 55 | return val |
1d99702e | 56 | def SetMimeType(self, *_args, **_kwargs): |
5a2a9da2 | 57 | val = imagec.wxImageHandler_SetMimeType(self, *_args, **_kwargs) |
cf694132 RD |
58 | return val |
59 | def __repr__(self): | |
5a2a9da2 | 60 | return "<%s.%s instance; proxy of C++ wxImageHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
cf694132 | 61 | class wxImageHandler(wxImageHandlerPtr): |
9d8bd15f RD |
62 | def __init__(self,this): |
63 | self.this = this | |
cf694132 RD |
64 | |
65 | ||
66 | ||
67 | ||
68 | class wxPNGHandlerPtr(wxImageHandlerPtr): | |
69 | def __init__(self,this): | |
70 | self.this = this | |
71 | self.thisown = 0 | |
72 | def __repr__(self): | |
5a2a9da2 | 73 | return "<%s.%s instance; proxy of C++ wxPNGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
cf694132 | 74 | class wxPNGHandler(wxPNGHandlerPtr): |
1d99702e | 75 | def __init__(self,*_args,**_kwargs): |
5a2a9da2 | 76 | self.this = imagec.new_wxPNGHandler(*_args,**_kwargs) |
cf694132 RD |
77 | self.thisown = 1 |
78 | ||
79 | ||
80 | ||
81 | ||
82 | class wxJPEGHandlerPtr(wxImageHandlerPtr): | |
83 | def __init__(self,this): | |
84 | self.this = this | |
85 | self.thisown = 0 | |
86 | def __repr__(self): | |
5a2a9da2 | 87 | return "<%s.%s instance; proxy of C++ wxJPEGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
cf694132 | 88 | class wxJPEGHandler(wxJPEGHandlerPtr): |
1d99702e | 89 | def __init__(self,*_args,**_kwargs): |
5a2a9da2 | 90 | self.this = imagec.new_wxJPEGHandler(*_args,**_kwargs) |
cf694132 RD |
91 | self.thisown = 1 |
92 | ||
93 | ||
94 | ||
95 | ||
96 | class wxBMPHandlerPtr(wxImageHandlerPtr): | |
97 | def __init__(self,this): | |
98 | self.this = this | |
99 | self.thisown = 0 | |
100 | def __repr__(self): | |
5a2a9da2 | 101 | return "<%s.%s instance; proxy of C++ wxBMPHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
cf694132 | 102 | class wxBMPHandler(wxBMPHandlerPtr): |
1d99702e | 103 | def __init__(self,*_args,**_kwargs): |
5a2a9da2 | 104 | self.this = imagec.new_wxBMPHandler(*_args,**_kwargs) |
cf694132 RD |
105 | self.thisown = 1 |
106 | ||
107 | ||
108 | ||
109 | ||
b5a5d647 RD |
110 | class wxICOHandlerPtr(wxBMPHandlerPtr): |
111 | def __init__(self,this): | |
112 | self.this = this | |
113 | self.thisown = 0 | |
114 | def __repr__(self): | |
5a2a9da2 | 115 | return "<%s.%s instance; proxy of C++ wxICOHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
b5a5d647 RD |
116 | class wxICOHandler(wxICOHandlerPtr): |
117 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 118 | self.this = imagec.new_wxICOHandler(*_args,**_kwargs) |
b5a5d647 RD |
119 | self.thisown = 1 |
120 | ||
121 | ||
122 | ||
123 | ||
68320e40 RD |
124 | class wxCURHandlerPtr(wxICOHandlerPtr): |
125 | def __init__(self,this): | |
126 | self.this = this | |
127 | self.thisown = 0 | |
128 | def __repr__(self): | |
5a2a9da2 | 129 | return "<%s.%s instance; proxy of C++ wxCURHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
68320e40 RD |
130 | class wxCURHandler(wxCURHandlerPtr): |
131 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 132 | self.this = imagec.new_wxCURHandler(*_args,**_kwargs) |
68320e40 RD |
133 | self.thisown = 1 |
134 | ||
135 | ||
136 | ||
137 | ||
138 | class wxANIHandlerPtr(wxCURHandlerPtr): | |
139 | def __init__(self,this): | |
140 | self.this = this | |
141 | self.thisown = 0 | |
142 | def __repr__(self): | |
5a2a9da2 | 143 | return "<%s.%s instance; proxy of C++ wxANIHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
68320e40 RD |
144 | class wxANIHandler(wxANIHandlerPtr): |
145 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 146 | self.this = imagec.new_wxANIHandler(*_args,**_kwargs) |
68320e40 RD |
147 | self.thisown = 1 |
148 | ||
149 | ||
150 | ||
151 | ||
cf694132 RD |
152 | class wxGIFHandlerPtr(wxImageHandlerPtr): |
153 | def __init__(self,this): | |
154 | self.this = this | |
155 | self.thisown = 0 | |
156 | def __repr__(self): | |
5a2a9da2 | 157 | return "<%s.%s instance; proxy of C++ wxGIFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
cf694132 | 158 | class wxGIFHandler(wxGIFHandlerPtr): |
1d99702e | 159 | def __init__(self,*_args,**_kwargs): |
5a2a9da2 | 160 | self.this = imagec.new_wxGIFHandler(*_args,**_kwargs) |
cf694132 RD |
161 | self.thisown = 1 |
162 | ||
163 | ||
164 | ||
165 | ||
06c0fba4 RD |
166 | class wxPNMHandlerPtr(wxImageHandlerPtr): |
167 | def __init__(self,this): | |
168 | self.this = this | |
169 | self.thisown = 0 | |
170 | def __repr__(self): | |
5a2a9da2 | 171 | return "<%s.%s instance; proxy of C++ wxPNMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
06c0fba4 RD |
172 | class wxPNMHandler(wxPNMHandlerPtr): |
173 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 174 | self.this = imagec.new_wxPNMHandler(*_args,**_kwargs) |
06c0fba4 RD |
175 | self.thisown = 1 |
176 | ||
177 | ||
178 | ||
179 | ||
180 | class wxPCXHandlerPtr(wxImageHandlerPtr): | |
181 | def __init__(self,this): | |
182 | self.this = this | |
183 | self.thisown = 0 | |
184 | def __repr__(self): | |
5a2a9da2 | 185 | return "<%s.%s instance; proxy of C++ wxPCXHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
06c0fba4 RD |
186 | class wxPCXHandler(wxPCXHandlerPtr): |
187 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 188 | self.this = imagec.new_wxPCXHandler(*_args,**_kwargs) |
06c0fba4 RD |
189 | self.thisown = 1 |
190 | ||
191 | ||
192 | ||
193 | ||
9b3d3bc4 RD |
194 | class wxTIFFHandlerPtr(wxImageHandlerPtr): |
195 | def __init__(self,this): | |
196 | self.this = this | |
197 | self.thisown = 0 | |
198 | def __repr__(self): | |
5a2a9da2 | 199 | return "<%s.%s instance; proxy of C++ wxTIFFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
9b3d3bc4 RD |
200 | class wxTIFFHandler(wxTIFFHandlerPtr): |
201 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 202 | self.this = imagec.new_wxTIFFHandler(*_args,**_kwargs) |
9b3d3bc4 RD |
203 | self.thisown = 1 |
204 | ||
205 | ||
206 | ||
207 | ||
9416aa89 | 208 | class wxImagePtr(wxObjectPtr): |
cf694132 RD |
209 | def __init__(self,this): |
210 | self.this = this | |
211 | self.thisown = 0 | |
7e50db3f RD |
212 | def __del__(self, delfunc=imagec.delete_wxImage): |
213 | if self.thisown == 1: | |
214 | try: | |
215 | delfunc(self) | |
216 | except: | |
217 | pass | |
1d99702e | 218 | def Create(self, *_args, **_kwargs): |
5a2a9da2 | 219 | val = imagec.wxImage_Create(self, *_args, **_kwargs) |
cf694132 | 220 | return val |
1d99702e | 221 | def Destroy(self, *_args, **_kwargs): |
5a2a9da2 | 222 | val = imagec.wxImage_Destroy(self, *_args, **_kwargs) |
cf694132 | 223 | return val |
1d99702e | 224 | def Scale(self, *_args, **_kwargs): |
5a2a9da2 | 225 | val = imagec.wxImage_Scale(self, *_args, **_kwargs) |
1d99702e | 226 | if val: val = wxImagePtr(val) ; val.thisown = 1 |
cf694132 | 227 | return val |
3856ee0b | 228 | def ShrinkBy(self, *_args, **_kwargs): |
5a2a9da2 | 229 | val = imagec.wxImage_ShrinkBy(self, *_args, **_kwargs) |
3856ee0b RD |
230 | if val: val = wxImagePtr(val) ; val.thisown = 1 |
231 | return val | |
1d99702e | 232 | def Rescale(self, *_args, **_kwargs): |
5a2a9da2 | 233 | val = imagec.wxImage_Rescale(self, *_args, **_kwargs) |
f6bcfd97 | 234 | if val: val = wxImagePtr(val) |
8bf5d46e | 235 | return val |
1d99702e | 236 | def SetRGB(self, *_args, **_kwargs): |
5a2a9da2 | 237 | val = imagec.wxImage_SetRGB(self, *_args, **_kwargs) |
cf694132 | 238 | return val |
1d99702e | 239 | def GetRed(self, *_args, **_kwargs): |
5a2a9da2 | 240 | val = imagec.wxImage_GetRed(self, *_args, **_kwargs) |
cf694132 | 241 | return val |
1d99702e | 242 | def GetGreen(self, *_args, **_kwargs): |
5a2a9da2 | 243 | val = imagec.wxImage_GetGreen(self, *_args, **_kwargs) |
cf694132 | 244 | return val |
1d99702e | 245 | def GetBlue(self, *_args, **_kwargs): |
5a2a9da2 | 246 | val = imagec.wxImage_GetBlue(self, *_args, **_kwargs) |
cf694132 | 247 | return val |
3856ee0b | 248 | def SetAlpha(self, *_args, **_kwargs): |
5a2a9da2 | 249 | val = imagec.wxImage_SetAlpha(self, *_args, **_kwargs) |
3856ee0b RD |
250 | return val |
251 | def GetAlpha(self, *_args, **_kwargs): | |
5a2a9da2 | 252 | val = imagec.wxImage_GetAlpha(self, *_args, **_kwargs) |
3856ee0b RD |
253 | return val |
254 | def HasAlpha(self, *_args, **_kwargs): | |
5a2a9da2 | 255 | val = imagec.wxImage_HasAlpha(self, *_args, **_kwargs) |
3856ee0b | 256 | return val |
68bc8549 | 257 | def FindFirstUnusedColour(self, *_args, **_kwargs): |
5a2a9da2 | 258 | val = imagec.wxImage_FindFirstUnusedColour(self, *_args, **_kwargs) |
68bc8549 RD |
259 | return val |
260 | def SetMaskFromImage(self, *_args, **_kwargs): | |
5a2a9da2 | 261 | val = imagec.wxImage_SetMaskFromImage(self, *_args, **_kwargs) |
68bc8549 | 262 | return val |
1d99702e | 263 | def LoadFile(self, *_args, **_kwargs): |
5a2a9da2 | 264 | val = imagec.wxImage_LoadFile(self, *_args, **_kwargs) |
cf694132 | 265 | return val |
1d99702e | 266 | def LoadMimeFile(self, *_args, **_kwargs): |
5a2a9da2 | 267 | val = imagec.wxImage_LoadMimeFile(self, *_args, **_kwargs) |
cf694132 | 268 | return val |
1d99702e | 269 | def SaveFile(self, *_args, **_kwargs): |
5a2a9da2 | 270 | val = imagec.wxImage_SaveFile(self, *_args, **_kwargs) |
cf694132 | 271 | return val |
1d99702e | 272 | def SaveMimeFile(self, *_args, **_kwargs): |
5a2a9da2 | 273 | val = imagec.wxImage_SaveMimeFile(self, *_args, **_kwargs) |
cf694132 | 274 | return val |
f74ff5ef | 275 | def LoadStream(self, *_args, **_kwargs): |
5a2a9da2 | 276 | val = imagec.wxImage_LoadStream(self, *_args, **_kwargs) |
f74ff5ef RD |
277 | return val |
278 | def LoadMimeStream(self, *_args, **_kwargs): | |
5a2a9da2 | 279 | val = imagec.wxImage_LoadMimeStream(self, *_args, **_kwargs) |
f74ff5ef | 280 | return val |
1d99702e | 281 | def Ok(self, *_args, **_kwargs): |
5a2a9da2 | 282 | val = imagec.wxImage_Ok(self, *_args, **_kwargs) |
cf694132 | 283 | return val |
1d99702e | 284 | def GetWidth(self, *_args, **_kwargs): |
5a2a9da2 | 285 | val = imagec.wxImage_GetWidth(self, *_args, **_kwargs) |
cf694132 | 286 | return val |
1d99702e | 287 | def GetHeight(self, *_args, **_kwargs): |
5a2a9da2 | 288 | val = imagec.wxImage_GetHeight(self, *_args, **_kwargs) |
cf694132 | 289 | return val |
9d8bd15f | 290 | def GetSubImage(self, *_args, **_kwargs): |
5a2a9da2 | 291 | val = imagec.wxImage_GetSubImage(self, *_args, **_kwargs) |
9d8bd15f RD |
292 | if val: val = wxImagePtr(val) ; val.thisown = 1 |
293 | return val | |
f6bcfd97 | 294 | def Copy(self, *_args, **_kwargs): |
5a2a9da2 | 295 | val = imagec.wxImage_Copy(self, *_args, **_kwargs) |
f6bcfd97 BP |
296 | if val: val = wxImagePtr(val) ; val.thisown = 1 |
297 | return val | |
298 | def Paste(self, *_args, **_kwargs): | |
5a2a9da2 | 299 | val = imagec.wxImage_Paste(self, *_args, **_kwargs) |
f6bcfd97 | 300 | return val |
1d99702e | 301 | def GetData(self, *_args, **_kwargs): |
5a2a9da2 | 302 | val = imagec.wxImage_GetData(self, *_args, **_kwargs) |
cf694132 | 303 | return val |
3856ee0b | 304 | def SetData(self, *_args, **_kwargs): |
5a2a9da2 | 305 | val = imagec.wxImage_SetData(self, *_args, **_kwargs) |
3856ee0b RD |
306 | return val |
307 | def GetDataBuffer(self, *_args, **_kwargs): | |
5a2a9da2 | 308 | val = imagec.wxImage_GetDataBuffer(self, *_args, **_kwargs) |
3856ee0b | 309 | return val |
7e50db3f | 310 | def SetDataBuffer(self, *_args, **_kwargs): |
5a2a9da2 | 311 | val = imagec.wxImage_SetDataBuffer(self, *_args, **_kwargs) |
7e50db3f | 312 | return val |
3856ee0b | 313 | def GetAlphaData(self, *_args, **_kwargs): |
5a2a9da2 | 314 | val = imagec.wxImage_GetAlphaData(self, *_args, **_kwargs) |
3856ee0b RD |
315 | return val |
316 | def SetAlphaData(self, *_args, **_kwargs): | |
5a2a9da2 | 317 | val = imagec.wxImage_SetAlphaData(self, *_args, **_kwargs) |
3856ee0b RD |
318 | return val |
319 | def GetAlphaBuffer(self, *_args, **_kwargs): | |
5a2a9da2 | 320 | val = imagec.wxImage_GetAlphaBuffer(self, *_args, **_kwargs) |
3856ee0b RD |
321 | return val |
322 | def SetAlphaBuffer(self, *_args, **_kwargs): | |
5a2a9da2 | 323 | val = imagec.wxImage_SetAlphaBuffer(self, *_args, **_kwargs) |
cf694132 | 324 | return val |
1d99702e | 325 | def SetMaskColour(self, *_args, **_kwargs): |
5a2a9da2 | 326 | val = imagec.wxImage_SetMaskColour(self, *_args, **_kwargs) |
cf694132 | 327 | return val |
1d99702e | 328 | def GetMaskRed(self, *_args, **_kwargs): |
5a2a9da2 | 329 | val = imagec.wxImage_GetMaskRed(self, *_args, **_kwargs) |
cf694132 | 330 | return val |
1d99702e | 331 | def GetMaskGreen(self, *_args, **_kwargs): |
5a2a9da2 | 332 | val = imagec.wxImage_GetMaskGreen(self, *_args, **_kwargs) |
cf694132 | 333 | return val |
1d99702e | 334 | def GetMaskBlue(self, *_args, **_kwargs): |
5a2a9da2 | 335 | val = imagec.wxImage_GetMaskBlue(self, *_args, **_kwargs) |
cf694132 | 336 | return val |
1d99702e | 337 | def SetMask(self, *_args, **_kwargs): |
5a2a9da2 | 338 | val = imagec.wxImage_SetMask(self, *_args, **_kwargs) |
cf694132 | 339 | return val |
1d99702e | 340 | def HasMask(self, *_args, **_kwargs): |
5a2a9da2 | 341 | val = imagec.wxImage_HasMask(self, *_args, **_kwargs) |
cf694132 | 342 | return val |
f6bcfd97 | 343 | def Rotate(self, *_args, **_kwargs): |
5a2a9da2 | 344 | val = imagec.wxImage_Rotate(self, *_args, **_kwargs) |
f6bcfd97 BP |
345 | if val: val = wxImagePtr(val) ; val.thisown = 1 |
346 | return val | |
347 | def Rotate90(self, *_args, **_kwargs): | |
5a2a9da2 | 348 | val = imagec.wxImage_Rotate90(self, *_args, **_kwargs) |
f6bcfd97 BP |
349 | if val: val = wxImagePtr(val) ; val.thisown = 1 |
350 | return val | |
351 | def Mirror(self, *_args, **_kwargs): | |
5a2a9da2 | 352 | val = imagec.wxImage_Mirror(self, *_args, **_kwargs) |
f6bcfd97 BP |
353 | if val: val = wxImagePtr(val) ; val.thisown = 1 |
354 | return val | |
355 | def Replace(self, *_args, **_kwargs): | |
5a2a9da2 | 356 | val = imagec.wxImage_Replace(self, *_args, **_kwargs) |
f6bcfd97 | 357 | return val |
6c0168c9 | 358 | def ConvertToMono(self, *_args, **_kwargs): |
5a2a9da2 | 359 | val = imagec.wxImage_ConvertToMono(self, *_args, **_kwargs) |
6c0168c9 RD |
360 | if val: val = wxImagePtr(val) ; val.thisown = 1 |
361 | return val | |
362 | def SetOption(self, *_args, **_kwargs): | |
5a2a9da2 | 363 | val = imagec.wxImage_SetOption(self, *_args, **_kwargs) |
6c0168c9 RD |
364 | return val |
365 | def SetOptionInt(self, *_args, **_kwargs): | |
5a2a9da2 | 366 | val = imagec.wxImage_SetOptionInt(self, *_args, **_kwargs) |
6c0168c9 RD |
367 | return val |
368 | def GetOption(self, *_args, **_kwargs): | |
5a2a9da2 | 369 | val = imagec.wxImage_GetOption(self, *_args, **_kwargs) |
6c0168c9 RD |
370 | return val |
371 | def GetOptionInt(self, *_args, **_kwargs): | |
5a2a9da2 | 372 | val = imagec.wxImage_GetOptionInt(self, *_args, **_kwargs) |
6c0168c9 RD |
373 | return val |
374 | def HasOption(self, *_args, **_kwargs): | |
5a2a9da2 | 375 | val = imagec.wxImage_HasOption(self, *_args, **_kwargs) |
6c0168c9 | 376 | return val |
f6bcfd97 | 377 | def CountColours(self, *_args, **_kwargs): |
5a2a9da2 | 378 | val = imagec.wxImage_CountColours(self, *_args, **_kwargs) |
f6bcfd97 | 379 | return val |
3856ee0b | 380 | def ComputeHistogram(self, *_args, **_kwargs): |
5a2a9da2 | 381 | val = imagec.wxImage_ComputeHistogram(self, *_args, **_kwargs) |
3856ee0b | 382 | return val |
b96c7a38 | 383 | def ConvertToBitmap(self, *_args, **_kwargs): |
5a2a9da2 | 384 | val = imagec.wxImage_ConvertToBitmap(self, *_args, **_kwargs) |
b96c7a38 RD |
385 | if val: val = wxBitmapPtr(val) ; val.thisown = 1 |
386 | return val | |
387 | def ConvertToMonoBitmap(self, *_args, **_kwargs): | |
5a2a9da2 | 388 | val = imagec.wxImage_ConvertToMonoBitmap(self, *_args, **_kwargs) |
b96c7a38 RD |
389 | if val: val = wxBitmapPtr(val) ; val.thisown = 1 |
390 | return val | |
cf694132 | 391 | def __repr__(self): |
5a2a9da2 RD |
392 | return "<%s.%s instance; proxy of C++ wxImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
393 | def __nonzero__(self): return self.Ok() | |
cf694132 | 394 | class wxImage(wxImagePtr): |
1d99702e | 395 | def __init__(self,*_args,**_kwargs): |
5a2a9da2 | 396 | self.this = imagec.new_wxImage(*_args,**_kwargs) |
cf694132 RD |
397 | self.thisown = 1 |
398 | ||
399 | ||
400 | ||
401 | ||
402 | ||
403 | ||
404 | #-------------- FUNCTION WRAPPERS ------------------ | |
405 | ||
1d99702e | 406 | def wxEmptyImage(*_args, **_kwargs): |
5a2a9da2 | 407 | val = imagec.wxEmptyImage(*_args,**_kwargs) |
1d99702e | 408 | if val: val = wxImagePtr(val); val.thisown = 1 |
cf694132 RD |
409 | return val |
410 | ||
1d99702e | 411 | def wxImageFromMime(*_args, **_kwargs): |
5a2a9da2 | 412 | val = imagec.wxImageFromMime(*_args,**_kwargs) |
1d99702e | 413 | if val: val = wxImagePtr(val); val.thisown = 1 |
cf694132 RD |
414 | return val |
415 | ||
1d99702e | 416 | def wxImageFromBitmap(*_args, **_kwargs): |
5a2a9da2 | 417 | val = imagec.wxImageFromBitmap(*_args,**_kwargs) |
1d99702e | 418 | if val: val = wxImagePtr(val); val.thisown = 1 |
cf694132 RD |
419 | return val |
420 | ||
b5a5d647 | 421 | def wxImageFromData(*_args, **_kwargs): |
5a2a9da2 | 422 | val = imagec.wxImageFromData(*_args,**_kwargs) |
b5a5d647 RD |
423 | if val: val = wxImagePtr(val); val.thisown = 1 |
424 | return val | |
425 | ||
f74ff5ef | 426 | def wxImageFromStream(*_args, **_kwargs): |
5a2a9da2 | 427 | val = imagec.wxImageFromStream(*_args,**_kwargs) |
f74ff5ef RD |
428 | if val: val = wxImagePtr(val); val.thisown = 1 |
429 | return val | |
430 | ||
431 | def wxImageFromStreamMime(*_args, **_kwargs): | |
5a2a9da2 | 432 | val = imagec.wxImageFromStreamMime(*_args,**_kwargs) |
f74ff5ef RD |
433 | if val: val = wxImagePtr(val); val.thisown = 1 |
434 | return val | |
435 | ||
96bfd053 RD |
436 | wxInitAllImageHandlers = imagec.wxInitAllImageHandlers |
437 | ||
926bb76c | 438 | def wxBitmapFromImage(*_args, **_kwargs): |
5a2a9da2 | 439 | val = imagec.wxBitmapFromImage(*_args,**_kwargs) |
926bb76c RD |
440 | if val: val = wxBitmapPtr(val); val.thisown = 1 |
441 | return val | |
442 | ||
3856ee0b RD |
443 | wxImageHistogram_MakeKey = imagec.wxImageHistogram_MakeKey |
444 | ||
96bfd053 RD |
445 | wxImage_CanRead = imagec.wxImage_CanRead |
446 | ||
b5a5d647 RD |
447 | wxImage_GetImageCount = imagec.wxImage_GetImageCount |
448 | ||
f74ff5ef RD |
449 | wxImage_CanReadStream = imagec.wxImage_CanReadStream |
450 | ||
1d99702e | 451 | wxImage_AddHandler = imagec.wxImage_AddHandler |
cf694132 | 452 | |
96bfd053 RD |
453 | wxImage_InsertHandler = imagec.wxImage_InsertHandler |
454 | ||
455 | wxImage_RemoveHandler = imagec.wxImage_RemoveHandler | |
06c0fba4 | 456 | |
5a2a9da2 RD |
457 | wxImage_GetImageExtWildcard = imagec.wxImage_GetImageExtWildcard |
458 | ||
cf694132 RD |
459 | |
460 | ||
461 | #-------------- VARIABLE WRAPPERS ------------------ | |
462 | ||
0a651eb8 RD |
463 | cvar = imagec.cvar |
464 | wxNullImage = wxImagePtr(imagec.cvar.wxNullImage) |