Search Results for

    Show / Hide Table of Contents

    Class DataMatrixWriter

    A class allowing for advanced control on the generation of DataMatrix type barcodes.

    DataMatrixWriter allows setting of the DataMatrix shape.

    Generated Barcodes can be exported as Images, Bitmaps, Files, or Streams.

    Inheritance
    System.Object
    DataMatrixWriter
    Namespace: IronBarCode
    Assembly: IronBarCode.dll
    Syntax
    public static class DataMatrixWriter : Object

    Methods

    CreateDataMatrix(Byte[], DataMatrixWriter.DataMatrixShape, Int32, Int32)

    Renders a DataMatrix.

    Overload methods and methods of the created GeneratedBarcode object allow for barcode sizes and colors to be customized.

    Declaration
    public static GeneratedBarcode CreateDataMatrix(byte[] BinaryData, DataMatrixWriter.DataMatrixShape Shape, int Width = 500, int Height = 500)
    Parameters
    Type Name Description
    System.Byte[] BinaryData

    The value of the DataMatrix as a byte array.

    DataMatrixWriter.DataMatrixShape Shape

    The shape of the DataMatrix.

    System.Int32 Width

    The width of the DataMatrix in pixels.

    System.Int32 Height

    The height of the DataMatrix in pixels.

    Returns
    Type Description
    GeneratedBarcode

    A GeneratedBarcode object for the DataMatrix which can be manipulated, annotated, and saved to an IronDrawing object, an image file, a PDF, a MediaURL, or a data stream.

    CreateDataMatrix(Byte[], Int32)

    Renders a Square DataMatrix. For rendering of a rectangular DataMatrix, please find another overload of this method that supports width and height.

    Overload methods and methods of the created GeneratedBarcode object allow for barcode sizes and colors to be customized.

    See method overloads for rectangular DataMatrix shapes.

    Declaration
    public static GeneratedBarcode CreateDataMatrix(byte[] BinaryData, int Size = 500)
    Parameters
    Type Name Description
    System.Byte[] BinaryData

    The value of the DataMatrix as a byte array.

    System.Int32 Size

    The width and height of the DataMatrix in pixels.

    Returns
    Type Description
    GeneratedBarcode

    A GeneratedBarcode object for the DataMatrix which can be manipulated, annotated, and saved to an IronDrawing object, an image file, a PDF, a MediaURL, or a data stream.

    CreateDataMatrix(Stream, DataMatrixWriter.DataMatrixShape, Int32, Int32)

    Renders a DataMatrix.

    Overload methods and methods of the created GeneratedBarcode object allow for barcode sizes and colors to be customized.

    Declaration
    public static GeneratedBarcode CreateDataMatrix(Stream BinaryDataStream, DataMatrixWriter.DataMatrixShape Shape, int Width = 500, int Height = 500)
    Parameters
    Type Name Description
    System.IO.Stream BinaryDataStream

    The value of the DataMatrix as a stream.

    DataMatrixWriter.DataMatrixShape Shape

    The shape of the DataMatrix.

    System.Int32 Width

    The width of the DataMatrix in pixels.

    System.Int32 Height

    The height of the DataMatrix in pixels.

    Returns
    Type Description
    GeneratedBarcode

    A GeneratedBarcode object for the DataMatrix which can be manipulated, annotated, and saved to an IronDrawing object, an image file, a PDF, a MediaURL, or a data stream.

    CreateDataMatrix(Stream, Int32)

    Renders a Square DataMatrix. For rendering of a rectangular DataMatrix, please find another overload of this method that supports width and height.

    Overload methods and methods of the created GeneratedBarcode object allow for barcode sizes and colors to be customized.

    See method overloads for rectangular DataMatrix shapes.

    Declaration
    public static GeneratedBarcode CreateDataMatrix(Stream BinaryDataStream, int Size = 500)
    Parameters
    Type Name Description
    System.IO.Stream BinaryDataStream

    The value of the DataMatrix as a stream.

    System.Int32 Size

    The width and height of the DataMatrix in pixels.

    Returns
    Type Description
    GeneratedBarcode

    A GeneratedBarcode object for the DataMatrix which can be manipulated, annotated, and saved to an IronDrawing object, an image file, a PDF, a MediaURL, or a data stream.

    CreateDataMatrix(String, DataMatrixWriter.DataMatrixShape, Int32, Int32)

    Renders a DataMatrix from a String of data. UTF-8 fully supported.

    Overload methods and methods of the created GeneratedBarcode object allow for barcode sizes and colors to be customized.

    Declaration
    public static GeneratedBarcode CreateDataMatrix(string Value, DataMatrixWriter.DataMatrixShape Shape, int Width = 500, int Height = 500)
    Parameters
    Type Name Description
    System.String Value

    The value of the DataMatrix as a string. Also suitable for URLS.

    DataMatrixWriter.DataMatrixShape Shape

    The shape of the DataMatrix.

    System.Int32 Width

    The width of the DataMatrix in pixels.

    System.Int32 Height

    The height of the DataMatrix in pixels.

    Returns
    Type Description
    GeneratedBarcode

    A GeneratedBarcode object for the DataMatrix which can be manipulated, annotated, and saved to an IronDrawing object, an image file, a PDF, a MediaURL, or a data stream.

    CreateDataMatrix(String, Int32)

    Renders a Square DataMatrix from a string of data. UTF-8 fully supported. For rendering of a rectangular DataMatrix, please find another overload of this method that supports width and height.

    Overload methods and methods of the created GeneratedBarcode object allow for barcode sizes and colors to be customized.

    See method overloads for rectangular DataMatrix shapes.

    Declaration
    public static GeneratedBarcode CreateDataMatrix(string Value, int Size = 500)
    Parameters
    Type Name Description
    System.String Value

    The value of the DataMatrix as a string. Also suitable for URLS.

    System.Int32 Size

    The width and height of the DataMatrix in pixels.

    Returns
    Type Description
    GeneratedBarcode

    A GeneratedBarcode object for the DataMatrix which can be manipulated, annotated, and saved to an IronDrawing object, an image file, a PDF, a MediaURL, or a data stream.

    ☀
    ☾
    Downloads
    • Download with Nuget
    • Free 30-Day Trial Key
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronBarcode to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronBarcode free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.