> box.image(test); // attach jpg image to box You may be looking for box.box(image). box.image(image) attaches the image to the box, keeping the original dimensions. box.box(image) sets the entire background of the box to the image, scaling it (roughly) where appropriate. > Note 2: I'm not a FLTK 2 user, and I don't know if there are other > usable image constructors, but SharedImage::get() works... >
After a call to an image constructor, you can also call "image->fetch_if_needed();". It's probably not a good idea to do so though. None of the constructors actually fetch the image at this stage - they only create a Symbol with the appropriate name. All things being equal, SharedImage::get() doesn't fetch the image but will create the appropriate type - for instance for a jpeg file (with the right magic header), SharedImage::get() will create a jpegImage class to deal with everything. Ben _________________________________________________________________ If It Exists, You'll Find it on SEEK. Australia's #1 job site http://clk.atdmt.com/NMN/go/157639755/direct/01/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

