X11 bitmap image conversion problem

Discussion in 'Python' started by Craig, Dec 6, 2006.

  1. Craig

    Craig Guest

    Hi there,

    This could be a curly question. When I created the x11 bitmap image
    using the im.tobitmap() function I found out later that the display
    information in the array is big endian (I think) but I want little
    endian. Basically if an image byte in the X11 format is 00111101
    (0x3D), I want 10111100(0xBC). Is there an easy way to flip the bits
    after the im.tobitmap() conversion has been done or do I have to find
    another way? If you could help that would be greatly appreciated.
    Thanks and good luck.

    Craig, Dec 6, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.