Solved How to get solid red 1 x 1 QImage easiest way
-
Hi,
how would i get an solid red (255, 0, 0) 1x1 Pixel QImage?
here is the code where i need this QImage:
QImage* tmp = new QImage; if(...) { tmp->load(...); } else { tmp->makeItSolidRed1x1(); }
-
QImage* tmp = nullptr; if(...) { tmp = new QImage; tmp->load(...); } else { tmp = new QImage(1,1,QImage::Format_RGB32); tmp->fill(Qt::red); }
-
thank you
How can i mark this solved?
-
-
I don't have these options
-
Click on "Ask as question" first. After that the menu will also have the "Mark as solved" entry.
-
thank you :D