All,
I am having problems with my simple code to display an image on a window. The
code compiles fine but I don't see the image !
I'll appreciate your inputs on making it work & display a jpg image :)
#include <fltk/Window.h>
#include <fltk/Image.h>
#include <fltk/run.h>
using namespace fltk;
int main() {
Window win(900,900); // make a window
win.begin();
Widget box(10,10,900-20,900-20,"yahoo"); // widget contains image
Image *test = new Image("junk.jpg");
box.image(test); // attach jpg image to box
win.end();
win.show();
return run();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk