PHP Interface ColorThief\Image\Adapter\IImageAdapter

ファイルを表示 Open project: ksubileau/color-thief-php

Public Methods

Method 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 method

Destroys the image.
public destroy ( )

getHeight() public method

Returns image height.
public getHeight ( ) : integer
return integer

getPixelColor() public method

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

getResource() public method

Get the raw resource
public getResource ( ) : resource
return resource

getWidth() public method

Returns image width.
public getWidth ( ) : integer
return integer

load() public method

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

loadBinaryString() public method

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

loadFile() public method

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