|
|
@@ -168,14 +168,14 @@ maps the ECC coded binary data and applies the mask pattern</p>
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
|
|
|
<a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_ALIGNMENT_DARK">M_ALIGNMENT_DARK</a>
|
|
|
<span>
|
|
|
- = self::M_ALIGNMENT | self::IS_DARK </span>
|
|
|
+ = 0b100000010000 </span>
|
|
|
</dt>
|
|
|
<dd></dd>
|
|
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
|
|
|
<a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_DARKMODULE">M_DARKMODULE</a>
|
|
|
<span>
|
|
|
- = 0b1 | self::IS_DARK </span>
|
|
|
+ = 0b100000000001 </span>
|
|
|
</dt>
|
|
|
<dd></dd>
|
|
|
|
|
|
@@ -189,7 +189,7 @@ maps the ECC coded binary data and applies the mask pattern</p>
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
|
|
|
<a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_DATA_DARK">M_DATA_DARK</a>
|
|
|
<span>
|
|
|
- = self::M_DATA | self::IS_DARK </span>
|
|
|
+ = 0b100000000010 </span>
|
|
|
</dt>
|
|
|
<dd></dd>
|
|
|
|
|
|
@@ -203,14 +203,14 @@ maps the ECC coded binary data and applies the mask pattern</p>
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
|
|
|
<a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_FINDER_DARK">M_FINDER_DARK</a>
|
|
|
<span>
|
|
|
- = self::M_FINDER | self::IS_DARK </span>
|
|
|
+ = 0b100000000100 </span>
|
|
|
</dt>
|
|
|
<dd></dd>
|
|
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
|
|
|
<a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_FINDER_DOT">M_FINDER_DOT</a>
|
|
|
<span>
|
|
|
- = 0b10000000000 | self::IS_DARK </span>
|
|
|
+ = 0b110000000000 </span>
|
|
|
</dt>
|
|
|
<dd></dd>
|
|
|
|
|
|
@@ -224,7 +224,7 @@ maps the ECC coded binary data and applies the mask pattern</p>
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
|
|
|
<a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_FORMAT_DARK">M_FORMAT_DARK</a>
|
|
|
<span>
|
|
|
- = self::M_FORMAT | self::IS_DARK </span>
|
|
|
+ = 0b100001000000 </span>
|
|
|
</dt>
|
|
|
<dd></dd>
|
|
|
|
|
|
@@ -266,7 +266,7 @@ maps the ECC coded binary data and applies the mask pattern</p>
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
|
|
|
<a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_TEST_DARK">M_TEST_DARK</a>
|
|
|
<span>
|
|
|
- = self::M_TEST | self::IS_DARK </span>
|
|
|
+ = 0b111111111111 </span>
|
|
|
</dt>
|
|
|
<dd></dd>
|
|
|
|
|
|
@@ -280,7 +280,7 @@ maps the ECC coded binary data and applies the mask pattern</p>
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
|
|
|
<a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_TIMING_DARK">M_TIMING_DARK</a>
|
|
|
<span>
|
|
|
- = self::M_TIMING | self::IS_DARK </span>
|
|
|
+ = 0b100000100000 </span>
|
|
|
</dt>
|
|
|
<dd></dd>
|
|
|
|
|
|
@@ -294,7 +294,7 @@ maps the ECC coded binary data and applies the mask pattern</p>
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
|
|
|
<a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_VERSION_DARK">M_VERSION_DARK</a>
|
|
|
<span>
|
|
|
- = self::M_VERSION | self::IS_DARK </span>
|
|
|
+ = 0b100010000000 </span>
|
|
|
</dt>
|
|
|
<dd></dd>
|
|
|
|
|
|
@@ -474,6 +474,13 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
</dt>
|
|
|
<dd>Draws the 5x5 alignment patterns</dd>
|
|
|
|
|
|
+ <dt class="phpdocumentor-table-of-contents__entry -method -public">
|
|
|
+ <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setArea">setArea()</a>
|
|
|
+ <span>
|
|
|
+ : self </span>
|
|
|
+</dt>
|
|
|
+<dd>Fills an area of $width * $height, from the given starting point [$startX, $startY] (top left) with $value for $M_TYPE.</dd>
|
|
|
+
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
|
|
<a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setDarkModule">setDarkModule()</a>
|
|
|
<span>
|
|
|
@@ -640,7 +647,7 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
<span class="phpdocumentor-signature__visibility">public</span>
|
|
|
<span class="phpdocumentor-signature__type">int</span>
|
|
|
<span class="phpdocumentor-signature__name">M_ALIGNMENT_DARK</span>
|
|
|
- = <span class="phpdocumentor-signature__default-value">self::M_ALIGNMENT | self::IS_DARK</span>
|
|
|
+ = <span class="phpdocumentor-signature__default-value">0b100000010000</span>
|
|
|
</code>
|
|
|
|
|
|
|
|
|
@@ -667,7 +674,7 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
<span class="phpdocumentor-signature__visibility">public</span>
|
|
|
<span class="phpdocumentor-signature__type">int</span>
|
|
|
<span class="phpdocumentor-signature__name">M_DARKMODULE</span>
|
|
|
- = <span class="phpdocumentor-signature__default-value">0b1 | self::IS_DARK</span>
|
|
|
+ = <span class="phpdocumentor-signature__default-value">0b100000000001</span>
|
|
|
</code>
|
|
|
|
|
|
|
|
|
@@ -721,7 +728,7 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
<span class="phpdocumentor-signature__visibility">public</span>
|
|
|
<span class="phpdocumentor-signature__type">int</span>
|
|
|
<span class="phpdocumentor-signature__name">M_DATA_DARK</span>
|
|
|
- = <span class="phpdocumentor-signature__default-value">self::M_DATA | self::IS_DARK</span>
|
|
|
+ = <span class="phpdocumentor-signature__default-value">0b100000000010</span>
|
|
|
</code>
|
|
|
|
|
|
|
|
|
@@ -775,7 +782,7 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
<span class="phpdocumentor-signature__visibility">public</span>
|
|
|
<span class="phpdocumentor-signature__type">int</span>
|
|
|
<span class="phpdocumentor-signature__name">M_FINDER_DARK</span>
|
|
|
- = <span class="phpdocumentor-signature__default-value">self::M_FINDER | self::IS_DARK</span>
|
|
|
+ = <span class="phpdocumentor-signature__default-value">0b100000000100</span>
|
|
|
</code>
|
|
|
|
|
|
|
|
|
@@ -802,7 +809,7 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
<span class="phpdocumentor-signature__visibility">public</span>
|
|
|
<span class="phpdocumentor-signature__type">int</span>
|
|
|
<span class="phpdocumentor-signature__name">M_FINDER_DOT</span>
|
|
|
- = <span class="phpdocumentor-signature__default-value">0b10000000000 | self::IS_DARK</span>
|
|
|
+ = <span class="phpdocumentor-signature__default-value">0b110000000000</span>
|
|
|
</code>
|
|
|
|
|
|
|
|
|
@@ -856,7 +863,7 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
<span class="phpdocumentor-signature__visibility">public</span>
|
|
|
<span class="phpdocumentor-signature__type">int</span>
|
|
|
<span class="phpdocumentor-signature__name">M_FORMAT_DARK</span>
|
|
|
- = <span class="phpdocumentor-signature__default-value">self::M_FORMAT | self::IS_DARK</span>
|
|
|
+ = <span class="phpdocumentor-signature__default-value">0b100001000000</span>
|
|
|
</code>
|
|
|
|
|
|
|
|
|
@@ -1018,7 +1025,7 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
<span class="phpdocumentor-signature__visibility">public</span>
|
|
|
<span class="phpdocumentor-signature__type">int</span>
|
|
|
<span class="phpdocumentor-signature__name">M_TEST_DARK</span>
|
|
|
- = <span class="phpdocumentor-signature__default-value">self::M_TEST | self::IS_DARK</span>
|
|
|
+ = <span class="phpdocumentor-signature__default-value">0b111111111111</span>
|
|
|
</code>
|
|
|
|
|
|
|
|
|
@@ -1072,7 +1079,7 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
<span class="phpdocumentor-signature__visibility">public</span>
|
|
|
<span class="phpdocumentor-signature__type">int</span>
|
|
|
<span class="phpdocumentor-signature__name">M_TIMING_DARK</span>
|
|
|
- = <span class="phpdocumentor-signature__default-value">self::M_TIMING | self::IS_DARK</span>
|
|
|
+ = <span class="phpdocumentor-signature__default-value">0b100000100000</span>
|
|
|
</code>
|
|
|
|
|
|
|
|
|
@@ -1126,7 +1133,7 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
<span class="phpdocumentor-signature__visibility">public</span>
|
|
|
<span class="phpdocumentor-signature__type">int</span>
|
|
|
<span class="phpdocumentor-signature__name">M_VERSION_DARK</span>
|
|
|
- = <span class="phpdocumentor-signature__default-value">self::M_VERSION | self::IS_DARK</span>
|
|
|
+ = <span class="phpdocumentor-signature__default-value">0b100010000000</span>
|
|
|
</code>
|
|
|
|
|
|
|
|
|
@@ -1432,7 +1439,7 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">318</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">330</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -1484,7 +1491,7 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">332</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">344</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -1492,7 +1499,7 @@ returns true if a match is found, otherwise false.</dd>
|
|
|
|
|
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
|
|
<span class="phpdocumentor-signature__visibility">public</span>
|
|
|
- <span class="phpdocumentor-signature__name">checkNeighbours</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int </span><span class="phpdocumentor-signature__argument__name">$x</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int </span><span class="phpdocumentor-signature__argument__name">$y</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int </span><span class="phpdocumentor-signature__argument__name">$M_TYPE_VALUE</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
|
|
|
+ <span class="phpdocumentor-signature__name">checkNeighbours</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int </span><span class="phpdocumentor-signature__argument__name">$x</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int </span><span class="phpdocumentor-signature__argument__name">$y</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int </span><span class="phpdocumentor-signature__argument__name">$M_TYPE</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
|
|
|
|
|
|
<section class="phpdocumentor-description"><p>The 8 flags of the bitmask represent the status of each of the neighbouring fields,
|
|
|
starting with the lowest bit for top left, going clockwise:</p>
|
|
|
@@ -1520,7 +1527,7 @@ starting with the lowest bit for top left, going clockwise:</p>
|
|
|
|
|
|
</dd>
|
|
|
<dt class="phpdocumentor-argument-list__entry">
|
|
|
- <span class="phpdocumentor-signature__argument__name">$M_TYPE_VALUE</span>
|
|
|
+ <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
|
|
|
: <span class="phpdocumentor-signature__argument__return-type">int</span>
|
|
|
= <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
|
|
|
<dd class="phpdocumentor-argument-list__definition">
|
|
|
@@ -1550,7 +1557,7 @@ starting with the lowest bit for top left, going clockwise:</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">291</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">302</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -1612,7 +1619,7 @@ starting with the lowest bit for top left, going clockwise:</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">304</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">316</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -1673,7 +1680,7 @@ returns true if a match is found, otherwise false.</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">209</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">206</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -1736,7 +1743,7 @@ returns true if a match is found, otherwise false.</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">277</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">288</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -1788,7 +1795,7 @@ returns true if a match is found, otherwise false.</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">250</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">247</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -1840,7 +1847,7 @@ returns true if a match is found, otherwise false.</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">200</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">197</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -1873,7 +1880,7 @@ returns true if a match is found, otherwise false.</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">216</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">213</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -1950,7 +1957,7 @@ returns true if a match is found, otherwise false.</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">234</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">231</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -1985,7 +1992,7 @@ returns true if a match is found, otherwise false.</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">184</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">181</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2051,7 +2058,7 @@ returns true if a match is found, otherwise false.</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">713</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">715</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2097,7 +2104,7 @@ returns true if a match is found, otherwise false.</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">225</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">222</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2160,7 +2167,7 @@ returns true if a match is found, otherwise false.</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">177</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">174</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2234,7 +2241,7 @@ returns true if a match is found, otherwise false.</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">265</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">262</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2305,7 +2312,7 @@ false => $M_TYPE</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">435</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">436</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2321,6 +2328,90 @@ false => $M_TYPE</p>
|
|
|
|
|
|
|
|
|
|
|
|
+ <h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
|
|
+ <span class="phpdocumentor-signature__response_type">self</span>
|
|
|
+ —
|
|
|
+
|
|
|
+
|
|
|
+</article>
|
|
|
+ <article
|
|
|
+ class="phpdocumentor-element
|
|
|
+ -method
|
|
|
+ -public
|
|
|
+ "
|
|
|
+>
|
|
|
+ <h4 class="phpdocumentor-element__name" id="method_setArea">
|
|
|
+ setArea()
|
|
|
+ <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setArea" class="headerlink"><i class="fas fa-link"></i></a>
|
|
|
+ </h4>
|
|
|
+ <aside class="phpdocumentor-element-found-in">
|
|
|
+ <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
+ :
|
|
|
+ <span class="phpdocumentor-element-found-in__line">274</span>
|
|
|
+
|
|
|
+ </aside>
|
|
|
+
|
|
|
+ <p class="phpdocumentor-summary">Fills an area of $width * $height, from the given starting point [$startX, $startY] (top left) with $value for $M_TYPE.</p>
|
|
|
+
|
|
|
+ <code class="phpdocumentor-code phpdocumentor-signature ">
|
|
|
+ <span class="phpdocumentor-signature__visibility">public</span>
|
|
|
+ <span class="phpdocumentor-signature__name">setArea</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int </span><span class="phpdocumentor-signature__argument__name">$startX</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int </span><span class="phpdocumentor-signature__argument__name">$startY</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int </span><span class="phpdocumentor-signature__argument__name">$width</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int </span><span class="phpdocumentor-signature__argument__name">$height</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool </span><span class="phpdocumentor-signature__argument__name">$value</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int </span><span class="phpdocumentor-signature__argument__name">$M_TYPE</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
|
|
|
+
|
|
|
+
|
|
|
+ <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
|
|
+ <dl class="phpdocumentor-argument-list">
|
|
|
+ <dt class="phpdocumentor-argument-list__entry">
|
|
|
+ <span class="phpdocumentor-signature__argument__name">$startX</span>
|
|
|
+ : <span class="phpdocumentor-signature__argument__return-type">int</span>
|
|
|
+ </dt>
|
|
|
+ <dd class="phpdocumentor-argument-list__definition">
|
|
|
+ <section class="phpdocumentor-description"></section>
|
|
|
+
|
|
|
+ </dd>
|
|
|
+ <dt class="phpdocumentor-argument-list__entry">
|
|
|
+ <span class="phpdocumentor-signature__argument__name">$startY</span>
|
|
|
+ : <span class="phpdocumentor-signature__argument__return-type">int</span>
|
|
|
+ </dt>
|
|
|
+ <dd class="phpdocumentor-argument-list__definition">
|
|
|
+ <section class="phpdocumentor-description"></section>
|
|
|
+
|
|
|
+ </dd>
|
|
|
+ <dt class="phpdocumentor-argument-list__entry">
|
|
|
+ <span class="phpdocumentor-signature__argument__name">$width</span>
|
|
|
+ : <span class="phpdocumentor-signature__argument__return-type">int</span>
|
|
|
+ </dt>
|
|
|
+ <dd class="phpdocumentor-argument-list__definition">
|
|
|
+ <section class="phpdocumentor-description"></section>
|
|
|
+
|
|
|
+ </dd>
|
|
|
+ <dt class="phpdocumentor-argument-list__entry">
|
|
|
+ <span class="phpdocumentor-signature__argument__name">$height</span>
|
|
|
+ : <span class="phpdocumentor-signature__argument__return-type">int</span>
|
|
|
+ </dt>
|
|
|
+ <dd class="phpdocumentor-argument-list__definition">
|
|
|
+ <section class="phpdocumentor-description"></section>
|
|
|
+
|
|
|
+ </dd>
|
|
|
+ <dt class="phpdocumentor-argument-list__entry">
|
|
|
+ <span class="phpdocumentor-signature__argument__name">$value</span>
|
|
|
+ : <span class="phpdocumentor-signature__argument__return-type">bool</span>
|
|
|
+ </dt>
|
|
|
+ <dd class="phpdocumentor-argument-list__definition">
|
|
|
+ <section class="phpdocumentor-description"></section>
|
|
|
+
|
|
|
+ </dd>
|
|
|
+ <dt class="phpdocumentor-argument-list__entry">
|
|
|
+ <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
|
|
|
+ : <span class="phpdocumentor-signature__argument__return-type">int</span>
|
|
|
+ </dt>
|
|
|
+ <dd class="phpdocumentor-argument-list__definition">
|
|
|
+ <section class="phpdocumentor-description"></section>
|
|
|
+
|
|
|
+ </dd>
|
|
|
+ </dl>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
|
|
<span class="phpdocumentor-signature__response_type">self</span>
|
|
|
—
|
|
|
@@ -2340,7 +2431,7 @@ false => $M_TYPE</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">359</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">371</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2375,7 +2466,7 @@ false => $M_TYPE</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">370</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">382</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2410,7 +2501,7 @@ false => $M_TYPE</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">512</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">511</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2456,7 +2547,7 @@ false => $M_TYPE</p>
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">597</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">599</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2470,6 +2561,8 @@ false => $M_TYPE</p>
|
|
|
<p>Additionally, the logo space can be positioned within the QR Code - respecting the main functional patterns -
|
|
|
using $startX and $startY. If either of these are null, the logo space will be centered in that direction.
|
|
|
ECC level "H" (30%) is required.</p>
|
|
|
+<p>The coordinates of $startX and $startY do not include the quiet zone:
|
|
|
+[0, 0] is always the top left module of the top left finder pattern, negative values go into the quiet zone top and left.</p>
|
|
|
<p>Please note that adding a logo space minimizes the error correction capacity of the QR Code and
|
|
|
created images may become unreadable, especially when printed with a chance to receive damage.
|
|
|
Please test thoroughly before using this feature in production.</p>
|
|
|
@@ -2555,7 +2648,7 @@ Note that there is no restiction on how many times this method could be called o
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">554</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">553</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2615,7 +2708,7 @@ Note that there is no restiction on how many times this method could be called o
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">405</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">406</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2650,7 +2743,7 @@ Note that there is no restiction on how many times this method could be called o
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">466</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">465</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2685,7 +2778,7 @@ Note that there is no restiction on how many times this method could be called o
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">488</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">487</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2720,7 +2813,7 @@ Note that there is no restiction on how many times this method could be called o
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">243</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">240</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2783,7 +2876,7 @@ Note that there is no restiction on how many times this method could be called o
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">193</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">190</span>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
@@ -2846,7 +2939,7 @@ Note that there is no restiction on how many times this method could be called o
|
|
|
<aside class="phpdocumentor-element-found-in">
|
|
|
<abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
|
|
|
:
|
|
|
- <span class="phpdocumentor-element-found-in__line">666</span>
|
|
|
+ <span class="phpdocumentor-element-found-in__line">668</span>
|
|
|
|
|
|
</aside>
|
|
|
|