bmn
16th June 2008, 11:29
void Custom_window::display()
{
if(i<5){
printf("\n Calling Capture function\n");
uchar* data = (uchar*)function(); //data is in bgr32 bit format
QPixmap *p;
// Frame display
image = new QImage(data,640,480,QImage::Format_RGB32);
label->setPixmap(p->fromImage(*image));
textmessage->append("The path of the file is");
i++;
}
else
i=0;
}
Unable to display the image. Need help
{
if(i<5){
printf("\n Calling Capture function\n");
uchar* data = (uchar*)function(); //data is in bgr32 bit format
QPixmap *p;
// Frame display
image = new QImage(data,640,480,QImage::Format_RGB32);
label->setPixmap(p->fromImage(*image));
textmessage->append("The path of the file is");
i++;
}
else
i=0;
}
Unable to display the image. Need help