CodeGlyphX logo
CodeGlyphX

API Reference

Class

MatrixPngRenderOptions

Namespace CodeGlyphX.Rendering.Png
Assembly CodeGlyphX
Modifiers sealed

Options for rendering generic 2D matrices to PNG.

Inheritance

  • Object
  • MatrixPngRenderOptions

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

Methods

public MatrixPngRenderOptions WithBackground(Rgba32 color) #
Returns: MatrixPngRenderOptions

Sets the background color.

Parameters

color CodeGlyphX.Rendering.Png.Rgba32 requiredposition: 0
public MatrixPngRenderOptions WithForeground(Rgba32 color) #
Returns: MatrixPngRenderOptions

Sets the foreground color.

Parameters

color CodeGlyphX.Rendering.Png.Rgba32 requiredposition: 0
public MatrixPngRenderOptions WithModuleSize(Int32 size) #
Returns: MatrixPngRenderOptions

Sets the module size in pixels.

Parameters

size System.Int32 requiredposition: 0
public MatrixPngRenderOptions WithPngCompressionLevel(Int32 level) #
Returns: MatrixPngRenderOptions

Sets the PNG compression level (0 = stored/uncompressed, 1-9 = compressed).

Parameters

level System.Int32 requiredposition: 0
public MatrixPngRenderOptions WithQuietZone(Int32 quietZone) #
Returns: MatrixPngRenderOptions

Sets the quiet zone size in modules.

Parameters

quietZone System.Int32 requiredposition: 0

Properties

public Int32 ModuleSize { get; set; } #

Module size in pixels.

public Int32 QuietZone { get; set; } #

Quiet zone size in modules.

public Rgba32 Foreground { get; set; } #

Foreground color.

public Rgba32 Background { get; set; } #

Background color.

public Int32 PngCompressionLevel { get; set; } #

PNG compression level (0 = stored/uncompressed, 1-9 = compressed).