Skip to content
ChartForgeX
Class

VisualInnerShadow

ChartForgeX.Effects

Namespace
ChartForgeX.Effects
Assembly
ChartForgeX
Modifiers
sealed

Immutable finite inset alpha shadow preserving the original source's viewport and alpha.

Inheritance

  • object
  • VisualInnerShadow

Remarks

Positive spread thickens the inset by eroding source alpha before the existing Gaussian boxes. The complementary shifted field is tinted SourceAtop the original source in gamma-sRGB16. Source exterior alpha is zero, so complementary exterior coverage is one.

Usage

Explore 3 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 2

Constructors

public VisualInnerShadow(ChartColor color, int offsetX, int offsetY, double sigmaX, double? sigmaY = null, int spread = 0, bool orderedDither = true, double opacity = 1) #

Creates an explicit inner shadow; ordinary source and theme defaults are unchanged.

Parameters

color ChartForgeX.Primitives.ChartColor required
Resolved literal tint, whose alpha multiplies complementary coverage.
offsetX int required
Signed horizontal logical-pixel field offset.
offsetY int required
Signed vertical logical-pixel field offset.
sigmaX double required
Logical horizontal Gaussian target; at most 128 device pixels.
sigmaY double? = null optional
Optional vertical target; null uses sigmaX.
spread int = 0 optional
Signed logical inset radius; positive erodes source alpha and thickens the inset.
orderedDither bool = true optional
Uses the existing final RGB quantizer; source alpha stays exact.
opacity double = 1 optional
Finite 0..1 raw tint multiplier applied before final byte conversion.

Properties

public ChartColor Color { get; } #

Gets the resolved literal tint.

public int OffsetX { get; } #

Gets the signed horizontal logical offset.

public int OffsetY { get; } #

Gets the signed vertical logical offset.

public double SigmaX { get; } #

Gets the horizontal logical Gaussian target.

public double SigmaY { get; } #

Gets the vertical logical Gaussian target.

public int Spread { get; } #

Gets signed inset spread; positive erodes the source field.

public bool OrderedDither { get; } #

Gets the final ordered RGB dither policy.

public double Opacity { get; } #

Gets raw tint opacity, independent of byte color alpha.