MCPcopy Create free account
hub / github.com/codemistic/Web-Development / putFinderPattern

Method putFinderPattern

text-to-qr/lib/phpqrcode/qrspec.php:392–407  ·  view source on GitHub ↗

-------------------------------------------------------------------- * Put a finder pattern. * @param frame * @param width * @param ox,oy upper-left coordinate of the pattern */

(&$frame, $ox, $oy)

Source from the content-addressed store, hash-verified

390 * @param ox,oy upper-left coordinate of the pattern
391 */
392 public static function putFinderPattern(&$frame, $ox, $oy)
393 {
394 $finder = array(
395 "\xc1\xc1\xc1\xc1\xc1\xc1\xc1",
396 "\xc1\xc0\xc0\xc0\xc0\xc0\xc1",
397 "\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
398 "\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
399 "\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
400 "\xc1\xc0\xc0\xc0\xc0\xc0\xc1",
401 "\xc1\xc1\xc1\xc1\xc1\xc1\xc1"
402 );
403
404 for($y=0; $y<7; $y++) {
405 QRstr::set($frame, $ox, $oy+$y, $finder[$y]);
406 }
407 }
408
409 //----------------------------------------------------------------------
410 public static function createFrame($version)

Callers 1

createFrameMethod · 0.95

Calls 1

setMethod · 0.45

Tested by

no test coverage detected