On 07/12/10 20:00, Albrecht Schlosser wrote: > On 07.12.2010, at 19:26, Slick Dealer wrote: > >> If I could easily resize PNG images using FLTK, I wouldn't be using >> Fl_Help_View. > > You can, but it's a low quality resizing algorithm. The key is > Fl_Image::copy(int w, int h). You should load the original image > and keep it in the background, then use copy() from the original > image whenever you need to resize the image to a different size. > Don't forget to delete the previous image copy. > > This works well as long as the quality is high enough for your > use case.
Yup - that's what I was going to say, too. Also, note that the pixmap_browser demo (I think, might be one of the others!) demonstrates this approach, so the OP can give that a spin and see if the rendered quality is going to be OK for there needs. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

