Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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: UNSURE 0.286 X-Spam-Level: ** X-Spam-Evidence: '*H*': 0.44; '*S*': 0.01; 'birmingham': 0.04; 'we?re': 0.07; 'can?t': 0.09; 'kings': 0.16; 'scientist': 0.16; 'thoughts?': 0.16; 'trainee': 0.16; 'received:169.254.1': 0.17; 'foundation': 0.20; 'bit': 0.21; "world's": 0.22; 'image- size:2**11': 0.23; 'proprietary': 0.23; 'received:169.254': 0.24; 'donate': 0.27; 'received:169': 0.29; "we're": 0.30; 'error': 0.30; '+44': 0.30; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'hi,': 0.33; "can't": 0.34; 'text': 0.34; 'robert': 0.35; 'url:org': 0.36; '(i.e.': 0.36; 'author': 0.37; 'best,': 0.37; 'does': 0.37; 'url:rec-html40': 0.37; 'university': 0.38; 'object': 0.38; 'some': 0.38; 'received:10': 0.38; 'to:addr:python.org': 0.39; 'url:schemas': 0.39; 'recipient': 0.39; 'url:office': 0.39; 'url:omml': 0.39; 'url:2004': 0.39; 'url:microsoft': 0.39; 'url:12': 0.40; 'most': 0.61; 'email:': 0.62; 'header:Message-Id:1': 0.62; 'received:62': 0.62; 'received:unknown': 0.63; 'information,': 0.63; 'more': 0.63; 'replying': 0.64; 'virus:src="cid:': 0.64; 'our': 0.65; 'content- type:multipart/related': 0.65; 'tel:': 0.65; 'medical': 0.66; 'e-mail.': 0.71; 'privileged.': 0.72; 'exclusive': 0.81; '7000': 0.84; 'bitmap': 0.84; 'cancer': 0.84; 'clinical': 0.84; 'hospitals': 0.91; 'treatments': 0.91; 'recipient(s)': 0.96 From: Robert Flintham To: "'python-list@python.org'" Date: Mon, 11 Mar 2013 15:32:48 +0000 Subject: Reversing bits in a byte Thread-Topic: Reversing bits in a byte Thread-Index: Ac4eba9cP0XU8xtxQYqEP/Oh8J89OA== OLD-MSG-ID: Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: multipart/related; boundary="_004_DFBB66D7CAE80545A91347000FC76D5E022E672B66BOURNExuhbnhs_"; type="multipart/alternative" MIME-Version: 1.0 X-SEF-7853D99-ADF1-478E-8894-213D316B8FFA: 1 X-SEF-Processed: 7_0_0_00239__2013_03_11_15_32_53 X-TM-AS-Product-Ver: IMSVA-8.0.0.1467-7.0.0.1014-19710.000 X-TM-AS-Result: No--27.056-60-31-10 X-imss-scan-details: No--27.056-60-31-10; No--27.056-3-31-10; No--27.056-5-31-10 X-TMASE-MatchedRID: dwc7yBNXNt6kOIY39zkh2Fu4M/xm4KZee2CgIHOy4NrONhUMZJakH/8w e0DvywmavL0jY9/J+QDmDVJEzjQzH44a2rhHAtuZ4NAJeq9IDSz5826+5i3QhyPysMvA3eOmkkE fVO7kOBlMW01vzhVn6ioaGt8EMcOqGQYzu3DauIMeR+NVTyl6eyEF1RdqrHVdELmxs+COG+AVRz uFxispLmgPILWMmI4XdUAulK0GzSreO/gq9avCxADPuhU4P53KOhJ9m53n4aCabNoYojBQdgFp7 43dPod/WFQNk4+HCoiXavS2BPdgFGoP2Q08Uz0Yw2taljzThMbgYKfhtyF8a/HFoBcOsKezPZ95 /IdkBPSlI8M5Ekwy4wFk6w4YcqmhSOWjYlTyoLGYcl4BgqVyk3G1ZiUO5FClj2iyfwmt0k9o4tO BMzo2OFHmYOVH2m9f9Gbt7SoDe02dZAgB3PpwQiI9MxSOQ6CSLVEjAx3HjK6YI2SdJezB/5398O hZG6ikmZM6T9wsGgeJjFPAALfLGMxbM9+io50WgVMON7AdP4jKIGMaZvT02zssXelfet1U+niRM BSUdQQhJ/ufappeEgxbhcIa1oZUHRcIXG0b6KiqY34nzEPzUiwX8pKdDpsZFMsBbYDXOG8gBwKK RHe+r7Eb/gDLuUirg6r5dfF79lD+fEMAL/bSWBZQuG2Tdp/GWiOykVuh7LE= X-Mailman-Approved-At: Tue, 12 Mar 2013 13:33:47 +0100 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: 193 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363091628 news.xs4all.nl 6977 [2001:888:2000:d::a6]:41893 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41117 --_004_DFBB66D7CAE80545A91347000FC76D5E022E672B66BOURNExuhbnhs_ Content-Type: multipart/alternative; boundary="_000_DFBB66D7CAE80545A91347000FC76D5E022E672B66BOURNExuhbnhs_" --_000_DFBB66D7CAE80545A91347000FC76D5E022E672B66BOURNExuhbnhs_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi,=0D=0A=0D=0AI 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=3F=0D=0A=0D=0AAll the best,=0D=0A= Rob=0D=0A=0D=0A=0D=0ARobert Flintham=0D=0ATrainee Clinical Scientist - MRI=0D= =0ATel:=0D=0A=0D=0A +44 (0)121 371 7000=0D=0A=0D=0AEmail:=0D=0A=0D=0A Rober= t.Flintham@uhb.nhs.uk=0D=0A=0D=0AWeb:=0D=0A=0D=0A http://www.uhb.nhs.uk=0D=0A=0D= =0A=0D=0AWe're bringing the world's most advanced cancer treatments to Birm= ingham.=0D=0AFind out more at www.qecancerappeal.org or text QEHB01 =A35 to 70070 to donate =A35 to our appeal.=0D=0A=0D= =0ARRPPS=0D=0AMedical Physics - University Hospitals Birmingham NHS Foundat= ion Trust=0D=0A63 Melchett Road, Kings Norton,=0D=0ABirmingham, B30 3HP=0D=0A=0D= =0A[cid:image001.gif@01CE1E6D.AF57F9D0]=0D=0ADISCLAIMER:=0D=0AThis email an= d any attachments hereto contains proprietary information, some or all of w= hich may be confidential or legally privileged. It is for the exclusive use= of the intended recipient(s) only. If an addressing or transmission error = has misdirected this e-mail and you are not the intended recipient(s), plea= se notify the author by replying to this e-mail. If you are not the intende= d recipient you must not use, disclose, distribute, copy, print, or rely on= this e-mail or any attachments, as this may be unlawful.=0D=0A --_000_DFBB66D7CAE80545A91347000FC76D5E022E672B66BOURNExuhbnhs_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable