Skip to content
ChartForgeX
Class

ChartPictorialArtwork

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed

One immutable captured pictorial image, reused by native SVG and PNG symbol placements.

Inheritance

  • object
  • ChartPictorialArtwork

Remarks

Artwork keeps its own colors. It is fitted centrally within each symbol slot; partial values clip the fitted image rectangle. SVG input is rasterized once at the caller's dimensions, not retained as vector markup. No URL or file is resolved.

Usage

Explore 4 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.

Accepted by parameters 1

Methods

public static ChartPictorialArtwork FromImage(RgbaImage image) #

Captures caller-owned RGBA pixels without retaining their mutable array.

Parameters

image ChartForgeX.Raster.RgbaImage required
The complete source image, read only during this call.

Returns

ChartPictorialArtwork Independent immutable artwork.
public static ChartPictorialArtwork FromSvg(string svg, int width, int height) #

Captures the strict supported SVG subset as pixels at explicit dimensions.

Parameters

svg string required
A complete SVG document. The shared parser prohibits DTDs and bounds document size/depth.
width int required
The captured raster width, independent of the SVG's declared viewport.
height int required
The captured raster height.

Returns

ChartPictorialArtwork Independent image artwork. Original SVG markup is never embedded in the exported document.

Properties

public int Width { get; } #

Gets the captured source width in pixels.

public int Height { get; } #

Gets the captured source height in pixels.