PictureEffects Xojo and Real Studio Plugin |
|
DesaturateEffect.ApplyInPlace Method
Applies the effect on a given source image with a given mask without creating a new image, the result is written into the source image. Very Important read the remarks.
ApplyInPlace(
source as Picture,
mask 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 if the filtering should not be limited to certain pixels.
The mask picture must be a 32 bit picture and must be same size or larger than the src picture. If the mask picture is not 32 bits and at least the same size as the src picture then the function will fail and leave the result picture unchanged.
Remarks
Do not use this to attempt to modify constant images that should not be changed. Constant images are for example images embedded into the project.
See Also
DesaturateEffect Class