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

Method binarize

text-to-qr/lib/phpqrcode/qrtools.php:28–39  ·  view source on GitHub ↗

----------------------------------------------------------------------

($frame)

Source from the content-addressed store, hash-verified

26
27 //----------------------------------------------------------------------
28 public static function binarize($frame)
29 {
30 $len = count($frame);
31 foreach ($frame as &$frameLine) {
32
33 for($i=0; $i<$len; $i++) {
34 $frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0';
35 }
36 }
37
38 return $frame;
39 }
40
41 //----------------------------------------------------------------------
42 public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037')

Callers 2

buildCacheMethod · 0.95
encodeMethod · 0.45

Calls 1

countFunction · 0.85

Tested by

no test coverage detected