PHP Интерфейс ColorThief\Image\Adapter\IImageAdapter

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

destroy() публичный Метод

Destroys the image.
public destroy ( )

getHeight() публичный Метод

Returns image height.
public getHeight ( ) : integer
Результат integer

getPixelColor() публичный Метод

Returns the color of the specified pixel.
public getPixelColor ( integer $x, integer $y ) : object
$x integer
$y integer
Результат object

getResource() публичный Метод

Get the raw resource
public getResource ( ) : resource
Результат resource

getWidth() публичный Метод

Returns image width.
public getWidth ( ) : integer
Результат integer

load() публичный Метод

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

loadBinaryString() публичный Метод

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

loadFile() публичный Метод

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