Re: [pygtk] Convert RGBA to BGRA using standard library?



towb celvina de wrote:

I may be misunderstanding, but you just want to swap some bytes? And the only
problem is performance due to strings being immutable? Try
http://docs.python.org/library/array.html

I don't want to swap *all* of the bytes, only exchange the R and B,
so array.byteswap() isn't quite right. However, you've got me
thinking about a potential solution using the array module,
thanks.

--
Greg


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]