mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-17 08:34:36 -04:00
Converted zint_symbol structure usage to a more compressed format
This commit is contained in:
parent
90d301a6dc
commit
cb0e4e27e8
29 changed files with 447 additions and 341 deletions
|
@ -54,7 +54,7 @@ struct zint_symbol *ZBarcode_Create()
|
|||
strcpy(symbol->primary, "");
|
||||
for(i = 0; i < 178; i++) {
|
||||
for(j = 0; j < 1000; j++) {
|
||||
symbol->encoded_data[i][j] = '0';
|
||||
unset_module(symbol, i, j);
|
||||
}
|
||||
symbol->row_height[i] = 0;
|
||||
}
|
||||
|
@ -585,6 +585,15 @@ int ZBarcode_Print(struct zint_symbol *symbol)
|
|||
int error_number;
|
||||
char output[4];
|
||||
|
||||
int i, j;
|
||||
|
||||
for(i = 0; i < symbol->rows; i++) {
|
||||
for(j = 0; j < symbol->width / 7; j++) {
|
||||
printf("%2.2X ", symbol->encoded_data[i][j]);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
if(strlen(symbol->outfile) > 3) {
|
||||
output[0] = symbol->outfile[strlen(symbol->outfile) - 3];
|
||||
output[1] = symbol->outfile[strlen(symbol->outfile) - 2];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue