Skip to content

StackSplit

Namespace Nfty.Core.Imaging in assembly Nfty.Core.

public readonly struct StackSplit : IEquatable<StackSplit>

A recipe's reference layers split around the one being edited: what paints under it, and what paints over it.

The split is the whole point of the feature — sunglasses sit above a face and below a hat, so a single flat underlay would show neither correctly. It is also the shape the caching wants: the two stacks are composited once each and reused across every brush stroke, invalidated only when the reference selection changes.

Constructors

StackSplit(IReadOnlyList<string>, IReadOnlyList<string>)

public StackSplit(IReadOnlyList<string> Below, IReadOnlyList<string> Above);

Parameters

  • Below (IReadOnlyList<string>) - Enabled layers painting beneath the edited one, bottom-to-top — ready to hand straight to StackPreview.Render().
  • Above (IReadOnlyList<string>) - Enabled layers painting over the edited one, bottom-to-top, likewise.

Properties

Above

public IReadOnlyList<string> Above { get; init; }

Enabled layers painting over the edited one, bottom-to-top, likewise.

Below

public IReadOnlyList<string> Below { get; init; }

Enabled layers painting beneath the edited one, bottom-to-top — ready to hand straight to StackPreview.Render().