> Hi, I am displaying a image inside Fl_Box. But I am not able 
> to scale the image to fit inside my box. Can any one please 
> help me out...

The pixmap_browser demo shows how to scale an image to fit a box (by use
of the img->copy() method to resize the loaded image.)

If you need something more sophisticated, e.g. some form of smoothing or
anti-aliasing of your image as it resizes, then you are best doing that
yourself (the fltk built-resize may be too crude for some cases, but it
is fast.)

Perhaps these HowTo's might help you get at the raw image data if you
want to resize it yourself:

http://www.fltk.org/articles.php?L466

http://www.fltk.org/articles.php?L468






SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to