Reversing bits in a byte

Robert Flintham Robert.Flintham at uhb.nhs.uk
Mon Mar 11 11:32:48 EDT 2013


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


Robert Flintham
Trainee Clinical Scientist - MRI
Tel:

 +44 (0)121 371 7000

Email:

 Robert.Flintham at uhb.nhs.uk

Web:

 http://www.uhb.nhs.uk


We're bringing the world's most advanced cancer treatments to Birmingham.
Find out more at www.qecancerappeal.org<http://www.qecancerappeal.org> or text QEHB01 £5 to 70070 to donate £5 to our appeal.

RRPPS
Medical Physics - University Hospitals Birmingham NHS Foundation Trust
63 Melchett Road, Kings Norton,
Birmingham, B30 3HP

[cid:image001.gif at 01CE1E6D.AF57F9D0]
DISCLAIMER:
This email and any attachments hereto contains proprietary information, some or all of which 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), please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail or any attachments, as this may be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130311/9391a7b4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1941 bytes
Desc: image001.gif
URL: <http://mail.python.org/pipermail/python-list/attachments/20130311/9391a7b4/attachment.gif>


More information about the Python-list mailing list