API Reference
Class
DataMatrixBuilder
Fluent Data Matrix builder.
Inheritance
- Object
- DataMatrixBuilder
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method DataMatrixCode.Create
- Method DataMatrixBuilder.WithColors
- Method DataMatrixBuilder.WithHtmlEmailSafeTable
- Method DataMatrixBuilder.WithIcoPreserveAspectRatio
- Method DataMatrixBuilder.WithIcoSizes
- Method DataMatrixBuilder.WithJpegOptions
- Method DataMatrixBuilder.WithJpegQuality
- Method DataMatrixBuilder.WithMode
- Method DataMatrixBuilder.WithModuleSize
- Method DataMatrixBuilder.WithOptions
- Method DataMatrixBuilder.WithQuietZone
Methods
public String Ascii(MatrixAsciiRenderOptions options = null) #Returns:
StringRenders ASCII text.
Parameters
- options CodeGlyphX.Rendering.Ascii.MatrixAsciiRenderOptions = null
public String Eps(RenderMode renderMode = Vector) #Returns:
StringRenders EPS text.
Parameters
- renderMode CodeGlyphX.Rendering.RenderMode = Vector
- Vector or raster output.
public Byte[] Pdf(RenderMode renderMode = Vector) #Returns:
Byte[]Renders PDF bytes.
Parameters
- renderMode CodeGlyphX.Rendering.RenderMode = Vector
- Vector or raster output.
public String Save(String path, String title = null) #Returns:
StringSaves output based on file extension.
Parameters
- path System.String
- title System.String = null
public String SaveEps(String path, RenderMode renderMode = Vector) #Returns:
StringSaves EPS to a file.
Parameters
- path System.String
- Output file path.
- renderMode CodeGlyphX.Rendering.RenderMode = Vector
- Vector or raster output.
public String SaveHtml(String path, String title = null) #Returns:
StringSaves HTML to a file.
Parameters
- path System.String
- title System.String = null
public String SaveJpeg(String path) #Returns:
StringSaves JPEG to a file.
Parameters
- path System.String
public String SavePdf(String path, RenderMode renderMode = Vector) #Returns:
StringSaves PDF to a file.
Parameters
- path System.String
- Output file path.
- renderMode CodeGlyphX.Rendering.RenderMode = Vector
- Vector or raster output.
public String SaveWebp(String path) #Returns:
StringSaves WebP to a file.
Parameters
- path System.String
public DataMatrixBuilder WithColors(Rgba32 foreground, Rgba32 background) #Returns:
DataMatrixBuilderSets foreground/background colors.
Parameters
- foreground CodeGlyphX.Rendering.Png.Rgba32
- background CodeGlyphX.Rendering.Png.Rgba32
public DataMatrixBuilder WithHtmlEmailSafeTable(Boolean enabled = true) #Returns:
DataMatrixBuilderEnables HTML email-safe table rendering.
Parameters
- enabled System.Boolean = true
public DataMatrixBuilder WithIcoPreserveAspectRatio(Boolean enabled = true) #Returns:
DataMatrixBuilderSets ICO aspect ratio preservation behavior.
Parameters
- enabled System.Boolean = true
public DataMatrixBuilder WithIcoSizes(params Int32[] sizes) #Returns:
DataMatrixBuilderSets ICO output sizes (in pixels).
Parameters
- sizes System.Int32[]
public DataMatrixBuilder WithJpegOptions(JpegEncodeOptions options) #Returns:
DataMatrixBuilderSets JPEG encoding options.
Parameters
- options CodeGlyphX.Rendering.Jpeg.JpegEncodeOptions
public DataMatrixBuilder WithJpegQuality(Int32 quality) #Returns:
DataMatrixBuilderSets JPEG quality (1..100).
Parameters
- quality System.Int32
public DataMatrixBuilder WithMode(DataMatrixEncodingMode mode) #Returns:
DataMatrixBuilderSets the encoding mode.
Parameters
- mode CodeGlyphX.DataMatrix.DataMatrixEncodingMode
public DataMatrixBuilder WithModuleSize(Int32 moduleSize) #Returns:
DataMatrixBuilderSets module size in pixels.
Parameters
- moduleSize System.Int32
public DataMatrixBuilder WithOptions(Action<MatrixOptions> configure) #Returns:
DataMatrixBuilderMutates rendering options.
Parameters
- configure System.Action{CodeGlyphX.MatrixOptions}
public DataMatrixBuilder WithQuietZone(Int32 quietZone) #Returns:
DataMatrixBuilderSets quiet zone size in modules.
Parameters
- quietZone System.Int32