Skip to content
ChartForgeX
Class

CapturedVisualLayer

ChartForgeX.Rendering

Namespace
ChartForgeX.Rendering
Assembly
ChartForgeX
Modifiers
sealed

Immutable fixed-density native layer captured from one complete prepared child, with its support and source kept distinct.

Inheritance

  • object
  • CapturedVisualLayer

Remarks

The source remains the editable/semantic prepared owner. Visual is a static baked image: it does not duplicate individual source marks as interactive targets and does not recolor its pixels through later SVG host variables.

Usage

Explore 8 API references to this type

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

Accepted by parameters 4

Methods

public RgbaImage ToImage() #

Returns an independent mutable copy of the exact captured device pixels.

Returns

RgbaImage
public CapturedVisualLayer WithMask(VisualMask mask, CancellationToken cancellationToken = default) #

Masks these already captured pixels, including effect overflow, without repainting the original prepared source.

Parameters

mask ChartForgeX.Effects.VisualMask required
Detached mask in original child coordinates, matching this layer's device density and grid.
cancellationToken System.Threading.CancellationToken = default optional
Cancels before allocations, within rows and before publishing a new immutable layer.

Returns

CapturedVisualLayer A new static capture with unchanged Source, SourceBounds, Bounds, density and semantic identities.

Properties

public PreparedVisual Source { get; } #

Gets the unchanged prepared source, retaining its original geometry, projections and semantic facts.

public ChartRect SourceBounds { get; } #

Gets the original complete child viewport in its logical coordinates.

public ChartRect Bounds { get; } #

Gets the outward-rounded source plus propagated kernel support, in original child logical coordinates.

public int PixelsPerUnit { get; } #

Gets the captured native device samples per logical unit. Later scaling resamples these fixed pixels.

public PreparedVisual Visual { get; } #

Gets a self-contained static image scene for ordinary SVG/PNG export and composition.

Extension Methods

public static VisualArtifact ToArtifact(CapturedVisualLayer layer, string? id = null) #

Creates a static artifact with source facts and a distinct captured output frame.

Parameters

layer ChartForgeX.Rendering.CapturedVisualLayer required
The immutable completed native capture.
id string? = null optional
Optional stable source artifact identity.

Returns

VisualArtifact A native paint artifact with a lazy explicit portable boundary.