PictureEffects Xojo and Real Studio Plugin

TrimEffect.Apply Method

Applies the effect on a given 32 bit source image with a given 32 bit mask and returns the result to a new image.

Apply(
   source as Picture,
   trimColor as Color,
   edgePixelCount as Integer) as Picture

Parameters

source
The source image.
trimColor
The count of pixels from the actual image that should not be trimmed. (In the on this page above it was set to zero pixels)
edgePixelCount
The count of pixels from the actual image that should not be trimmed. (In the example it was set to zero pixels)

Returns

Picture
If the filter was successful: A reference to the modified picture.

If the trimmed destination was of zero height or width then nil is returned.

This filter will allocate memory so a Nil is also returned if not enough memory could be allocated for it or if the mask parameter contained invalid mask picture.

Remarks

See Also

TrimEffect Class