PHP 인터페이스 ColorThief\Image\Adapter\IImageAdapter

파일 보기 프로젝트 열기: ksubileau/color-thief-php

공개 메소드들

메소드 설명
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