PHP Interface ColorThief\Image\Adapter\IImageAdapter

Afficher le fichier Open project: ksubileau/color-thief-php

Méthodes publiques

Méthode Description
destroy ( ) Destroys the image.
getHeight ( ) : integer Returns image height.
getPixelColor ( integer $x, integer $y ) : object Returns the color of the specified pixel.
getResource ( ) : resource Get the raw resource
getWidth ( ) : integer Returns image width.
load ( resource | object $resource ) Loads an image resource.
loadBinaryString ( string $data ) Loads an image from a binary string representation.
loadFile ( string $path ) Loads an image from file.

Method Details

destroy() public méthode

Destroys the image.
public destroy ( )

getHeight() public méthode

Returns image height.
public getHeight ( ) : integer
Résultat integer

getPixelColor() public méthode

Returns the color of the specified pixel.
public getPixelColor ( integer $x, integer $y ) : object
$x integer
$y integer
Résultat object

getResource() public méthode

Get the raw resource
public getResource ( ) : resource
Résultat resource

getWidth() public méthode

Returns image width.
public getWidth ( ) : integer
Résultat integer

load() public méthode

Loads an image resource.
public load ( resource | object $resource )
$resource resource | object

loadBinaryString() public méthode

Loads an image from a binary string representation.
public loadBinaryString ( string $data )
$data string

loadFile() public méthode

Loads an image from file.
public loadFile ( string $path )
$path string