>
> I have a C-library creating an image supposedly in in BI24 format (video
> application)
>
> Now I'd like to display the image.
>
> I tried to set the pixel format to QImage.Format_RGB888
>
> and I can see the image.
> However the red and blue colors are inversed.
>

I don't know if this will help, but maybe.

I was displaying some grayscale PNG files and sometimes for no reason they
would show black and white reversed (or inverted).

I changed the ImageConversionFlag argument from the default of Qt.AutoColor
to Qt.ColorOnly and the inversion no longer happened.
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to