Skip to content
ChartForgeX
Class

VisualCanvasImageLayer

ChartForgeX.Composition

Namespace
ChartForgeX.Composition
Assembly
ChartForgeX.Visuals
Modifiers
sealed

Image layer for host-provided bitmap or SVG-compatible image references.

Inheritance

Constructors

public VisualCanvasImageLayer(double x, double y, double width, double height) #

Initializes an image layer.

Parameters

x double required
The image X coordinate.
y double required
The image Y coordinate.
width double required
The rendered image width.
height double required
The rendered image height.

Properties

public string Href { get; set; } #

Gets or sets the SVG image href. Renderers do not fetch it for PNG output.

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

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

public int SourceWidth { get; set; } #

Gets or sets the source bitmap width for PNG output.

public int SourceHeight { get; set; } #

Gets or sets the source bitmap height for PNG output.

public VisualCanvasImageFit Fit { get; set; } #

Gets or sets how the source image is placed inside the destination rectangle.

public double Opacity { get; set; } #

Gets or sets image opacity from zero to one.