\BaconQrCode\Renderer\Module\EdgeIteratorEdgeIterator

Edge iterator based on potrace.

Summary

Methods
Properties
Constants
__construct()
getIterator()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
findNext()
findEdge()
xorEdge()
isSet()
pointOf()
flip()
$bytes
$size
$width
$height
N/A

Properties

$bytes

$bytes : int[]

Type

int[]

$size

$size : int

Type

int

$width

$width : int

Type

int

$height

$height : int

Type

int

Methods

__construct()

__construct(\BaconQrCode\Encoder\ByteMatrix  $matrix) : mixed

Parameters

\BaconQrCode\Encoder\ByteMatrix $matrix

Returns

mixed —

getIterator()

getIterator() : \BaconQrCode\Renderer\Module\EdgeIterator\Edge[]

Returns

\BaconQrCode\Renderer\Module\EdgeIterator\Edge[] —

findNext()

findNext(int  $x, int  $y) : int[]|null

Parameters

int $x
int $y

Returns

int[]|null —

findEdge()

findEdge(int  $x, int  $y) : \BaconQrCode\Renderer\Module\EdgeIterator\Edge

Parameters

int $x
int $y

Returns

\BaconQrCode\Renderer\Module\EdgeIterator\Edge —

xorEdge()

xorEdge(\BaconQrCode\Renderer\Module\EdgeIterator\Edge  $path) : void

Parameters

\BaconQrCode\Renderer\Module\EdgeIterator\Edge $path

isSet()

isSet(int  $x, int  $y) : bool

Parameters

int $x
int $y

Returns

bool —

pointOf()

pointOf(int  $i) : int[]

Parameters

int $i

Returns

int[] —

flip()

flip(int  $x, int  $y) : void

Parameters

int $x
int $y