OOF2: The Manual

Name

OOF.Image.Modify.Fade — Fade the image by the given factor.

Synopsis

OOF.Image.Modify.Fade(image,factor)

Details

  • Parent Menu: OOF.Image.Modify
  • Callback: function doImageMod in module ooflib.image.imagemodifier
  • Parameters:

    image
    Type: The path to an existing Image object.
    factor
    0 does nothing, 1 fades to white. Type: A real number in the range [0, 1].

Description

Fade the given image by making each pixel whiter. Each color component \(x\) (red, green, or blue) is replaced by \(1 - (1-x)(1-\mathrm{factor})\). If factor is 0, then there is no change, but if factor is 1, the image becomes completely white. Values between 0 and 1 are most useful.

Compare to OOF.Image.Modify.Dim.

Figure 6.34. Fading an Image

Fading an Image

A micrograph of Si3N4 (courtesy of C.-H. Hsueh).

Fading an Image

The image after being faded with factor=0.2.