How to draw very many dots ?
-
Hi.
I want to draw very many dots.
Its dots are black and white, and the colors change with the 0s and 1s of certain 8-bit hexadecimal numbers.ex)
The number is 10101010, It color is BWBWBWBW (B = black, W = white)
One bit is one point, and there are many of these 8 bits.Normally, you would use a For statement to read and draw one bit at a time.
However, the number of points is very large, and the process becomes very heavy.
Is it possible to read all the bits at once and draw them all at once? -
Hi.
I want to draw very many dots.
Its dots are black and white, and the colors change with the 0s and 1s of certain 8-bit hexadecimal numbers.ex)
The number is 10101010, It color is BWBWBWBW (B = black, W = white)
One bit is one point, and there are many of these 8 bits.Normally, you would use a For statement to read and draw one bit at a time.
However, the number of points is very large, and the process becomes very heavy.
Is it possible to read all the bits at once and draw them all at once?@egusa There is QImage::Format_Mono in https://doc.qt.io/qt-5/qimage.html#Format-enum - sounds like you could use this format to create your image and then draw it.
-
@egusa There is QImage::Format_Mono in https://doc.qt.io/qt-5/qimage.html#Format-enum - sounds like you could use this format to create your image and then draw it.