PHP 클래스 Grafika\Grafika

파일 보기 프로젝트 열기: kosinix/grafika 1 사용 예제들

공개 메소드들

메소드 설명
createBlankImage ( integer $width = 1, integer $height = 1 ) : grafika\ImageInterface Create a blank image.
createDrawingObject ( string $drawingObjectName ) : grafika\DrawingObjectInterface Draws an object. Detects available editor to use.
createEditor ( array $editorList = ['Imagick', 'Gd'] ) : grafika\EditorInterface Creates the first available editor.
createFilter ( string $filterName ) : grafika\FilterInterface Create a filter. Detects available editor to use.
createImage ( string $imageFile ) : grafika\ImageInterface Create an image.
detectAvailableEditor ( array $editorList = null ) : string Detects and return the name of the first supported editor which can either be "Imagick" or "Gd".
fontsDir ( ) : string Return path to directory containing fonts used in text operations.
setEditorList ( array $editorList ) Change the editor list order of evaluation globally.

메소드 상세

createBlankImage() 공개 정적인 메소드

Create a blank image.
public static createBlankImage ( integer $width = 1, integer $height = 1 ) : grafika\ImageInterface
$width integer Width of image in pixels.
$height integer Height of image in pixels.
리턴 grafika\ImageInterface

createDrawingObject() 공개 정적인 메소드

Draws an object. Detects available editor to use.
public static createDrawingObject ( string $drawingObjectName ) : grafika\DrawingObjectInterface
$drawingObjectName string The name of the DrawingObject.
리턴 grafika\DrawingObjectInterface

createEditor() 공개 정적인 메소드

Creates the first available editor.
public static createEditor ( array $editorList = ['Imagick', 'Gd'] ) : grafika\EditorInterface
$editorList array Array of editor list names. Use this to change the order of evaluation for editors. Default order of evaluation is Imagick then GD.
리턴 grafika\EditorInterface

createFilter() 공개 정적인 메소드

Create a filter. Detects available editor to use.
public static createFilter ( string $filterName ) : grafika\FilterInterface
$filterName string The name of the filter.
리턴 grafika\FilterInterface

createImage() 공개 정적인 메소드

Create an image.
public static createImage ( string $imageFile ) : grafika\ImageInterface
$imageFile string Path to image file.
리턴 grafika\ImageInterface

detectAvailableEditor() 공개 정적인 메소드

Detects and return the name of the first supported editor which can either be "Imagick" or "Gd".
public static detectAvailableEditor ( array $editorList = null ) : string
$editorList array Array of editor list names. Use this to change the order of evaluation for editors for this function call only. Default order of evaluation is Imagick then GD.
리턴 string Name of available editor.

fontsDir() 공개 정적인 메소드

Return path to directory containing fonts used in text operations.
public static fontsDir ( ) : string
리턴 string

setEditorList() 공개 정적인 메소드

Change the editor list order of evaluation globally.
public static setEditorList ( array $editorList )
$editorList array