Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'python,': 0.02; 'pop': 0.05; 'question?': 0.09; 'gui': 0.11; 'library': 0.15; '11:32': 0.16; 'qt,': 0.16; 'those,': 0.16; 'thoughts?': 0.16; 'wrote:': 0.17; 'specify': 0.17; 'bit': 0.21; 'os,': 0.22; 'somebody': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'to?': 0.27; 'probably': 0.29; 'etc.)': 0.32; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'version': 0.34; "can't": 0.34; 'robert': 0.35; 'but': 0.36; '(i.e.': 0.36; 'best,': 0.37; 'does': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'more': 0.63; 'importantly,': 0.65; 'subject': 0.66; 'answer.': 0.71; 'received:74.208': 0.71; 'bitmap': 0.84; 'relate': 0.91 Date: Tue, 12 Mar 2013 08:46:39 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Reversing bits in a byte References: <20130311153254.078484489A7@nhs-pd1e-esg101.ad1.nhs.net> In-Reply-To: <20130311153254.078484489A7@nhs-pd1e-esg101.ad1.nhs.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:/+1i098RN5RdhE0EFsB4tvCMvfKgLag8Mmpt07FUxJj uOgFNQY+T8oCaMsrEtZG83/ippGjyHxqmoUTeu6pLid/2C88xd 4xhQcyXybAH31Cd04PHO1Zas2V05I41GnqIGVBYTE7a76kZUPU XdAp8FDA0KRIKIpajIp1PCLKIJYUjFOl+OHjgV5ZqMOCQiXG0Y lT3opAWmmKTXgPejwnAPGIEt+eBJVBbVAN7mTbIUDKRYcoTW/+ VzLagECM602PpUgwWqU+UXcRGVnRKHEmziHj26DepsSzHFrpM3 +F5rellI9qdmXnW3wVbfDJj+m2//kgajTZqEOgmTtzLKtz19A= = X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363092418 news.xs4all.nl 6921 [2001:888:2000:d::a6]:46078 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41118 On 03/11/2013 11:32 AM, Robert Flintham wrote: > Hi, > > I have a 'bytes' object which contains a simple bitmap image (i.e. 1 bit per pixel). I can't work out how I would go about displaying this image. Does anyone have any thoughts? > > All the best, > Rob > > How does your subject line relate to your question? But more importantly, what version of Python, what OS, and which GUI library (wxpython, qt, etc.) are you used to? Specify those, and somebody familiar with that particular library will probably pop up with an answer. -- DaveA