65 int32_t col = (m_Width / m_ModuleWidth - 69) / 17;
66 int32_t row = m_Height / (m_ModuleWidth * 20);
67 if (row >= 3 && row <= 90 && col >= 1 && col <= 30)
69 else if (col >= 1 && col <= 30)
71 else if (row >= 3 && row <= 90)
74 return {DataVector<uint8_t>(), 0, 0};
78 DataVector<uint8_t> matrix_data = barcodeMatrix->toBitArray();
79 int32_t matrix_width = barcodeMatrix->getWidth();
80 int32_t matrix_height = barcodeMatrix->getHeight();
82 if (matrix_width < matrix_height) {
83 RotateArray(matrix_data, matrix_width, matrix_height);
84 std::swap(matrix_width, matrix_height);
86 return {
std::move(matrix_data), matrix_width, matrix_height};