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

Method binarize

text-to-qr/lib/phpqrcode/phpqrcode.php:161–172  ·  view source on GitHub ↗

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

($frame)

Source from the content-addressed store, hash-verified

159
160 //----------------------------------------------------------------------
161 public static function binarize($frame)
162 {
163 $len = count($frame);
164 foreach ($frame as &$frameLine) {
165
166 for($i=0; $i<$len; $i++) {
167 $frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0';
168 }
169 }
170
171 return $frame;
172 }
173
174 //----------------------------------------------------------------------
175 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