E
E
Evgeny Yakushov2020-11-27 16:34:02
Qt
Evgeny Yakushov, 2020-11-27 16:34:02

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

3 answer(s)
J
Jacob E, 2020-11-28
@Zifix

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.

I
iBird Rose, 2016-10-24
@iiiBird

you took the bootstrap menu. Did you install bootstrap yourself?

D
Dmitry, 2016-10-24
@railsdev

You have the same classes in both dropdown lists class="dropdown-toggle" data-toggle="dropdown". Google a little in this direction. If I'm not mistaken, they should be different. + in the js file these classes need to be initialized

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question