Re: [Vnc2swf-users] Project Future
Status: Alpha
Brought to you by:
euske
From: Werner F. B. <wer...@fr...> - 2009-04-17 11:51:06
|
Matthias Sweertvaegher wrote: ... >> Probably the most expensive part in the current pyvnc2swf >> implementation is >> just to convert the whole bitmap into another format. >> >> More specifically, look at line 61 in image.py: >> >> def create_image_from_string_argb(w, h, data): >> data = ''.join([ data[i+1]+data[i+2]+data[i+3]+data[i] for >> i in xrange(0, len(data), 4) ]) >> return pygame.image.fromstring(data, (w, h), 'RGBA') >> Could something like pil.image.frombuffer or pil.image.fromstring help here (pil = Python Imaging Library). O.K. this would be a dependency but to me this would be better then having some custom c/c++ code. Werner |