Commit Graph

86 Commits

Author SHA1 Message Date
Robin Stuart
52214c5a1c Change bitmap signedness to allow conversion to other data types
Buffered bitmap array should have been type unsigned char not type char
Includes change to manual
In response to (and hopefully fixing) #182 reported by Marcelo Antunes
2020-03-29 13:42:33 +01:00
Robin Stuart
5861ad3c3b Ultra: Extend colour support to PNG PCX BMP and TIF
Implementation needs improvement, but colour output is now achieved in most formats
2020-01-06 20:01:48 +00:00
gitlost
fa9af12fc6 raster.c: check bounds on calculating block width for UPCA 2019-12-19 00:59:51 +00:00
gitlost
bca82ecc0d libzint.so: suppress exporting INTERNAL functions to the shared library; ZINT_TEST 2019-12-19 00:37:55 +00:00
gitlost
793a990c01 EANX/UPCA/UPCE_CHK handling + various raster/vector fixes; ISBNX add-ons 2019-11-11 21:38:21 +00:00
Robin Stuart
833877fb2f Remove Maxicode segfault bug
Missing punctuation causes Maxicode plotting in raster image to segfault
2019-09-02 20:25:17 +01:00
Harald Oehlmann
b5aaf308a3 2019-09-01 Codemonkey82 Draw Maxicode bullseye for scale = 0.5 Ticket #119 (Commit correction) 2019-09-02 12:05:08 +02:00
Harald Oehlmann
b86a7e6560 2019-09-01 Codemonkey82 Draw Maxicode bullseye for scale = 0.5 Ticket #119 2019-09-02 11:26:30 +02:00
Robin Stuart
32b6bbaf0e Plot hexagons in Maxicode even when scale < 1.0
Fixes #119 reported by codemonkey82
2019-03-16 15:47:08 +00:00
Robin Stuart
1057bb9fa5 Fix free memory when not allocated
Bug fix by Alex Haley <ahaley@meditech.com>
2017-11-07 20:26:00 +00:00
Boris Zentner
31cc0ae78a Remove spaces before EOL 2017-10-25 17:23:57 +01:00
Boris Zentner
45441a6da7 Fix mixed unix / windows EOL 2017-10-25 17:15:35 +01:00
Harald Oehlmann
f83e5b1501 Make compile with MS-VC6 2017-10-16 19:26:54 +02:00
Robin Stuart
4dd31fb674 Reallign bullseye in Maxicode
Centre of bullseye in Maxicode symbols drifted from desired position
when printing scale was increased. Affects raster plotted images (BMP, GIF etc.).
Changes how centre position of bullseye is calculated.
2017-10-09 11:17:11 +01:00
Rodrigo Torres
4963a772db Refactor 2017-09-11 19:21:33 +01:00
Robin Stuart
608b4b9134 Audit of error codes 2017-07-27 16:01:53 +01:00
Julien Nabet
3257a5c0af cppcheck: fix reports
[backend/bmp.c:133]: (error) Memory leak: bitmap
[backend/bmp.c:126]: (error) Memory leak: bitmap
[backend/composite.c:464]: (error) Array index -1 is out of bounds.
[backend/composite.c:507]: (error) Array index -1 is out of bounds.
[backend/dmatrix.c:962]: (style) Redundant condition: i!=0. 'i==0 || (i!=0 && binary[i-1]!='b')' is equivalent to 'i==0 || binary[i-1]!='b''
[backend/raster.c:122]: (error) Memory leak: rotated_pixbuf
[backend/raster.c:506]: (error) Memory leak: pixelbuf
[frontend/main.c:273]: (error) Uninitialized variable: format_string
[frontend_qt/exportwindow.cpp:103]: (style) Array index 'j' is used before limits check.
2017-07-01 09:49:47 +01:00
Robin Stuart
19ba8a34c4 Update to version 2.6.0 and update copyright to 2017 2017-05-11 21:14:38 +01:00
Boris Zentner
eb1d246a4d The backend/library should not print error messages.
Just return the error in errtxt.
2017-03-11 08:39:22 +00:00
Boris Zentner
22e06ee05a Test only the current row. Do not check bits outside of the barcode or in the next row. 2017-03-11 08:39:10 +00:00
Robin Stuart
ec8cfcbb76 Add TIFF output option 2016-12-30 20:25:58 +00:00
Robin Stuart
4561a66067 Add identifiers to error messages
To ease the debug process
2016-10-28 22:40:40 +01:00
Robin Stuart
796af2580f Make MaxiCode scalable in raster files 2016-10-27 17:50:10 +01:00
Robin Stuart
d6a1008ae7 Plot pixel buffer the right way up 2016-10-14 16:08:03 +01:00
Robin Stuart
f145680739 Revoke changes made to pixel buffering in API 2016-10-02 10:45:47 +01:00
Robin Stuart
9eff5cc63a Allow adjustment of dot size when in dotty mode 2016-09-18 14:09:58 +01:00
Robin Stuart
16511da26d Improved rendering of seperator bars for Codablock-F 2016-09-12 21:47:40 +01:00
Robin Stuart
7ae2e68396 Typo-- 2016-09-11 08:47:34 +01:00
Robin Stuart
e0402ba434 Consolidate raster image rotation and colour sanity checks 2016-09-11 08:42:31 +01:00
Robin Stuart
a7bcef4ef7 Fix various memory leaks
Bugfixes thanks to Alex Haley <ahaley42@users.sf.net>
2016-09-03 18:45:09 +01:00
Robin Stuart
3cf8a142b8 Bugfix: Ouput binding in raster images
Also: tidy up use of output_options
2016-08-26 15:13:40 +01:00
Robin Stuart
542ec7c7a5 When libpng is not found, default to GIF output 2016-08-26 11:44:02 +01:00
Robin Stuart
498fd4151d Add dot (circle) plotting for raster (PNG/GIF/PCX/BMP) images 2016-08-08 23:18:55 +01:00
Harald Oehlmann
08c88e85d2 Added gif output 2016-07-28 20:58:33 +02:00
Robin Stuart
babeaec41d Add ZSoft PCX image file output 2016-07-23 15:08:55 +01:00
Robin Stuart
08e51cf5bb Separate PNG and BMP file handling routines and create common framework to allow addition of more output file formats 2016-07-19 23:02:39 +01:00