I can load a JPEG image, convert it to bitmap and plot it in a wx application. I am having however a hard time in converting a PIL image object into a bitmap that can be plotted into a wx application.
Online, the best suggestion I could find is to do something like
wx.Bitmap(PIL_image.tobytes())
However, this gives me the following error
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 59: invalid start byte
or
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 51: invalid continuation byte
Has someone a good hint on how to address this point? Thanks!