Class
VisualCanvasHeroBadgeLayer
ChartForgeX.Composition
Central logo or icon badge layer.
Inheritance
- VisualCanvasLayer
- VisualCanvasHeroBadgeLayer
Constructors
public VisualCanvasHeroBadgeLayer(double x, double y, double width, double height, string symbol) #Initializes a hero badge layer.
Parameters
- x double
- The badge X coordinate.
- y double
- The badge Y coordinate.
- width double
- The badge width.
- height double
- The badge height.
- symbol string
- The badge symbol.
Inherited Methods
Properties
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.