ChartFill
ChartForgeX.Core
An immutable, dependency-free fill shared by chart SVG and native raster output.
Inheritance
- object
- ChartFill
Remarks
Gradient coordinates are fractions of each mark's bounds: (0,0) is top-left and (1,1) is bottom-right. Images are embedded pixel snapshots; no files, URLs, browser scripts or external I/O are required.
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 6
- Method ChartFill.Image
- Method ChartFill.LinearGradient
- Method ChartFill.Pattern
- Method ChartFill.RadialGradient
- Property ChartItemStyle.Fill
- Property ChartSeries.Fill
Accepted by parameters 2
- Constructor ChartItemStyle.ChartItemStyle
- Method ChartSeries.WithFill
Methods
public static ChartFill Image(RgbaImage image) #Copies RGBA pixels and stretches the embedded image to each filled mark's bounds.
Parameters
- image ChartForgeX.Raster.RgbaImage
Returns
ChartFillpublic static ChartFill LinearGradient(ChartPoint start, ChartPoint end, params ChartGradientStop[] stops) #Creates a straight gradient with at least two ordered stops.
Parameters
- start ChartForgeX.Primitives.ChartPoint
- end ChartForgeX.Primitives.ChartPoint
- stops ChartForgeX.Core.ChartGradientStop[]
Returns
ChartFillpublic static ChartFill Pattern(RgbaImage image, double tileWidth, double tileHeight) #Copies RGBA pixels and repeats them from the mark's top-left at the specified logical tile size.
Parameters
- image ChartForgeX.Raster.RgbaImage
- tileWidth double
- tileHeight double
Returns
ChartFillpublic static ChartFill RadialGradient(ChartPoint center, double radius, params ChartGradientStop[] stops) #Creates an elliptical gradient whose center and radius use normalized mark coordinates.
Parameters
- center ChartForgeX.Primitives.ChartPoint
- radius double
- stops ChartForgeX.Core.ChartGradientStop[]
Returns
ChartFillInherited Methods
Properties
public ChartPoint Start { get; } #Gets the linear start or radial center in normalized mark coordinates.
public ChartPoint End { get; } #Gets the linear endpoint in normalized mark coordinates.
public double Radius { get; } #Gets the radial radius as a fraction of mark width and height.
public IReadOnlyList<ChartGradientStop> Stops { get; } #Gets the detached ordered stops; image fills have no stops.
public double TileWidth { get; } #Gets the repeating tile width in logical chart units; zero for other fill kinds.
public double TileHeight { get; } #Gets the repeating tile height in logical chart units; zero for other fill kinds.