PHP 클래스 Grafika\Imagick\Image

상속: implements Grafika\ImageInterface
파일 보기 프로젝트 열기: kosinix/grafika 1 사용 예제들

공개 메소드들

메소드 설명
__clone ( )
__construct ( Imagick $imagick, string $imageFile, integer $width, integer $height, string $type, boolean $animated = false ) Image constructor.
blob ( string | ImageType $type = 'PNG' ) Output a binary raw dump of an image in a specified format.
createBlank ( integer $width = 1, integer $height = 1 ) : self Create a blank image.
createFromCore ( Imagick $imagick ) : Image Create an Image from an instance of Imagick.
createFromFile ( $imageFile ) : Image
getCore ( ) : Imagick Get Imagick instance
getHeight ( ) : integer Get image height in pixels.
getImageFile ( ) : string Get image file path.
getType ( ) : string Get image type.
getWidth ( ) : integer Get image width in pixels.
histogram ( array | null $slice = null ) : array Get histogram from an entire image or its sub-region.
isAnimated ( ) : boolean Returns animated flag.

메소드 상세

__clone() 공개 메소드

public __clone ( )

__construct() 공개 메소드

Image constructor.
public __construct ( Imagick $imagick, string $imageFile, integer $width, integer $height, string $type, boolean $animated = false )
$imagick Imagick
$imageFile string
$width integer
$height integer
$type string
$animated boolean

blob() 공개 메소드

Output a binary raw dump of an image in a specified format.
public blob ( string | ImageType $type = 'PNG' )
$type string | Grafika\ImageType Image format of the dump.

createBlank() 공개 정적인 메소드

Create a blank image.
public static createBlank ( integer $width = 1, integer $height = 1 ) : self
$width integer Width in pixels.
$height integer Height in pixels.
리턴 self

createFromCore() 공개 정적인 메소드

Create an Image from an instance of Imagick.
public static createFromCore ( Imagick $imagick ) : Image
$imagick Imagick Instance of Imagick.
리턴 Image

createFromFile() 공개 정적인 메소드

public static createFromFile ( $imageFile ) : Image
$imageFile
리턴 Image

getCore() 공개 메소드

Get Imagick instance
public getCore ( ) : Imagick
리턴 Imagick

getHeight() 공개 메소드

Get image height in pixels.
public getHeight ( ) : integer
리턴 integer

getImageFile() 공개 메소드

Get image file path.
public getImageFile ( ) : string
리턴 string File path to image.

getType() 공개 메소드

Get image type.
public getType ( ) : string
리턴 string

getWidth() 공개 메소드

Get image width in pixels.
public getWidth ( ) : integer
리턴 integer

histogram() 공개 메소드

Get histogram from an entire image or its sub-region.
public histogram ( array | null $slice = null ) : array
$slice array | null Array of slice information. array( array( 0,0), array(100,50)) means x,y is 0,0 and width,height is 100,50
리턴 array Returns array containing RGBA bins array('r'=>array(), 'g'=>array(), 'b'=>array(), 'a'=>array())

isAnimated() 공개 메소드

Returns animated flag.
public isAnimated ( ) : boolean
리턴 boolean True if animated GIF.