schan117
10th September 2009, 15:10
Guys, i got a quick question concerning how to use external API for image and showing it in a QLabel as a pixmap.
I tried an obvious method which I used the external camera API and save it as a bmp file and then i import it in qt using load() and set it to be the pixmap of the label. It did the job. But now i want to do a live stream and writing and read bmp file on the disk and reading them does not seems to be a good idea. Therefore, i wonder how should i manipulate the array of pixels i got from the camera API with Qimage/Qpixmap such that it can be displayed on QLabel?
Thanks guys
schan117
I tried an obvious method which I used the external camera API and save it as a bmp file and then i import it in qt using load() and set it to be the pixmap of the label. It did the job. But now i want to do a live stream and writing and read bmp file on the disk and reading them does not seems to be a good idea. Therefore, i wonder how should i manipulate the array of pixels i got from the camera API with Qimage/Qpixmap such that it can be displayed on QLabel?
Thanks guys
schan117