Hello Qt centre,
as the title said I want to create a QPixmap object from an array of raw pixels. I generated this array (it is an apple man^^).
Can someone help?
greetings
eumel1990
Printable View
Hello Qt centre,
as the title said I want to create a QPixmap object from an array of raw pixels. I generated this array (it is an apple man^^).
Can someone help?
greetings
eumel1990
There is also QImage constructor that accepts char * data, if you created the data yourself, then you probably know what format does it have (by format I mean the pixel store schema, see here), so you can use this constructor directly, without looping and setting each pixel individually.
Hi,
thanks for your answers.
That is what I need:
It's better than setPixel, because I don't have to call the method million times.
Thanks a lot. :cool:
greetings
eumel1990