Convert it to image using QPixmap::toImage() and then use QImage::convertToFormat() to convert it to QImage::Format_Indexed8. Then you might need to adjust the palette.
Convert it to image using QPixmap::toImage() and then use QImage::convertToFormat() to convert it to QImage::Format_Indexed8. Then you might need to adjust the palette.
Thanks,
I have used another way. I created the image with Width and Height and Indexed palette, then I just copied the image buffer to the QImage buffer. Now I only just have to invert the copy process because the Bitmaps are stored inverted by line.
Thanks,
Òscar Llarch i Galán
Bookmarks