Improved versions of the examples-pages. Now including the possibility to switch between Code128 and EAN.

This commit is contained in:
Christoph Oberhofer
2014-11-04 21:28:14 +01:00
parent 5e4c3aeb55
commit d806d48b0f
10 changed files with 152 additions and 52 deletions
+8
View File
@@ -6641,6 +6641,11 @@ define('barcode_decoder',["bresenham", "image_debug", 'code_128_reader', 'ean_re
return result;
}
}
},
setReaders: function(readers) {
config.readers = readers;
_barcodeReaders.length = 0;
initReaders();
}
};
}
@@ -7175,6 +7180,9 @@ function(Code128Reader, EANReader, InputStream, ImageWrapper, BarcodeLocator, Ba
isInitialized : function() {
return _initialized;
},
setReaders: function(readers) {
_decoder.setReaders(readers);
},
canvas : _canvasContainer,
decodeSingle : function(config, resultCallback) {
config.inputStream = {
+2 -2
View File
File diff suppressed because one or more lines are too long