PDA

View Full Version : QImage Non-Standard Format Probem



photo_tom
18th February 2010, 16:01
I'm working on a project that needs a rasterized image in a very odd format.

Project Required Format - RRGGBB00
QImage::Format_RGB888 - 00RRGGBB

So the RGB888 format is "almost" what I need. Does anyone know if QT has a way to convert to the format this project is looking for from a standard fromat?

high_flyer
18th February 2010, 16:20
Did you try using QImage::InvertRgba?
http://doc.trolltech.com/4.6/qimage.html#InvertMode-enum

photo_tom
18th February 2010, 16:35
Did you try using QImage::InvertRgba?
http://doc.trolltech.com/4.6/qimage.html#InvertMode-enum

It just inverts in image color. It does not do any byte swaping. Also looked at swap and that only swaps the red and blue channels.

high_flyer
19th February 2010, 08:06
EDIT:
It does change each channel, but inverts it, not swaps it, so this indeed wont help you...