public function watermarkOpacity(int $opacity)
    {
        if ($opacity < 0 || $opacity > 100) {
            throw InvalidManipulation::valueNotInRange('opacity', $opacity, 0, 100);
        }

        return $this->addManipulation('watermarkOpacity', $opacity);
    }
public function watermarkOpacity(int $opacity)
    {
        if ($opacity < 0 || $opacity > 100) {
            throw InvalidManipulation::valueNotInRange('opacity', $opacity, 0, 100);
        }

        return $this->addManipulation('watermarkOpacity', $opacity);
    }
public function watermarkOpacity ( int $ opacity ) { if ( $ opacity < 0 || $ opacity > 100 ) { throw InvalidManipulation :: valueNotInRange ( 'opacity' , $ opacity , 0 , 100 ) ; } return $ this -> addManipulation ( 'watermarkOpacity' , $ opacity ) ; }
Sets the opacity of the watermark. Only works with the `imagick` driver.

@param int $opacity A value between 0 and 100.

@return $this

@throws InvalidManipulation
Sets the opacity of the watermark . Only works with the imagick driver .