Home > OS >  Qt GIF creation: Colours swapped when using gif-h library
Qt GIF creation: Colours swapped when using gif-h library

Time:10-14

Apparently, I am trying to use image1
becomes below blue frame
image2
and same goes for other way round (i.e. blue frame becomes red frame).

Just like above, below orange frame
image3
becomes below sky blue frame
image4
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.

CodePudding user response:

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.

  • Related