PictureEffects Xojo Plugin |

# GammaEffect.ApplyInPlace Method

Applies the effect in place on a given 32 bit source image with a given 32 bit mask.

ApplyInPlace(
source as Picture,
red as Double,
green as Double,
blue as Double,
mask as Picture)

#### Parameters

source
  The source image.
red
  he gamma value for the red color channel.
  (The value is in range from 0.2 to 5.0 where 1.0 is the normal state)
green
  The gamma value for the green color channel.
  (The value is in range from 0.2 to 5.0 where 1.0 is the normal state)
blue
  The gamma value for the blue color channel.
  (The value is in range from 0.2 to 5.0 where 1.0 is the normal state)
mask
  To limit the filtering to certain pixels then set a picture defining the mask to this parameter. Pass nil to this parameter if the filtering should not be limited to certain pixels.
  The mask picture must be a 32 bit picture and must be same size as the src picture. If the mask picture is not 32 bits and same size as the src picture then the function will fail and leave the result picture unchanged.

#### Remarks

#### See Also

GammaEffect Class