Answer the question
In order to leave comments, you need to log in
How to mask different bits of QImage?
The question is, there is a large file, let's say over 100mb. I map this file and then create a QImage (map data, width, height, greyscale8 format). The final action, I install the pixmap of this image on qgraphicsitem, everything works well, but there was a need to mask some bit of each pixel of the image, Google did not answer me. As an option, this is to put a mask on the data, but the problem is that the data is in the mapping and pulling it out into some kind of container and going through each one, this will turn out to be a very resource-intensive thing. Any ideas?
Answer the question
In order to leave comments, you need to log in
Probably, out of the box, Qt does not provide a means to quickly work with individual bits of each pixel of the entire image, so either do it manually or switch to lower-level tools, maybe shaders allow you to do this quickly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question