CodeGlyphX logo
CodeGlyphX

API Reference

Class

QrPngCanvasSplashOptions

Namespace CodeGlyphX.Rendering.Png
Assembly CodeGlyphX
Modifiers sealed

Paint splash/drip options for the canvas background.

Inheritance

  • Object
  • QrPngCanvasSplashOptions

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; } #

Splash color (alpha recommended).

public Rgba32[] Colors { get; set; } #

Optional multi-color splash palette. When set, a random entry is used per splash.

public Int32 Count { get; set; } #

Number of splash blobs to draw.

public Int32 MinRadiusPx { get; set; } #

Minimum splash radius in pixels.

public Int32 MaxRadiusPx { get; set; } #

Maximum splash radius in pixels.

public Int32 SpreadPx { get; set; } #

How far splashes can extend beyond the QR bounds.

public QrPngCanvasSplashPlacement Placement { get; set; } #

Where splashes are placed. Defaults to AroundQr.

public Int32 EdgeBandPx { get; set; } #

Optional edge band width (in pixels) when Placement is CanvasEdges. When 0, a sensible band is derived from splash size and spread.

public Int32 Seed { get; set; } #

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

public Double DripChance { get; set; } #

Chance (0..1) that a splash will include a downward drip.

public Int32 DripLengthPx { get; set; } #

Maximum drip length in pixels.

public Int32 DripWidthPx { get; set; } #

Drip width in pixels.

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.