mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-31 12:38:22 +00:00
💄
This commit is contained in:
@@ -204,12 +204,11 @@ final class Binarizer{
|
||||
* @see http://groups.google.com/group/zxing/browse_thread/thread/d06efa2c35a7ddc0
|
||||
*/
|
||||
private function calculateBlackPoints(int $subWidth, int $subHeight, int $width, int $height):array{
|
||||
$blackPoints = [];
|
||||
$blackPoints = array_fill(0, $subHeight, array_fill(0, $subWidth, 0));
|
||||
|
||||
for($y = 0; $y < $subHeight; $y++){
|
||||
$yoffset = ($y << self::BLOCK_SIZE_POWER);
|
||||
$maxYOffset = ($height - self::BLOCK_SIZE);
|
||||
$blackPoints[$y] = [];
|
||||
$yoffset = ($y << self::BLOCK_SIZE_POWER);
|
||||
$maxYOffset = ($height - self::BLOCK_SIZE);
|
||||
|
||||
if($yoffset > $maxYOffset){
|
||||
$yoffset = $maxYOffset;
|
||||
|
||||
Reference in New Issue
Block a user