wx.Image, create from RGB data

Hello,

···

On 7/11/08, Torsten Mohr tmohr@s.netic.de wrote:

Hi,

i have a library that creates a picture as RGB data. Of course i
also have width and height.

How can i display that picture using wxPython?

As i write that library i can add some C glue code.

But as wx.Image.GetData() does not seem to return anything i don’t know
how i could possibly transfer the data to a wx.Image or wx.Bitmap.

see:

wx.ImageFromData

wx.ImageFromDataWithAlpha

wx.Bitmap.CopyFromBuffer

cody