CapturedVisualLayer
ChartForgeX.Rendering
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.
Returned or exposed by 4
Accepted by parameters 4
- Method ImageComposition.DrawLayer
- Method ImageComposition.DrawLayer
- Extension method CapturedVisualLayer.ToArtifact
- Method VisualArtifactRendering.ToArtifact
Methods
public RgbaImage ToImage() #Returns an independent mutable copy of the exact captured device pixels.
Returns
RgbaImagepublic 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
- Detached mask in original child coordinates, matching this layer's device density and grid.
- cancellationToken System.Threading.CancellationToken = default
- 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.Inherited Methods
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
- The immutable completed native capture.
- id string? = null
- Optional stable source artifact identity.