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
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.
eumel1990 (29th May 2011)
Hi,
thanks for your answers.
That is what I need:
Qt Code:
To copy to clipboard, switch view to plain text mode
It's better than setPixel, because I don't have to call the method million times.
Thanks a lot.
greetings
eumel1990
Bookmarks