diff options
| -rw-r--r-- | FL/Fl_Image.H | 6 | ||||
| -rw-r--r-- | src/Fl_Image.cxx | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/FL/Fl_Image.H b/FL/Fl_Image.H index 6890a9356..e099741c1 100644 --- a/FL/Fl_Image.H +++ b/FL/Fl_Image.H @@ -140,8 +140,10 @@ class FL_EXPORT Fl_Image { /** The inactive() method calls color_average(FL_BACKGROUND_COLOR, 0.33f) to produce - an image that appears grayed out. <I>This method does not - alter the original image data.</I> + an image that appears grayed out. + + An internal copy is made of the original image before + changes are applied, to avoid modifying the original image. */ void inactive() { color_average(FL_GRAY, .33f); } virtual void desaturate(); diff --git a/src/Fl_Image.cxx b/src/Fl_Image.cxx index 4dea195db..d12de0ecc 100644 --- a/src/Fl_Image.cxx +++ b/src/Fl_Image.cxx @@ -87,8 +87,10 @@ Fl_Image *Fl_Image::copy(int W, int H) { argument specifies the amount of the original image to combine with the color, so a value of 1.0 results in no color blend, and a value of 0.0 results in a constant image of the specified - color. <I>The original image data is not altered by this - method.</I> + color. + + An internal copy is made of the original image before + changes are applied, to avoid modifying the original image. */ void Fl_Image::color_average(Fl_Color, float) { } @@ -96,8 +98,10 @@ void Fl_Image::color_average(Fl_Color, float) { /** The desaturate() method converts an image to grayscale. If the image contains an alpha channel (depth = 4), - the alpha channel is preserved. <I>This method does not alter - the original image data.</I> + the alpha channel is preserved. + + An internal copy is made of the original image before + changes are applied, to avoid modifying the original image. */ void Fl_Image::desaturate() { } |
