Apparently, I am trying to use gif-h library for gif creation with qt 4.7 for a C++ project. After embedding the library to the project, I can generate GIF through my qt GUI app, however, the colours on the final/actual GIF are swapped. What I mean is that:
below red frame
becomes below blue frame
and same goes for other way round (i.e. blue frame becomes red frame).
Just like above, below orange frame
becomes below sky blue frame
and same goes for other way round (i.e. sky blue frame becomes orange frame).
Could someone familiar with the library or graphics or gif creation in code guide me?
I am happy to provide more information about image capturing and such, as and when needed.
Thank you in advance.
Ok, I have managed to resolve the problem by using QImage::rgbSwapped() function. Thank you to @Pablo Yaggi particularly for the hint.
I will have to remove the code snippet from the question due to security reasons.