On 25.07.2008, at 15:23, Alvin wrote: > According to the the FLTK manual, Fl_Image::color_average() states: > "The original image data is not altered by this method" > > This is great for what I am doing except I do not know how to have > the image > draw the "original image data". Basically, how can I remove the > saturation? > > This applies to Fl_Image::desaturate(). It makes the same claim > about not > altering the original image data.
Both functions create a new image that you can use instead of the old one, for example. You can then simply delete the old image if you like. To draw an image, either cal someWidget->image(myImage), which will make the image part of the label for that widget, or derive your own widget and override the draw() function to draw you custom widgets with your own ideas on where the images go. Matthias ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

