Closed progsoftpack closed 2 years ago
You may consider to ask on zint on sourceforge, as this branch is IMHO not so much maintained.
I personally use the sequence:
which will leave the pixel image in "hSymbol->bitmap".
Hope this helps, Harald
I also tried with the "ZBarcode_Encode_and_Buffer" but the behavior is the same. I will write this bug also on sourceforge
As this issue is marked as resolved on SourceForge am closing this, thanks.
I' try to generate a barcode to memery, in order to use later with this code:
unsigned char* co=(unsigned char* )"1234"; auto zint = ZBarcode_Create(); strcpy(zint->bgcolour, "C0C0FF"); strcpy(zint->fgcolour, "000000"); //zint->output_options = ; zint->border_width = 3; // in pixels zint->height = 20; // in pixels zint->scale = 1.0; zint->symbology = BARCODE_UPCA; ZBarcode_Encode(zint, co, 0); ZBarcode_Buffer(zint,0); ZBarcode_Delete(zint);
But the var "bitmap" (where should be stored the bitmap image) is not filled. But if i use the print function, the image is generated and stored correctly, even with that function the "bitmap" var is empty.