> i'm displaying images in a scrollable box. > Now i want to zoom in and out images... > Could someone give me some help doing this? > I had a look at the flphoto zoom function, but i > don't really understand this code. > I'm sorry to say that, but this code is a bit too complex for me.
Unfortunately, zooming images is a hard thing to do (or at any rate a hard thing to do well) so code that does it is likely to be complex... The pixmap_browser demo shows how crude resizing of an image can be done simply by resampling using an image copy from a buffer of the old size to a buffer of the new size. This works, and is reasonably cheap to compute, so something like that might work for you. But it can get a bit coarse and pixel-ish... If you want smooth anti-aliased scaling, you might be best looking into one of the image processing libs and have that do the heavy lifting, then just display the result in your window. There's no mechanism in fltk for smooth anti-aliased image scaling - that is viewed as being an operation that is best done using a specialised lib. 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 mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

