Class: Zint::DataMatrix
Overview
Data Matrix (ECC200)
Constant Summary collapse
- DM_NULL =
Options
0
- DM_ASCII =
1
- DM_C40 =
2
- DM_TEXT =
3
- DM_X12 =
4
- DM_EDIFACT =
5
- DM_BASE256 =
6
Instance Attribute Summary
Attributes inherited from Barcode
Instance Method Summary collapse
-
#initialize(value: nil, input_file: nil, type: Zint::BARCODE_DATAMATRIX, symbology: type, **kwargs) ⇒ DataMatrix
constructor
A new instance of DataMatrix.
Methods inherited from Barcode
#bgcolour, #bgcolour=, #bitmap_byte_length, #bitmap_height, #bitmap_width, #border_width, #border_width=, #debug, #debug=, #dot_size, #dot_size=, #dpmm, #dpmm=, #eci, #eci=, #encode, #encoded_data_as_array_of_strings, #encoded_data_raw_ffi, #errtxt, #fgcolour, #fgcolour=, #fontsize, #fontsize=, #free, #guard_descent, #guard_descent=, #height, #height=, #input_mode, #input_mode=, #option_1, #option_1=, #option_2, #option_2=, #option_3, #option_3=, #outfile, #output_options, #output_options=, #primary, #primary=, #row_height_raw_ffi, #row_heights, #rows, #scale, #scale=, #show_hrt, #show_hrt=, #structapp, #structapp=, #symbology, #symbology=, #text, #to_bitmap, #to_buffer, #to_file, #to_memory_file, #to_vector, #warn_level, #warn_level=, #whitespace_height, #whitespace_height=, #whitespace_width, #whitespace_width=, #width
Constructor Details
#initialize(value: nil, input_file: nil, type: Zint::BARCODE_DATAMATRIX, symbology: type, **kwargs) ⇒ DataMatrix
Returns a new instance of DataMatrix.
13 14 15 16 17 |
# File 'lib/zint/data_matrix.rb', line 13 def initialize(value: nil, input_file: nil, type: Zint::BARCODE_DATAMATRIX, symbology: type, **kwargs) raise ArgumentError, "Invalid symbology for DataMatrix code" unless [Zint::BARCODE_DATAMATRIX, Zint::BARCODE_HIBC_DM].include?(symbology) super(value: value, input_file: input_file, symbology: symbology, option_3: Zint::DM_SQUARE, **kwargs) end |