Hey guys,
Another problem with my app. I cant show an jpg Image in my Box. Here my
function to show the Image!
int myClass::picUpdate(){
char filename[80];
sprintf(filename,"/tmp/bild.jpg");
jpg = new Fl_JPEG_Image(filename);
if(jpg->w() == 0){
cerr << "CCUI:> Fehlerhaftes Bild oder Bild nicht vorhanden" <<
endl;
return (-1);
}
else{
cout << "CCUI:> Bildname:<" << filename << "> Bildhöhe:<" <<
jpg->w() <<" px> Bildbreite:<" << jpg->h() << " px> " << endl; //after
loading the jpg i can see width and heighth correctly
}
BA_PicView->image(jpg); //Box for picture
BA_PicView->redraw(); //Box redraw
Besucheralbum->redraw(); //Box is within this group
return PIC_UPD;
}
This function is called within a timer that reacts to a message qeueu of a
thread listening to the process that sends the picture. When the picture is
sent, the pic should be visible in the Box. But nothing happens after
calling redraw(). The Jpg is loaded correctly but the Box doesnt show it
.
Does anybody of you know a solution?
My fltk version is 1.1.8rc3
Thank you very much!!
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk