PHP Class Undemanding\Difference\Image

Afficher le fichier Open project: undemanding/difference Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode 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 méthode

public __construct ( string $path )
$path string

difference() public méthode

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

getBitmap() public méthode

public getBitmap ( ) : array
Résultat array

getHeight() public méthode

public getHeight ( ) : integer
Résultat integer

getWidth() public méthode

public getWidth ( ) : integer
Résultat integer