Skip to main content

DataMatrixSize Enum

Lists the available data matrix size options related to the Data Matrix (ECC200) barcode.

Declaration

public enum DataMatrixSize extends Enum<DataMatrixSize> implements IIntEnum

Members

Name Description
MATRIX_104X104

The barcode matrix size is 104x104.

MATRIX_10X10

The barcode matrix size is 10x10.

MATRIX_120X120

The barcode matrix size is 120x120.

MATRIX_12X12

The barcode matrix size is 12x12.

MATRIX_12X26

The barcode matrix size is 12x26.

MATRIX_12X36

The barcode matrix size is 12x36.

MATRIX_132X132

The barcode matrix size is 132x132.

MATRIX_144X144

The barcode matrix size is 144x144.

MATRIX_14X14

The barcode matrix size is 14x14.

MATRIX_16X16

The barcode matrix size is 16x16.

MATRIX_16X36

The barcode matrix size is 16x36.

MATRIX_16X48

The barcode matrix size is 16x48.

MATRIX_18X18

The barcode matrix size is 18x18.

MATRIX_20X20

The barcode matrix size is 20x20.

MATRIX_22X22

The barcode matrix size is 22x22.

MATRIX_24X24

The barcode matrix size is 24x24.

MATRIX_26X26

The barcode matrix size is 26x26.

MATRIX_32X32

The barcode matrix size is 32x32.

MATRIX_36X36

The barcode matrix size is 36x36.

MATRIX_40X40

The barcode matrix size is 40x40.

MATRIX_44X44

The barcode matrix size is 44x44.

MATRIX_48X48

The barcode matrix size is 48x48.

MATRIX_52X52

The barcode matrix size is 52x52.

MATRIX_64X64

The barcode matrix size is 64x64.

MATRIX_72X72

The barcode matrix size is 72x72.

MATRIX_80X80

The barcode matrix size is 80x80.

MATRIX_88X88

The barcode matrix size is 88x88.

MATRIX_8X18

The barcode matrix size is 8x18.

MATRIX_8X32

The barcode matrix size is 8x32.

MATRIX_96X96

The barcode matrix size is 96x96.

MATRIX_AUTO

The barcode matrix size is auto-adjusted, depending on the quantity of encoded data.

fromValue(int value)

Returns the DataMatrixSize enumeration constant with the specified integer value.

getName()

Returns the name of the DataMatrixSize enumeration constant.

getValue()

Returns the integer value associated with the DataMatrixSize enumeration constant.

toString()

Returns the string representation of the DataMatrixSize enumeration constant.

valueOf(String name)

Returns the DataMatrixSize enumeration constant with the specified name.

values()

Returns an array of all DataMatrixSize enumeration constants.

Remarks

The following code snippet creates a Data Matrix (ECC200) barcode and customizes its encoding parameters with the Fluent API:

import com.devexpress.drawing.*;
import com.devexpress.docs.barcode.*;
import com.devexpress.system.drawing.*;
import com.devexpress.docs.Padding;

import java.io.*;
import java.nio.file.*;

public class Main {
    public static void main(String[] args) throws Exception {

        DataMatrixOptions options =  DataMatrixOptionsBuilder.create()
            .withCompactionMode(DataMatrixCompactionMode.C40)
            .withMatrixSize(DataMatrixSize.MATRIX_12X12)
            .withModuleSize(5)
            .withShowText(true)
            .withPadding(new Padding(10))
            .build();        

        Path outputDir = Path.of("output");
        Files.createDirectories(outputDir);

        try (FileOutputStream fileStream = new FileOutputStream(
                outputDir.resolve("datamatrix.png").toFile());
                BarcodeGenerator barcodeGenerator = new BarcodeGenerator(options)) {
                    barcodeGenerator.export(
                            "SN:DX-987654321",
                            fileStream,
                            DXImageFormat.getPng());
        }
    }
}

Refer to the following help topic for additional information: Data Matrix (ECC200).

Implements

com.devexpress.java.enums.IIntEnum

Inherited Members

java.lang.Enum.<T>valueOf(java.lang.Class<T>,java.lang.String)
java.lang.Enum.clone()
java.lang.Enum.compareTo(E)
java.lang.Enum.describeConstable()
java.lang.Enum.equals(java.lang.Object)
java.lang.Enum.finalize()
java.lang.Enum.getDeclaringClass()
java.lang.Enum.hashCode()
java.lang.Enum.name()
java.lang.Enum.ordinal()
java.lang.Enum.toString()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
java.lang.Enum
DataMatrixSize