BarcodeGenerator::dmtx_place_1

  1. Bitrix24 API (v. 23.675.0)
  2. ui
  3. BarcodeGenerator
  4. dmtx_place_1
  • Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/barcode/barcodegenerator.php
  • Класс: BitrixUIBarcodeBarcodeGenerator
  • Вызов: BarcodeGenerator::dmtx_place_1
private function dmtx_place_1(&$matrix, $rows, $cols, $b) {
	$matrix[$rows - 1][0] = (($b & 0x80) ? 1 : 0);
	$matrix[$rows - 1][1] = (($b & 0x40) ? 1 : 0);
	$matrix[$rows - 1][2] = (($b & 0x20) ? 1 : 0);
	$matrix[0][$cols - 2] = (($b & 0x10) ? 1 : 0);
	$matrix[0][$cols - 1] = (($b & 0x08) ? 1 : 0);
	$matrix[1][$cols - 1] = (($b & 0x04) ? 1 : 0);
	$matrix[2][$cols - 1] = (($b & 0x02) ? 1 : 0);
	$matrix[3][$cols - 1] = (($b & 0x01) ? 1 : 0);
}

Добавить комментарий