PHP Class Undemanding\Difference\Image

Exibir arquivo Open project: undemanding/difference Class Usage Examples

Public Methods

Method Description
__construct ( string $path )
difference ( Image $image, callable $method ) : Difference Difference between two bitmap states.
getBitmap ( ) : array
getHeight ( ) : integer
getWidth ( ) : integer

Private Methods

Method Description
cloneWith ( string $property, mixed $value ) : Image
createBitmap ( resource $image, integer $width, integer $height ) : array Creates new bitmap from image resource.
createImage ( string $path ) : resource Create new image resource from image path.

Method Details

__construct() public method

public __construct ( string $path )
$path string

difference() public method

Difference between two bitmap states.
public difference ( Image $image, callable $method ) : Difference
$image Image
$method callable
return Difference

getBitmap() public method

public getBitmap ( ) : array
return array

getHeight() public method

public getHeight ( ) : integer
return integer

getWidth() public method

public getWidth ( ) : integer
return integer