MSIChecksum Enum
Lists values that indicate the type of checksum used in MSI barcodes.
Declaration
public enum MSIChecksum extends Enum<MSIChecksum> implements IIntEnum
Members
| Name | Description |
|---|---|
DOUBLE_MODULO_10
|
An MSI barcode uses the Double Modulo 10 checksum. Not currently supported. |
MODULO_10
|
An MSI barcode uses the Modulo 10 checksum. |
NONE
|
No checksum is used in an MSI barcode. |
fromValue(int value)
|
Returns the |
getName()
|
Returns the name of the |
getValue()
|
Returns the integer value associated with the |
toString()
|
Returns the string representation of the |
valueOf(String name)
|
Returns the |
values()
|
Returns an array of all |
Remarks
The following code snippet creates an MSI Plessey 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 {
CodeMSIOptions options = CodeMSIOptionsBuilder.create()
.withPadding(new Padding(10))
.withShowText(true)
.withWidth(600)
.withHeight(200)
.build();
Path outputDir = Path.of("output");
Files.createDirectories(outputDir);
try (FileOutputStream fileStream = new FileOutputStream(
outputDir.resolve("msi.png").toFile());
BarcodeGenerator barcodeGenerator = new BarcodeGenerator(options)) {
barcodeGenerator.export(
"909123456789",
fileStream,
DXImageFormat.getPng());
}
}
}
Refer to the following help topic for additional information: MSI/Plessey.