Skip to content
ChartForgeX
Class

VisualCanvasHeroBadgeLayer

ChartForgeX.Composition

Namespace
ChartForgeX.Composition
Assembly
ChartForgeX.Visuals
Modifiers
sealed

Central logo or icon badge layer.

Inheritance

Constructors

public VisualCanvasHeroBadgeLayer(double x, double y, double width, double height, string symbol) #

Initializes a hero badge layer.

Parameters

x double required
The badge X coordinate.
y double required
The badge Y coordinate.
width double required
The badge width.
height double required
The badge height.
symbol string required
The badge symbol.

Properties

public string Symbol { get; set; } #

Gets or sets the badge symbol.

public ChartColor? Accent { get; set; } #

Gets or sets the accent color. Null uses the theme's secondary accent.

public string ImageHref { get; set; } #

Gets or sets an SVG-compatible image reference for the badge logo. Renderers never fetch it for PNG output.

public byte[]? ImageRgba { get; set; } #

Gets or sets borrowed source RGBA pixels. SVG embeds them as PNG when ImageHref is empty.

public int ImageSourceWidth { get; set; } #

Gets or sets the source bitmap width for PNG output.

public int ImageSourceHeight { get; set; } #

Gets or sets the source bitmap height for PNG output.

public VisualCanvasImageFit ImageFit { get; set; } #

Gets or sets how the badge image is placed inside the badge.

public double ImagePadding { get; set; } #

Gets or sets padding between the badge shell and image content.

public double ImageOpacity { get; set; } #

Gets or sets badge image opacity from zero to one.

public bool HasImage { get; } #

Gets whether the badge has image content for at least one renderer.