Hi, I am trying to display 16-bit PGMs using QPixmap.loadFromData(), but the resulting image looks as if it's being read as an 8-bit PGM. How do I force PySide (or is it a Qt problem?) to load the data as 16 bits?
The PGM can be viewed fine using ImageMagick's display utility. According to the PGM spec (http://netpbm.sourceforge.net/doc/pgm.html) the Maxval line in the PGM header should hint that it's a 16-bit PGM (my Maxval is 4095, since 12 of the 16 bits are being used for grayscale value). Thanks, -geordan
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
