• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/barcode/barcodegenerator.php
  • Класс: BitrixUIBarcodeBarcodeGenerator
  • Вызов: BarcodeGenerator::dmtx_place_b
private function dmtx_place_b(&$matrix, $rows, $cols, $row, $col, $b) {
	if ($row < 0) {
		$row += $rows;
		$col += (4 - (($rows + 4) % 8));
	}
	if ($col < 0) {
		$col += $cols;
		$row += (4 - (($cols + 4) % 8));
	}
	$matrix[$row][$col] = ($b ? 1 : 0);
}