\Fastknife\Domain\LogicWordData

文字码数据处理 Class WordDataEntity

Summary

Methods
Properties
Constants
getFontFile()
getBackgroundVo()
getPointList()
array2Point()
getWordList()
check()
No public properties found
FONTSIZE
getRandImage()
getDefaultImage()
getPoint()
$defaultBackgroundPath
$defaultFontPath
N/A
No private methods found
No private properties found
N/A

Constants

FONTSIZE

FONTSIZE = 25

Properties

$defaultBackgroundPath

$defaultBackgroundPath

$defaultFontPath

$defaultFontPath

Methods

getFontFile()

getFontFile(string  $file = '') : string

获取字体包文件

Parameters

string $file

Returns

string —

getBackgroundVo()

getBackgroundVo(null  $backgrounds = null) : \Fastknife\Domain\Vo\BackgroundVo

获取一张背景图地址

Parameters

null $backgrounds

背景图库

Returns

\Fastknife\Domain\Vo\BackgroundVo —

getPointList()

getPointList( $width,  $height, int  $number = 3) : array

Parameters

$width
$height
int $number

Returns

array —

array2Point()

array2Point( $list) : array

Parameters

$list

Returns

array —

getWordList()

getWordList(mixed  $number) : array

Parameters

mixed $number

Returns

array —

check()

check(array  $originPointList, array  $targetPointList) : mixed

校验

Parameters

array $originPointList
array $targetPointList

Returns

mixed —

getRandImage()

getRandImage( $images) : string

获得随机图片

Parameters

$images

Returns

string —

getDefaultImage()

getDefaultImage( $dir,  $images) : array|false

获取默认图片

Parameters

$dir
$images

Returns

array|false —

getPoint()

getPoint( $width,  $height,  $index,  $wordCount) : \Fastknife\Domain\Vo\PointVo

Parameters

$width
$height
$index
$wordCount

Returns

\Fastknife\Domain\Vo\PointVo —