Applies the effect on a RawBitmap image with parameters that have been set on the class instance, taking additionally grayscaleMethod as parameter.
source as RawBitmap,
grayscaleMethod as Integer) as RawBitmap
- The source image as RawBitmap
- 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
- The result as RawBitmap or nil if there was error