[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] QImage in BI24 format
From: David Cortesi <davecortesi () gmail ! com>
Date: 2012-09-19 2:33:54
Message-ID: CALyzANvHDZ_-R2aKqM1bWNDk+4k-1aCOQ2Z64DR3scYB_enRPQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
>
> 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.
[Attachment #5 (text/html)]
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex" class="gmail_quote">I have a C-library creating an \
image supposedly in in BI24 format (video<br> application)<br><br>
Now I'd like to display the image.<br><br>
I tried to set the pixel format to QImage.Format_RGB888<br><br>
and I can see the image.<br>
However the red and blue colors are inversed.<br></blockquote>
<br>I don't know if this will help, but maybe.<br><br>I was displaying some \
grayscale PNG files and sometimes for no reason they would show black and white \
reversed (or inverted).<br><br>I changed the ImageConversionFlag argument from the \
default of Qt.AutoColor to Qt.ColorOnly and the inversion no longer happened.<br>
<br>
_______________________________________________
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