PictureEffectsRaw Xojo Plugin

GrayscaleEffectRaw.Apply Method (console safe)

Applies the effect on a RawBitmap image with parameters that have been set on the class instance, taking additionally grayscaleMethod as parameter.

Apply(
   source as RawBitmap,
   grayscaleMethod as Integer) as RawBitmap

Parameters

source
The source image as RawBitmap
grayscaleMethod
Use this parameter to specify which GrayScale algorithm to use.

0 = NTSC/PAL
1 = ITU_R
2 = Average
3 = Weighted average

Normally you would just pass a constant here like: GrayScaleType.NTSC_PAL

Returns

RawBitmap
The result as RawBitmap or nil if there was error

Remarks

See Also

GrayscaleEffectRaw Class