On 29/11/11 14:13, fltkgui wrote:
> OK. It still doesn't seem to cooperate but getting there at least, I hope. :)
>
> I tried "o->Fl_JPEG_Image ("picture.jpg");" but again no luck, basically the
> same errors.
>
> The "o->" part is only because I generated it with fluid and its inside a box.
>
> [CODE]
> { Fl_Box* o = new Fl_Box(305, 120, 100, 75);
>     o->Fl_JPEG_Image ("picture.jpg");
> } // Fl_Box* o
> [/CODE]
>
>
> It used to be "o->image(image_picture);" before, but it doesn't like that 
> either.
Fl_JPEG_Image isn't a method. It's an entire class. When people suggest 
calling Fl_JPEG_Image, what they really mean is this:

Fl_JPEG_Image my_Image("picture.jpg");
o->image(my_Image);

Since Fl_Box doesn't have a method named "Fl_JPEG_Image" what you have 
above won't ever compile, whereas hopefully my little snippet should.....


Regards,
Ben

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to