I am trying to use PythonMagick (which has zero documenation) to convert an Image to a WxImage.
I found this site: http://wiki.wxpython.org/WorkingWithIma ... Library.29
It gives the following example:
Code: Select all
def convertMGtoWX(self, magickimage):
img = PythonMagick.Image(magickimage) # make copy
img.depth = 8 # change depth only for display
img.magick = "RGB"
data = img.data
wximg = wx.wxEmptyImage(img.columns(), img.rows())
wximg.SetData(data)
return wximg
This seems to be correct, when I look at the Image class, I see no "data".
How can I get the raw data of the image in an array?