md houssy wrote:
> how can we resize the image we have already downloaded?

Flt does not provide any tools for image manipulation beyond the actual 
displaying of the image. You can use the image copy() method to do basic 
resizing of an image (see the pixmap_browser demo for the basics of 
that) but it uses fairly crude decimation/interpolation to do the resize 
so is probably not appropriate if you want to do high quality imaging 
sizing operations.

If you want to manipulate the image data in any way, such as changing 
the displayed size or anything, you'll need to use other tools to help 
out - the libs that support imagemagic have a fair reputation and there 
are many others.

What I'd do is simply store the raw image data in memory and work from 
that to do the scaling and so forth - there's a HowTo here that might 
help you to get started.

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


_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to