CodeGlyphX logo
CodeGlyphX

API Reference

Class

QrPngCanvasGrainOptions

Namespace CodeGlyphX.Rendering.Png
Assembly CodeGlyphX
Modifiers sealed

Grain/noise texture options for the canvas background.

Inheritance

  • Object
  • QrPngCanvasGrainOptions

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

Constructors

Properties

public Rgba32 Color { get; set; } #

Grain color (alpha recommended).

public Double Density { get; set; } #

Grain density (0..1).

public Int32 PixelSizePx { get; set; } #

Grain dot size in pixels.

public Double AlphaJitter { get; set; } #

Alpha jitter amount (0..1).

public Int32 Seed { get; set; } #

Random seed used to place grain. Use 0 to auto-randomize per render.

public Int32 BandPx { get; set; } #

Optional edge band width in pixels. When greater than 0, grain is limited to the canvas edges.

public Boolean ProtectQrArea { get; set; } #

When true, never draws inside the QR area.

public Byte QrAreaAlphaMax { get; set; } #

Maximum alpha allowed inside the QR area when ProtectQrArea is false. Set to 0 to apply no alpha limit.