matthiasm wrote:
> On Aug 17, 2007, at 1:06 PM, Vedran Ljubovic wrote:
>
> > In section on Fl_Image::color_average() fltk docs contain this
> > cryptic notice:
> > "The original image data is not altered by this method."
> > What exactly does this mean?
>
> It means that the function leaves your original image intact and
> instead creates a *new* image that is color-averaged. The new image
> is returned by this function.
Um, I'm not sure what you mean, method color_average() doesn't return anything,
it's of type void. Are we talking about the same version of fltk?
> This is also why you do not see any
> changes.
What I meant to say by "seeing no changes" is this:
Fl_Image docs state that "value of 1.0 results in no color blend", so I was
hoping that I could do a second color_average() with value 1.0 to revert the
image to its unaveraged original, but it doesn't work because color_average()
applies to already averaged image, so value 1.0 basically means "do nothing".
But then, what is this "original image data" that the docs are talking about,
how do I use it to get the original back?
Meanwhile I tried to subclass Fl_Image adding a single new method:
void restore() { data(data(), count()); }
Unless I have another bug in my code, this also does nothing. So my last resort
is to just create an array of pointers to averaged copies of my icons. IMHO
"The original image data..." sentence from docs is wrong.
Thanks for replying!
Best regards,
Vedran
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk