public function effect($mode)
    {
        $effectModes = [
            self::EFFECT_NONE,
            self::EFFECT_NEGATIVE,
            self::EFFECT_SOLARISE,
            self::EFFECT_POSTERISE,
            self::EFFECT_WHITEBOARD,
            self::EFFECT_BLACKBOARD,
            self::EFFECT_SKETCH,
            self::EFFECT_DENOISE,
            self::EFFECT_EMBOSS,
            self::EFFECT_OILPAINT,
            self::EFFECT_HATCH,
            self::EFFECT_GPEN,
            self::EFFECT_PASTEL,
            self::EFFECT_WATERCOLOUR,
            self::EFFECT_FILM,
            self::EFFECT_BLUR,
            self::EFFECT_SATURATION,
            self::EFFECT_COLOURSWAP,
            self::EFFECT_WASHEDOUT,
            self::EFFECT_COLOURPOINT,
            self::EFFECT_COLOURBALANCE,
            self::EFFECT_CARTOON,
        ];

        $this->assertInArray($mode, $effectModes);

        $this->valueArguments['imxfx'] = $mode;

        return $this;
    }
public function effect($mode)
    {
        $effectModes = [
            self::EFFECT_NONE,
            self::EFFECT_NEGATIVE,
            self::EFFECT_SOLARISE,
            self::EFFECT_POSTERISE,
            self::EFFECT_WHITEBOARD,
            self::EFFECT_BLACKBOARD,
            self::EFFECT_SKETCH,
            self::EFFECT_DENOISE,
            self::EFFECT_EMBOSS,
            self::EFFECT_OILPAINT,
            self::EFFECT_HATCH,
            self::EFFECT_GPEN,
            self::EFFECT_PASTEL,
            self::EFFECT_WATERCOLOUR,
            self::EFFECT_FILM,
            self::EFFECT_BLUR,
            self::EFFECT_SATURATION,
            self::EFFECT_COLOURSWAP,
            self::EFFECT_WASHEDOUT,
            self::EFFECT_COLOURPOINT,
            self::EFFECT_COLOURBALANCE,
            self::EFFECT_CARTOON,
        ];

        $this->assertInArray($mode, $effectModes);

        $this->valueArguments['imxfx'] = $mode;

        return $this;
    }
public function effect ( $ mode ) { $ effectModes = [ self :: EFFECT_NONE , self :: EFFECT_NEGATIVE , self :: EFFECT_SOLARISE , self :: EFFECT_POSTERISE , self :: EFFECT_WHITEBOARD , self :: EFFECT_BLACKBOARD , self :: EFFECT_SKETCH , self :: EFFECT_DENOISE , self :: EFFECT_EMBOSS , self :: EFFECT_OILPAINT , self :: EFFECT_HATCH , self :: EFFECT_GPEN , self :: EFFECT_PASTEL , self :: EFFECT_WATERCOLOUR , self :: EFFECT_FILM , self :: EFFECT_BLUR , self :: EFFECT_SATURATION , self :: EFFECT_COLOURSWAP , self :: EFFECT_WASHEDOUT , self :: EFFECT_COLOURPOINT , self :: EFFECT_COLOURBALANCE , self :: EFFECT_CARTOON , ] ; $ this -> assertInArray ( $ mode , $ effectModes ) ; $ this -> valueArguments [ 'imxfx' ] = $ mode ; return $ this ; }
Set an effect to be applied to the image

Possible options are:
- 'none' `Raspicam::EFFECT_NONE` NO effect (default)
- 'negative' `Raspicam::EFFECT_NEGATIVE` Negate the image
- 'solarise' `Raspicam::EFFECT_SOLARISE` Solarise the image
- 'posterise' `Raspicam::EFFECT_POSTERISE` Posterise the image
- 'whiteboard' `Raspicam::EFFECT_WHITEBOARD` Whiteboard effect
- 'blackboard' `Raspicam::EFFECT_BLACKBOARD` Blackboard effect
- 'sketch' `Raspicam::EFFECT_SKETCH` Sketch style effect
- 'denoise' `Raspicam::EFFECT_DENOISE` Denoise the image
- 'emboss' `Raspicam::EFFECT_EMBOSS` Emboss the image
- 'oilpaint' `Raspicam::EFFECT_OILPAINT` Apply an oil paint style effect
- 'hatch' `Raspicam::EFFECT_HATCH` Hatch sketch style
- 'gpen' `Raspicam::EFFECT_GPEN`
- 'pastel' `Raspicam::EFFECT_PASTEL` A pastel style effect
- 'watercolour' `Raspicam::EFFECT_WATERCOLOUR` A watercolour style effect
- 'film' `Raspicam::EFFECT_FILM` Film grain style effect
- 'blur' `Raspicam::EFFECT_BLUR` Blur the image
- 'saturation' `Raspicam::EFFECT_SATURATION` Colour saturate the image
- 'colourswap' `Raspicam::EFFECT_COLOURSWAP` Not fully implemented
- 'washedout' `Raspicam::EFFECT_WASHEDOUT` Not fully implemented
- 'colourpoint' `Raspicam::EFFECT_COLOURPOINT` Not fully implemented
- 'colourbalance' `Raspicam::EFFECT_COLOURBALANCE` Not fully implemented
- 'cartoon' `Raspicam::EFFECT_CARTOON` Not fully implemented

Note that not all of these settings may be available in all circumstances.

@param string $mode

@return $this
Set an effect to be applied to the image