Matthias
31st May 2007, 13:54
Hello everybody,
i have a problem using the QPixmap class in Qt. I want to change QPixmaps in char* and vice versa because my framegrabber stores images in that way.
Example:
myClass::myMethod(QPixmap *myQPixmap)
{
// create imagepointer to image in framebuffer
mem0[0] = (char*) Fg_getImagePtrEx(fg,1,dma_no,pmem0);
// create test images in framebuffer, black to white gradient
for(int i=0;i<width*height;i++)
{
mem0[0][i] = i;}
}
In this method i want to use the given myQPixmap as source instead of the generated test image. How can i do that?
Many thanks,
Matthias
i have a problem using the QPixmap class in Qt. I want to change QPixmaps in char* and vice versa because my framegrabber stores images in that way.
Example:
myClass::myMethod(QPixmap *myQPixmap)
{
// create imagepointer to image in framebuffer
mem0[0] = (char*) Fg_getImagePtrEx(fg,1,dma_no,pmem0);
// create test images in framebuffer, black to white gradient
for(int i=0;i<width*height;i++)
{
mem0[0][i] = i;}
}
In this method i want to use the given myQPixmap as source instead of the generated test image. How can i do that?
Many thanks,
Matthias