If we are speaking about images that do have colour tables (8 bit or less), then use QImage::colorTable() to retrieve it and create table items out of it. If the image is 24b deep, you'll need to iterate the image using QImage::pixel() and build the colour table yourself.





Reply With Quote

Bookmarks