PHP Class BFI_Image_Editor_GD_1_3, elementor

Inheritance: extends WP_Image_Editor_GD
Mostra file Open project: pojome/elementor

Public Methods

Method Description
colorize ( $hexColor ) : boolean | WP_Error Tints the image a different color
grayscale ( ) : boolean | WP_Error Makes the image grayscale
negate ( ) : boolean | WP_Error Negates the image
opacity ( float $opacity ) : boolean | WP_Error Changes the opacity of the image
rotate ( float $angle ) : boolean | WP_Error Rotates current image counter-clockwise by $angle.

Protected Methods

Method Description
_opacity ( $image, $opacity ) params: image resource id, opacity (eg. 0.0-1.0)

Method Details

_opacity() protected method

params: image resource id, opacity (eg. 0.0-1.0)
protected _opacity ( $image, $opacity )

colorize() public method

Tints the image a different color
public colorize ( $hexColor ) : boolean | WP_Error
return boolean | WP_Error

grayscale() public method

Makes the image grayscale
public grayscale ( ) : boolean | WP_Error
return boolean | WP_Error

negate() public method

Negates the image
public negate ( ) : boolean | WP_Error
return boolean | WP_Error

opacity() public method

Changes the opacity of the image
public opacity ( float $opacity ) : boolean | WP_Error
$opacity float (0.0-1.0)
return boolean | WP_Error

rotate() public method

Ported from image-edit.php Added presevation of alpha channels
Since: 3.5.0
public rotate ( float $angle ) : boolean | WP_Error
$angle float
return boolean | WP_Error