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

Method putFinderPattern

text-to-qr/lib/phpqrcode/phpqrcode.php:704–719  ·  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

702 * @param ox,oy upper-left coordinate of the pattern
703 */
704 public static function putFinderPattern(&$frame, $ox, $oy)
705 {
706 $finder = array(
707 "\xc1\xc1\xc1\xc1\xc1\xc1\xc1",
708 "\xc1\xc0\xc0\xc0\xc0\xc0\xc1",
709 "\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
710 "\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
711 "\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
712 "\xc1\xc0\xc0\xc0\xc0\xc0\xc1",
713 "\xc1\xc1\xc1\xc1\xc1\xc1\xc1"
714 );
715
716 for($y=0; $y<7; $y++) {
717 QRstr::set($frame, $ox, $oy+$y, $finder[$y]);
718 }
719 }
720
721 //----------------------------------------------------------------------
722 public static function createFrame($version)

Callers 1

createFrameMethod · 0.95

Calls 1

setMethod · 0.45

Tested by

no test coverage detected