]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/image.py
1 # This file was created automatically by SWIG.
7 class wxImageHandlerPtr
:
8 def __init__(self
,this
):
12 val
= imagec
.wxImageHandler_GetName(self
.this
)
14 def GetExtension(self
):
15 val
= imagec
.wxImageHandler_GetExtension(self
.this
)
18 val
= imagec
.wxImageHandler_GetType(self
.this
)
20 def GetMimeType(self
):
21 val
= imagec
.wxImageHandler_GetMimeType(self
.this
)
23 def SetName(self
,arg0
):
24 val
= imagec
.wxImageHandler_SetName(self
.this
,arg0
)
26 def SetExtension(self
,arg0
):
27 val
= imagec
.wxImageHandler_SetExtension(self
.this
,arg0
)
29 def SetType(self
,arg0
):
30 val
= imagec
.wxImageHandler_SetType(self
.this
,arg0
)
32 def SetMimeType(self
,arg0
):
33 val
= imagec
.wxImageHandler_SetMimeType(self
.this
,arg0
)
36 return "<C wxImageHandler instance>"
37 class wxImageHandler(wxImageHandlerPtr
):
39 self
.this
= imagec
.new_wxImageHandler()
45 class wxPNGHandlerPtr(wxImageHandlerPtr
):
46 def __init__(self
,this
):
50 return "<C wxPNGHandler instance>"
51 class wxPNGHandler(wxPNGHandlerPtr
):
53 self
.this
= imagec
.new_wxPNGHandler()
59 class wxJPEGHandlerPtr(wxImageHandlerPtr
):
60 def __init__(self
,this
):
64 return "<C wxJPEGHandler instance>"
65 class wxJPEGHandler(wxJPEGHandlerPtr
):
67 self
.this
= imagec
.new_wxJPEGHandler()
73 class wxBMPHandlerPtr(wxImageHandlerPtr
):
74 def __init__(self
,this
):
78 return "<C wxBMPHandler instance>"
79 class wxBMPHandler(wxBMPHandlerPtr
):
81 self
.this
= imagec
.new_wxBMPHandler()
87 class wxGIFHandlerPtr(wxImageHandlerPtr
):
88 def __init__(self
,this
):
92 return "<C wxGIFHandler instance>"
93 class wxGIFHandler(wxGIFHandlerPtr
):
95 self
.this
= imagec
.new_wxGIFHandler()
102 def __init__(self
,this
):
106 if self
.thisown
== 1 :
107 imagec
.delete_wxImage(self
.this
)
108 def ConvertToBitmap(self
):
109 val
= imagec
.wxImage_ConvertToBitmap(self
.this
)
110 val
= wxBitmapPtr(val
)
113 def Create(self
,arg0
,arg1
):
114 val
= imagec
.wxImage_Create(self
.this
,arg0
,arg1
)
117 val
= imagec
.wxImage_Destroy(self
.this
)
119 def Scale(self
,arg0
,arg1
):
120 val
= imagec
.wxImage_Scale(self
.this
,arg0
,arg1
)
121 val
= wxImagePtr(val
)
124 def SetRGB(self
,arg0
,arg1
,arg2
,arg3
,arg4
):
125 val
= imagec
.wxImage_SetRGB(self
.this
,arg0
,arg1
,arg2
,arg3
,arg4
)
127 def GetRed(self
,arg0
,arg1
):
128 val
= imagec
.wxImage_GetRed(self
.this
,arg0
,arg1
)
130 def GetGreen(self
,arg0
,arg1
):
131 val
= imagec
.wxImage_GetGreen(self
.this
,arg0
,arg1
)
133 def GetBlue(self
,arg0
,arg1
):
134 val
= imagec
.wxImage_GetBlue(self
.this
,arg0
,arg1
)
136 def LoadFile(self
,arg0
,*args
):
137 val
= apply(imagec
.wxImage_LoadFile
,(self
.this
,arg0
,)+args
)
139 def LoadMimeFile(self
,arg0
,arg1
):
140 val
= imagec
.wxImage_LoadMimeFile(self
.this
,arg0
,arg1
)
142 def SaveFile(self
,arg0
,arg1
):
143 val
= imagec
.wxImage_SaveFile(self
.this
,arg0
,arg1
)
145 def SaveMimeFile(self
,arg0
,arg1
):
146 val
= imagec
.wxImage_SaveMimeFile(self
.this
,arg0
,arg1
)
149 val
= imagec
.wxImage_Ok(self
.this
)
152 val
= imagec
.wxImage_GetWidth(self
.this
)
155 val
= imagec
.wxImage_GetHeight(self
.this
)
158 val
= imagec
.wxImage_GetData(self
.this
)
160 def SetData(self
,arg0
):
161 val
= imagec
.wxImage_SetData(self
.this
,arg0
)
163 def SetMaskColour(self
,arg0
,arg1
,arg2
):
164 val
= imagec
.wxImage_SetMaskColour(self
.this
,arg0
,arg1
,arg2
)
166 def GetMaskRed(self
):
167 val
= imagec
.wxImage_GetMaskRed(self
.this
)
169 def GetMaskGreen(self
):
170 val
= imagec
.wxImage_GetMaskGreen(self
.this
)
172 def GetMaskBlue(self
):
173 val
= imagec
.wxImage_GetMaskBlue(self
.this
)
175 def SetMask(self
,*args
):
176 val
= apply(imagec
.wxImage_SetMask
,(self
.this
,)+args
)
179 val
= imagec
.wxImage_HasMask(self
.this
)
182 return "<C wxImage instance>"
183 class wxImage(wxImagePtr
):
184 def __init__(self
,arg0
,*args
) :
185 self
.this
= apply(imagec
.new_wxImage
,(arg0
,)+args
)
193 #-------------- FUNCTION WRAPPERS ------------------
196 val
= imagec
.wxNullImage()
197 val
= wxImagePtr(val
)
201 def wxEmptyImage(arg0
,arg1
):
202 val
= imagec
.wxEmptyImage(arg0
,arg1
)
203 val
= wxImagePtr(val
)
207 def wxImageFromMime(arg0
,arg1
):
208 val
= imagec
.wxImageFromMime(arg0
,arg1
)
209 val
= wxImagePtr(val
)
213 def wxImageFromBitmap(arg0
):
214 val
= imagec
.wxImageFromBitmap(arg0
.this
)
215 val
= wxImagePtr(val
)
219 def wxImage_AddHandler(arg0
):
220 val
= imagec
.wxImage_AddHandler(arg0
.this
)
225 #-------------- VARIABLE WRAPPERS ------------------