Re: [pygtk] Convert RGBA to BGRA using standard library?
- From: Greg Ewing <greg ewing canterbury ac nz>
- To: Gtk+ list <gtk-list gnome org>
- Subject: Re: [pygtk] Convert RGBA to BGRA using standard library?
- Date: Sun, 29 May 2011 12:05:37 +1200
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]