1 # This file was created automatically by SWIG.
11 class wxImageHistogramPtr
:
12 def __init__(self
,this
):
15 def FindFirstUnusedColour(self
, *_args
, **_kwargs
):
16 val
= imagec
.wxImageHistogram_FindFirstUnusedColour(self
, *_args
, **_kwargs
)
19 return "<%s.%s instance; proxy of C++ wxImageHistogram instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
20 class wxImageHistogram(wxImageHistogramPtr
):
21 def __init__(self
,*_args
,**_kwargs
):
22 self
.this
= imagec
.new_wxImageHistogram(*_args
,**_kwargs
)
28 class wxImageHandlerPtr(wxObjectPtr
):
29 def __init__(self
,this
):
32 def GetName(self
, *_args
, **_kwargs
):
33 val
= imagec
.wxImageHandler_GetName(self
, *_args
, **_kwargs
)
35 def GetExtension(self
, *_args
, **_kwargs
):
36 val
= imagec
.wxImageHandler_GetExtension(self
, *_args
, **_kwargs
)
38 def GetType(self
, *_args
, **_kwargs
):
39 val
= imagec
.wxImageHandler_GetType(self
, *_args
, **_kwargs
)
41 def GetMimeType(self
, *_args
, **_kwargs
):
42 val
= imagec
.wxImageHandler_GetMimeType(self
, *_args
, **_kwargs
)
44 def CanRead(self
, *_args
, **_kwargs
):
45 val
= imagec
.wxImageHandler_CanRead(self
, *_args
, **_kwargs
)
47 def SetName(self
, *_args
, **_kwargs
):
48 val
= imagec
.wxImageHandler_SetName(self
, *_args
, **_kwargs
)
50 def SetExtension(self
, *_args
, **_kwargs
):
51 val
= imagec
.wxImageHandler_SetExtension(self
, *_args
, **_kwargs
)
53 def SetType(self
, *_args
, **_kwargs
):
54 val
= imagec
.wxImageHandler_SetType(self
, *_args
, **_kwargs
)
56 def SetMimeType(self
, *_args
, **_kwargs
):
57 val
= imagec
.wxImageHandler_SetMimeType(self
, *_args
, **_kwargs
)
60 return "<%s.%s instance; proxy of C++ wxImageHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
61 class wxImageHandler(wxImageHandlerPtr
):
62 def __init__(self
,this
):
68 class wxPNGHandlerPtr(wxImageHandlerPtr
):
69 def __init__(self
,this
):
73 return "<%s.%s instance; proxy of C++ wxPNGHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
74 class wxPNGHandler(wxPNGHandlerPtr
):
75 def __init__(self
,*_args
,**_kwargs
):
76 self
.this
= imagec
.new_wxPNGHandler(*_args
,**_kwargs
)
82 class wxJPEGHandlerPtr(wxImageHandlerPtr
):
83 def __init__(self
,this
):
87 return "<%s.%s instance; proxy of C++ wxJPEGHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
88 class wxJPEGHandler(wxJPEGHandlerPtr
):
89 def __init__(self
,*_args
,**_kwargs
):
90 self
.this
= imagec
.new_wxJPEGHandler(*_args
,**_kwargs
)
96 class wxBMPHandlerPtr(wxImageHandlerPtr
):
97 def __init__(self
,this
):
101 return "<%s.%s instance; proxy of C++ wxBMPHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
102 class wxBMPHandler(wxBMPHandlerPtr
):
103 def __init__(self
,*_args
,**_kwargs
):
104 self
.this
= imagec
.new_wxBMPHandler(*_args
,**_kwargs
)
110 class wxICOHandlerPtr(wxBMPHandlerPtr
):
111 def __init__(self
,this
):
115 return "<%s.%s instance; proxy of C++ wxICOHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
116 class wxICOHandler(wxICOHandlerPtr
):
117 def __init__(self
,*_args
,**_kwargs
):
118 self
.this
= imagec
.new_wxICOHandler(*_args
,**_kwargs
)
124 class wxCURHandlerPtr(wxICOHandlerPtr
):
125 def __init__(self
,this
):
129 return "<%s.%s instance; proxy of C++ wxCURHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
130 class wxCURHandler(wxCURHandlerPtr
):
131 def __init__(self
,*_args
,**_kwargs
):
132 self
.this
= imagec
.new_wxCURHandler(*_args
,**_kwargs
)
138 class wxANIHandlerPtr(wxCURHandlerPtr
):
139 def __init__(self
,this
):
143 return "<%s.%s instance; proxy of C++ wxANIHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
144 class wxANIHandler(wxANIHandlerPtr
):
145 def __init__(self
,*_args
,**_kwargs
):
146 self
.this
= imagec
.new_wxANIHandler(*_args
,**_kwargs
)
152 class wxGIFHandlerPtr(wxImageHandlerPtr
):
153 def __init__(self
,this
):
157 return "<%s.%s instance; proxy of C++ wxGIFHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
158 class wxGIFHandler(wxGIFHandlerPtr
):
159 def __init__(self
,*_args
,**_kwargs
):
160 self
.this
= imagec
.new_wxGIFHandler(*_args
,**_kwargs
)
166 class wxPNMHandlerPtr(wxImageHandlerPtr
):
167 def __init__(self
,this
):
171 return "<%s.%s instance; proxy of C++ wxPNMHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
172 class wxPNMHandler(wxPNMHandlerPtr
):
173 def __init__(self
,*_args
,**_kwargs
):
174 self
.this
= imagec
.new_wxPNMHandler(*_args
,**_kwargs
)
180 class wxPCXHandlerPtr(wxImageHandlerPtr
):
181 def __init__(self
,this
):
185 return "<%s.%s instance; proxy of C++ wxPCXHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
186 class wxPCXHandler(wxPCXHandlerPtr
):
187 def __init__(self
,*_args
,**_kwargs
):
188 self
.this
= imagec
.new_wxPCXHandler(*_args
,**_kwargs
)
194 class wxTIFFHandlerPtr(wxImageHandlerPtr
):
195 def __init__(self
,this
):
199 return "<%s.%s instance; proxy of C++ wxTIFFHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
200 class wxTIFFHandler(wxTIFFHandlerPtr
):
201 def __init__(self
,*_args
,**_kwargs
):
202 self
.this
= imagec
.new_wxTIFFHandler(*_args
,**_kwargs
)
208 class wxImagePtr(wxObjectPtr
):
209 def __init__(self
,this
):
212 def __del__(self
, delfunc
=imagec
.delete_wxImage
):
213 if self
.thisown
== 1:
218 def Create(self
, *_args
, **_kwargs
):
219 val
= imagec
.wxImage_Create(self
, *_args
, **_kwargs
)
221 def Destroy(self
, *_args
, **_kwargs
):
222 val
= imagec
.wxImage_Destroy(self
, *_args
, **_kwargs
)
224 def Scale(self
, *_args
, **_kwargs
):
225 val
= imagec
.wxImage_Scale(self
, *_args
, **_kwargs
)
226 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
228 def ShrinkBy(self
, *_args
, **_kwargs
):
229 val
= imagec
.wxImage_ShrinkBy(self
, *_args
, **_kwargs
)
230 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
232 def Rescale(self
, *_args
, **_kwargs
):
233 val
= imagec
.wxImage_Rescale(self
, *_args
, **_kwargs
)
234 if val
: val
= wxImagePtr(val
)
236 def SetRGB(self
, *_args
, **_kwargs
):
237 val
= imagec
.wxImage_SetRGB(self
, *_args
, **_kwargs
)
239 def GetRed(self
, *_args
, **_kwargs
):
240 val
= imagec
.wxImage_GetRed(self
, *_args
, **_kwargs
)
242 def GetGreen(self
, *_args
, **_kwargs
):
243 val
= imagec
.wxImage_GetGreen(self
, *_args
, **_kwargs
)
245 def GetBlue(self
, *_args
, **_kwargs
):
246 val
= imagec
.wxImage_GetBlue(self
, *_args
, **_kwargs
)
248 def SetAlpha(self
, *_args
, **_kwargs
):
249 val
= imagec
.wxImage_SetAlpha(self
, *_args
, **_kwargs
)
251 def GetAlpha(self
, *_args
, **_kwargs
):
252 val
= imagec
.wxImage_GetAlpha(self
, *_args
, **_kwargs
)
254 def HasAlpha(self
, *_args
, **_kwargs
):
255 val
= imagec
.wxImage_HasAlpha(self
, *_args
, **_kwargs
)
257 def FindFirstUnusedColour(self
, *_args
, **_kwargs
):
258 val
= imagec
.wxImage_FindFirstUnusedColour(self
, *_args
, **_kwargs
)
260 def SetMaskFromImage(self
, *_args
, **_kwargs
):
261 val
= imagec
.wxImage_SetMaskFromImage(self
, *_args
, **_kwargs
)
263 def LoadFile(self
, *_args
, **_kwargs
):
264 val
= imagec
.wxImage_LoadFile(self
, *_args
, **_kwargs
)
266 def LoadMimeFile(self
, *_args
, **_kwargs
):
267 val
= imagec
.wxImage_LoadMimeFile(self
, *_args
, **_kwargs
)
269 def SaveFile(self
, *_args
, **_kwargs
):
270 val
= imagec
.wxImage_SaveFile(self
, *_args
, **_kwargs
)
272 def SaveMimeFile(self
, *_args
, **_kwargs
):
273 val
= imagec
.wxImage_SaveMimeFile(self
, *_args
, **_kwargs
)
275 def LoadStream(self
, *_args
, **_kwargs
):
276 val
= imagec
.wxImage_LoadStream(self
, *_args
, **_kwargs
)
278 def LoadMimeStream(self
, *_args
, **_kwargs
):
279 val
= imagec
.wxImage_LoadMimeStream(self
, *_args
, **_kwargs
)
281 def Ok(self
, *_args
, **_kwargs
):
282 val
= imagec
.wxImage_Ok(self
, *_args
, **_kwargs
)
284 def GetWidth(self
, *_args
, **_kwargs
):
285 val
= imagec
.wxImage_GetWidth(self
, *_args
, **_kwargs
)
287 def GetHeight(self
, *_args
, **_kwargs
):
288 val
= imagec
.wxImage_GetHeight(self
, *_args
, **_kwargs
)
290 def GetSubImage(self
, *_args
, **_kwargs
):
291 val
= imagec
.wxImage_GetSubImage(self
, *_args
, **_kwargs
)
292 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
294 def Copy(self
, *_args
, **_kwargs
):
295 val
= imagec
.wxImage_Copy(self
, *_args
, **_kwargs
)
296 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
298 def Paste(self
, *_args
, **_kwargs
):
299 val
= imagec
.wxImage_Paste(self
, *_args
, **_kwargs
)
301 def GetData(self
, *_args
, **_kwargs
):
302 val
= imagec
.wxImage_GetData(self
, *_args
, **_kwargs
)
304 def SetData(self
, *_args
, **_kwargs
):
305 val
= imagec
.wxImage_SetData(self
, *_args
, **_kwargs
)
307 def GetDataBuffer(self
, *_args
, **_kwargs
):
308 val
= imagec
.wxImage_GetDataBuffer(self
, *_args
, **_kwargs
)
310 def SetDataBuffer(self
, *_args
, **_kwargs
):
311 val
= imagec
.wxImage_SetDataBuffer(self
, *_args
, **_kwargs
)
313 def GetAlphaData(self
, *_args
, **_kwargs
):
314 val
= imagec
.wxImage_GetAlphaData(self
, *_args
, **_kwargs
)
316 def SetAlphaData(self
, *_args
, **_kwargs
):
317 val
= imagec
.wxImage_SetAlphaData(self
, *_args
, **_kwargs
)
319 def GetAlphaBuffer(self
, *_args
, **_kwargs
):
320 val
= imagec
.wxImage_GetAlphaBuffer(self
, *_args
, **_kwargs
)
322 def SetAlphaBuffer(self
, *_args
, **_kwargs
):
323 val
= imagec
.wxImage_SetAlphaBuffer(self
, *_args
, **_kwargs
)
325 def SetMaskColour(self
, *_args
, **_kwargs
):
326 val
= imagec
.wxImage_SetMaskColour(self
, *_args
, **_kwargs
)
328 def GetMaskRed(self
, *_args
, **_kwargs
):
329 val
= imagec
.wxImage_GetMaskRed(self
, *_args
, **_kwargs
)
331 def GetMaskGreen(self
, *_args
, **_kwargs
):
332 val
= imagec
.wxImage_GetMaskGreen(self
, *_args
, **_kwargs
)
334 def GetMaskBlue(self
, *_args
, **_kwargs
):
335 val
= imagec
.wxImage_GetMaskBlue(self
, *_args
, **_kwargs
)
337 def SetMask(self
, *_args
, **_kwargs
):
338 val
= imagec
.wxImage_SetMask(self
, *_args
, **_kwargs
)
340 def HasMask(self
, *_args
, **_kwargs
):
341 val
= imagec
.wxImage_HasMask(self
, *_args
, **_kwargs
)
343 def Rotate(self
, *_args
, **_kwargs
):
344 val
= imagec
.wxImage_Rotate(self
, *_args
, **_kwargs
)
345 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
347 def Rotate90(self
, *_args
, **_kwargs
):
348 val
= imagec
.wxImage_Rotate90(self
, *_args
, **_kwargs
)
349 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
351 def Mirror(self
, *_args
, **_kwargs
):
352 val
= imagec
.wxImage_Mirror(self
, *_args
, **_kwargs
)
353 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
355 def Replace(self
, *_args
, **_kwargs
):
356 val
= imagec
.wxImage_Replace(self
, *_args
, **_kwargs
)
358 def ConvertToMono(self
, *_args
, **_kwargs
):
359 val
= imagec
.wxImage_ConvertToMono(self
, *_args
, **_kwargs
)
360 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
362 def SetOption(self
, *_args
, **_kwargs
):
363 val
= imagec
.wxImage_SetOption(self
, *_args
, **_kwargs
)
365 def SetOptionInt(self
, *_args
, **_kwargs
):
366 val
= imagec
.wxImage_SetOptionInt(self
, *_args
, **_kwargs
)
368 def GetOption(self
, *_args
, **_kwargs
):
369 val
= imagec
.wxImage_GetOption(self
, *_args
, **_kwargs
)
371 def GetOptionInt(self
, *_args
, **_kwargs
):
372 val
= imagec
.wxImage_GetOptionInt(self
, *_args
, **_kwargs
)
374 def HasOption(self
, *_args
, **_kwargs
):
375 val
= imagec
.wxImage_HasOption(self
, *_args
, **_kwargs
)
377 def CountColours(self
, *_args
, **_kwargs
):
378 val
= imagec
.wxImage_CountColours(self
, *_args
, **_kwargs
)
380 def ComputeHistogram(self
, *_args
, **_kwargs
):
381 val
= imagec
.wxImage_ComputeHistogram(self
, *_args
, **_kwargs
)
383 def ConvertToBitmap(self
, *_args
, **_kwargs
):
384 val
= imagec
.wxImage_ConvertToBitmap(self
, *_args
, **_kwargs
)
385 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
387 def ConvertToMonoBitmap(self
, *_args
, **_kwargs
):
388 val
= imagec
.wxImage_ConvertToMonoBitmap(self
, *_args
, **_kwargs
)
389 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
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()
394 class wxImage(wxImagePtr
):
395 def __init__(self
,*_args
,**_kwargs
):
396 self
.this
= imagec
.new_wxImage(*_args
,**_kwargs
)
404 #-------------- FUNCTION WRAPPERS ------------------
406 def wxEmptyImage(*_args
, **_kwargs
):
407 val
= imagec
.wxEmptyImage(*_args
,**_kwargs
)
408 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
411 def wxImageFromMime(*_args
, **_kwargs
):
412 val
= imagec
.wxImageFromMime(*_args
,**_kwargs
)
413 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
416 def wxImageFromBitmap(*_args
, **_kwargs
):
417 val
= imagec
.wxImageFromBitmap(*_args
,**_kwargs
)
418 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
421 def wxImageFromData(*_args
, **_kwargs
):
422 val
= imagec
.wxImageFromData(*_args
,**_kwargs
)
423 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
426 def wxImageFromStream(*_args
, **_kwargs
):
427 val
= imagec
.wxImageFromStream(*_args
,**_kwargs
)
428 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
431 def wxImageFromStreamMime(*_args
, **_kwargs
):
432 val
= imagec
.wxImageFromStreamMime(*_args
,**_kwargs
)
433 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
436 wxInitAllImageHandlers
= imagec
.wxInitAllImageHandlers
438 def wxBitmapFromImage(*_args
, **_kwargs
):
439 val
= imagec
.wxBitmapFromImage(*_args
,**_kwargs
)
440 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
443 wxImageHistogram_MakeKey
= imagec
.wxImageHistogram_MakeKey
445 wxImage_CanRead
= imagec
.wxImage_CanRead
447 wxImage_GetImageCount
= imagec
.wxImage_GetImageCount
449 wxImage_CanReadStream
= imagec
.wxImage_CanReadStream
451 wxImage_AddHandler
= imagec
.wxImage_AddHandler
453 wxImage_InsertHandler
= imagec
.wxImage_InsertHandler
455 wxImage_RemoveHandler
= imagec
.wxImage_RemoveHandler
457 wxImage_GetImageExtWildcard
= imagec
.wxImage_GetImageExtWildcard
461 #-------------- VARIABLE WRAPPERS ------------------
464 wxNullImage
= wxImagePtr(imagec
.cvar
.wxNullImage
)