Class
VisualInnerShadow
ChartForgeX.Effects
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.
Returned or exposed by 1
Accepted by parameters 2
- Method PreparedVisual.CaptureLayer
- Method PreparedVisual.WithInnerShadow
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
- Resolved literal tint, whose alpha multiplies complementary coverage.
- offsetX int
- Signed horizontal logical-pixel field offset.
- offsetY int
- Signed vertical logical-pixel field offset.
- sigmaX double
- Logical horizontal Gaussian target; at most 128 device pixels.
- sigmaY double? = null
- Optional vertical target; null uses sigmaX.
- spread int = 0
- Signed logical inset radius; positive erodes source alpha and thickens the inset.
- orderedDither bool = true
- Uses the existing final RGB quantizer; source alpha stays exact.
- opacity double = 1
- Finite 0..1 raw tint multiplier applied before final byte conversion.