[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Odd QImage behavior
From:       David Boddie <dboddie () trolltech ! com>
Date:       2009-01-29 20:39:48
Message-ID: 200901292139.49140.dboddie () trolltech ! com
[Download RAW message or body]

On Thu Jan 29 19:03:50 GMT 2009, Matt Smith wrote:

> This test case makes two numpy arrays puts a vertical stripe and then
> creates QImages.  Change either dimension to 101 instead of 100 and the
> image doesn't get painted properly.
>
> http://paste.pocoo.org/show/101921/

Right. I haven't tried it yet, but I strongly suspect that you are
encountering the restriction stated in the QImage class documentation:

 "The width and height must be specified in pixels, data must be 32-bit
  aligned, and each scanline of data in the image must also be 32-bit
  aligned."

http://www.riverbankcomputing.com/static/Docs/PyQt4/html/qimage.html#QImage-4

David
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic