PictureEffects Xojo Plugin |

# GaussianBlur.ApplyEffect Method

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

ApplyEffect(
source as Picture,
mask as Picture) as Picture

#### Parameters

source
  The source picture to work with (can be 24 or 32 bits).
mask
  To limit the filtering to certain pixels then set a picture defining the mask to this parameter. Pass nil to this parameter or use alternate overload of this function 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.

#### Returns

Picture
  If the filter was successful: A reference to the modified picture.
  If the src picture was not 24 or 32 bits then a nil will be returned.
  Nil is also returned if the Value parameter is out of range.
  Use the ErrorCode Property to get more information if there was a error.

#### Remarks

#### See Also

GaussianBlur Class