On 8/19/07, D. Zimmer <[EMAIL PROTECTED]> wrote: > Robert, > > If you don't want to link an entire image manipulation library, then the > following code will produce a smoother image for you (much more evident when > the original is small). Note that there is room to improve the speed of this > code significantly. > > Don.
Thanks for the help Greg, Ian and Don. Thanks for the code Don! I tested it out against ImagMagick's convert utility and also jpgtn http://jpgtn.sourceforge.net/ I put up a screenshot here http://www3.telus.net/public/robark/Fl_TeacherTool/images/comparison.bmp The left two images are the resize and resample from your code and the top right is jpgtn and bottom right is ImageMagick convert. As you can see ImageMagick took about 0.9s and jpgtn took 0.5s while your resample solution is *probably* orders of magnitude faster. ( On my P3 900Mhz box) The original image was 1024x768 resized down to 300x225. Your code did make an improvement but I still think ImageMagick looks the best (Not sure if the screenshot and subsequent bmp lost some quality). However, what I need to consider is if a classroom has 30 students meaning 30 resizes, will that be an acceptable wait time. BTW vncsnapshot takes about 1.5s (on my box) to grab the full size image, so that's more expensive than the resize. However, LTSP servers are a lot faster than my little P3. I will have to test it out with my school dual Xeon server and 30 clients. -- Robert Arkiletian Eric Hamber Secondary, Vancouver, Canada Fl_TeacherTool http://www3.telus.net/public/robark/Fl_TeacherTool/ C++ GUI tutorial http://www3.telus.net/public/robark/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

