API Reference
VisualCanvas
A fixed-size layered visual surface for wallpapers, social images, report covers, and hero graphics.
Inheritance
- Object
- VisualCanvas
Usage
Explore 105 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 42
- Extension method VisualCanvas.AddChart
- Extension method VisualCanvas.AddChartGrid
- Extension method VisualCanvas.AddHeroBadgeImageFile
- Extension method VisualCanvas.AddImageBytes
- Extension method VisualCanvas.AddImageFile
- Extension method VisualCanvas.AddRasterImage
- Extension method VisualCanvas.AddTopology
- Extension method VisualCanvas.AddVisualBlock
- Extension method VisualCanvas.AddVisualGrid
- Method VisualCanvas.AddFeatureStrip
- Method VisualCanvas.AddHeroBadge
- Method VisualCanvas.AddHeroTitle
- Method VisualCanvas.AddImage
- Method VisualCanvas.AddInfoTile
- Method VisualCanvas.AddKeyValueBlock
- Method VisualCanvas.AddLayer
- Method VisualCanvas.AddText
- Method VisualCanvas.AsDecorative
- Method VisualCanvas.ConfigureAccessibility
- Method VisualCanvas.Create
- Method VisualCanvas.CreateDesktopWallpaper
- Method VisualCanvas.CreateSocialPreview
- Method VisualCanvas.WithBackdrop
- Method VisualCanvas.WithBackground
- Method VisualCanvas.WithDesignTokens
- Method VisualCanvas.WithFixedLayout
- Method VisualCanvas.WithOutputSize
- Method VisualCanvas.WithPngOutputScale
- Method VisualCanvas.WithResponsiveLayout
- Method VisualCanvas.WithTheme
- Method VisualCanvas.WithTitle
- Extension method RgbaImage.ToVisualCanvas
- Method VisualsExtensions.AddChart
- Method VisualsExtensions.AddChartGrid
- Method VisualsExtensions.AddHeroBadgeImageFile
- Method VisualsExtensions.AddImageBytes
- Method VisualsExtensions.AddImageFile
- Method VisualsExtensions.AddRasterImage
- Method VisualsExtensions.AddTopology
- Method VisualsExtensions.AddVisualBlock
- Method VisualsExtensions.AddVisualGrid
- Method VisualsExtensions.ToVisualCanvas
Accepted by parameters 63
- Method ImageComposition.DrawVisualCanvas
- Method PngVisualCanvasRenderer.Render
- Method SvgVisualCanvasRenderer.Render
- Extension method VisualCanvas.AddChart
- Extension method VisualCanvas.AddChartGrid
- Extension method VisualCanvas.AddHeroBadgeImageFile
- Extension method VisualCanvas.AddImageBytes
- Extension method VisualCanvas.AddImageFile
- Extension method VisualCanvas.AddRasterImage
- Extension method VisualCanvas.AddTopology
- Extension method VisualCanvas.AddVisualBlock
- Extension method VisualCanvas.AddVisualGrid
- Extension method VisualCanvas.Save
- Extension method VisualCanvas.SaveBmp
- Extension method VisualCanvas.SaveHtml
- Extension method VisualCanvas.SavePng
- Extension method VisualCanvas.SavePpm
- Extension method VisualCanvas.SaveRasterImage
- Extension method VisualCanvas.SaveSvg
- Extension method VisualCanvas.SaveTiff
- Extension method VisualCanvas.ToBmp
- Extension method VisualCanvas.ToHtmlPage
- Extension method VisualCanvas.ToPng
- Extension method VisualCanvas.ToPpm
- Extension method VisualCanvas.ToRasterImage
- Extension method VisualCanvas.ToRgbaImage
- Extension method VisualCanvas.ToSvg
- Extension method VisualCanvas.ToTiff
- Extension method VisualCanvas.ToVisualArtifact
- Extension method VisualCanvas.WriteBmp
- Extension method VisualCanvas.WritePpm
- Extension method VisualCanvas.WriteRasterImage
- Extension method VisualCanvas.WriteTiff
- Method VisualCanvasArtifactRendering.ToVisualArtifact
- Method VisualsExtensions.AddChart
- Method VisualsExtensions.AddChartGrid
- Method VisualsExtensions.AddHeroBadgeImageFile
- Method VisualsExtensions.AddImageBytes
- Method VisualsExtensions.AddImageFile
- Method VisualsExtensions.AddRasterImage
- Method VisualsExtensions.AddTopology
- Method VisualsExtensions.AddVisualBlock
- Method VisualsExtensions.AddVisualGrid
- Method VisualsExtensions.Save
- Method VisualsExtensions.SaveBmp
- Method VisualsExtensions.SaveHtml
- Method VisualsExtensions.SavePng
- Method VisualsExtensions.SavePpm
- Method VisualsExtensions.SaveRasterImage
- Method VisualsExtensions.SaveSvg
- Method VisualsExtensions.SaveTiff
- Method VisualsExtensions.ToBmp
- Method VisualsExtensions.ToHtmlPage
- Method VisualsExtensions.ToPng
- Method VisualsExtensions.ToPpm
- Method VisualsExtensions.ToRasterImage
- Method VisualsExtensions.ToRgbaImage
- Method VisualsExtensions.ToSvg
- Method VisualsExtensions.ToTiff
- Method VisualsExtensions.WriteBmp
- Method VisualsExtensions.WritePpm
- Method VisualsExtensions.WriteRasterImage
- Method VisualsExtensions.WriteTiff
Methods
public VisualCanvas AddFeatureStrip(Double x, Double y, Double width, Double height, IEnumerable<VisualCanvasFeatureItem> items) #VisualCanvasAdds a compact feature strip.
Parameters
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- items System.Collections.Generic.IEnumerable<ChartForgeX.Composition.VisualCanvasFeatureItem>
public VisualCanvas AddFeatureStrip(VisualCanvasPlacement placement, Double width, Double height, IEnumerable<VisualCanvasFeatureItem> items) #VisualCanvasAdds a compact feature strip using anchor-based placement.
Parameters
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- items System.Collections.Generic.IEnumerable<ChartForgeX.Composition.VisualCanvasFeatureItem>
public VisualCanvas AddHeroBadge(RgbaImage image, Double x, Double y, Double width, Double height, String symbol = "", ChartColor? accent = null, VisualCanvasImageFit fit = Contain, Double padding = 10, Double opacity = 1) #VisualCanvasAdds a central badge whose bitmap content is an independent RGBA snapshot.
Parameters
- image ChartForgeX.Raster.RgbaImage
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- symbol System.String = ""
- accent ChartForgeX.Primitives.ChartColor? = null
- fit ChartForgeX.Composition.VisualCanvasImageFit = Contain
- padding System.Double = 10
- opacity System.Double = 1
public VisualCanvas AddHeroBadge(RgbaImage image, VisualCanvasPlacement placement, Double width, Double height, String symbol = "", ChartColor? accent = null, VisualCanvasImageFit fit = Contain, Double padding = 10, Double opacity = 1) #VisualCanvasAdds a central badge with bitmap snapshot content using anchor-based placement.
Parameters
- image ChartForgeX.Raster.RgbaImage
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- symbol System.String = ""
- accent ChartForgeX.Primitives.ChartColor? = null
- fit ChartForgeX.Composition.VisualCanvasImageFit = Contain
- padding System.Double = 10
- opacity System.Double = 1
public VisualCanvas AddHeroBadge(Double x, Double y, Double width, Double height, String symbol, ChartColor? accent = null) #VisualCanvasAdds a central icon or logo badge.
Parameters
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- symbol System.String
- accent ChartForgeX.Primitives.ChartColor? = null
public VisualCanvas AddHeroBadge(Double x, Double y, Double width, Double height, String symbol, ChartColor? accent, String? imageHref, Byte[]? imageRgba = null, Int32 imageSourceWidth = 0, Int32 imageSourceHeight = 0, VisualCanvasImageFit imageFit = Contain, Double imagePadding = 10, Double imageOpacity = 1) #VisualCanvasAdds a central icon or logo badge with optional image content.
Parameters
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- symbol System.String
- accent ChartForgeX.Primitives.ChartColor?
- imageHref System.String?
- imageRgba System.Byte[]? = null
- imageSourceWidth System.Int32 = 0
- imageSourceHeight System.Int32 = 0
- imageFit ChartForgeX.Composition.VisualCanvasImageFit = Contain
- imagePadding System.Double = 10
- imageOpacity System.Double = 1
public VisualCanvas AddHeroBadge(VisualCanvasPlacement placement, Double width, Double height, String symbol, ChartColor? accent = null) #VisualCanvasAdds a central icon or logo badge using anchor-based placement.
Parameters
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- symbol System.String
- accent ChartForgeX.Primitives.ChartColor? = null
public VisualCanvas AddHeroBadge(VisualCanvasPlacement placement, Double width, Double height, String symbol, ChartColor? accent, String? imageHref, Byte[]? imageRgba = null, Int32 imageSourceWidth = 0, Int32 imageSourceHeight = 0, VisualCanvasImageFit imageFit = Contain, Double imagePadding = 10, Double imageOpacity = 1) #VisualCanvasAdds a central icon or logo badge with optional image content using anchor-based placement.
Parameters
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- symbol System.String
- accent ChartForgeX.Primitives.ChartColor?
- imageHref System.String?
- imageRgba System.Byte[]? = null
- imageSourceWidth System.Int32 = 0
- imageSourceHeight System.Int32 = 0
- imageFit ChartForgeX.Composition.VisualCanvasImageFit = Contain
- imagePadding System.Double = 10
- imageOpacity System.Double = 1
public VisualCanvas AddHeroTitle(Double x, Double y, Double width, Double fontSize, IEnumerable<VisualCanvasTextRun> runs, TextAlignment alignment = Center) #VisualCanvasAdds a multi-color hero title layer.
Parameters
- x System.Double
- y System.Double
- width System.Double
- fontSize System.Double
- runs System.Collections.Generic.IEnumerable<ChartForgeX.Composition.VisualCanvasTextRun>
- alignment ChartForgeX.Typography.TextAlignment = Center
public VisualCanvas AddHeroTitle(VisualCanvasPlacement placement, Double width, Double fontSize, IEnumerable<VisualCanvasTextRun> runs, TextAlignment alignment = Center) #VisualCanvasAdds a multi-color hero title layer using anchor-based placement.
Parameters
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- fontSize System.Double
- runs System.Collections.Generic.IEnumerable<ChartForgeX.Composition.VisualCanvasTextRun>
- alignment ChartForgeX.Typography.TextAlignment = Center
public VisualCanvas AddImage(RgbaImage image, Double x, Double y, Double width, Double height, Double opacity = 1, VisualCanvasImageFit fit = Stretch) #VisualCanvasAdds a bitmap layer from an independent snapshot of the supplied RGBA image.
Parameters
- image ChartForgeX.Raster.RgbaImage
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- opacity System.Double = 1
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
public VisualCanvas AddImage(RgbaImage image, VisualCanvasPlacement placement, Double width, Double height, Double opacity = 1, VisualCanvasImageFit fit = Stretch) #VisualCanvasAdds a bitmap snapshot using anchor-based placement.
Parameters
- image ChartForgeX.Raster.RgbaImage
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- opacity System.Double = 1
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
public VisualCanvas AddImage(Double x, Double y, Double width, Double height, String? href = null, Byte[]? rgba = null, Int32 sourceWidth = 0, Int32 sourceHeight = 0, Double opacity = 1, VisualCanvasImageFit fit = Stretch) #VisualCanvasAdds an image layer from an SVG resource reference, borrowed RGBA pixels, or an explicit pair of vector and raster representations.
Parameters
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- href System.String? = null
- rgba System.Byte[]? = null
- sourceWidth System.Int32 = 0
- sourceHeight System.Int32 = 0
- opacity System.Double = 1
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
public VisualCanvas AddImage(VisualCanvasPlacement placement, Double width, Double height, String? href = null, Byte[]? rgba = null, Int32 sourceWidth = 0, Int32 sourceHeight = 0, Double opacity = 1, VisualCanvasImageFit fit = Stretch) #VisualCanvasAdds an image layer using anchor-based placement.
Parameters
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- href System.String? = null
- rgba System.Byte[]? = null
- sourceWidth System.Int32 = 0
- sourceHeight System.Int32 = 0
- opacity System.Double = 1
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
public VisualCanvas AddInfoTile(Double x, Double y, Double width, Double height, String icon, String label, String value, String? detail = null, ChartColor? accent = null, Double? progress = null, VisualCanvasInfoTileSurfaceStyle surfaceStyle = Glass, VisualCanvasInfoTileIconKind iconKind = Text, VisualCanvasInfoTileMiniChartKind miniChartKind = None, IEnumerable<Double>? miniChartValues = null, Double? miniChartMaximum = null, VisualCanvasTextFitPolicy textFitPolicy = Auto) #VisualCanvasAdds a reusable information tile.
Parameters
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- icon System.String
- label System.String
- value System.String
- detail System.String? = null
- accent ChartForgeX.Primitives.ChartColor? = null
- progress System.Double? = null
- surfaceStyle ChartForgeX.Composition.VisualCanvasInfoTileSurfaceStyle = Glass
- iconKind ChartForgeX.Composition.VisualCanvasInfoTileIconKind = Text
- miniChartKind ChartForgeX.Composition.VisualCanvasInfoTileMiniChartKind = None
- miniChartValues System.Collections.Generic.IEnumerable<System.Double>? = null
- miniChartMaximum System.Double? = null
- textFitPolicy ChartForgeX.Composition.VisualCanvasTextFitPolicy = Auto
public VisualCanvas AddInfoTile(VisualCanvasPlacement placement, Double width, Double height, String icon, String label, String value, String? detail = null, ChartColor? accent = null, Double? progress = null, VisualCanvasInfoTileSurfaceStyle surfaceStyle = Glass, VisualCanvasInfoTileIconKind iconKind = Text, VisualCanvasInfoTileMiniChartKind miniChartKind = None, IEnumerable<Double>? miniChartValues = null, Double? miniChartMaximum = null, VisualCanvasTextFitPolicy textFitPolicy = Auto) #VisualCanvasAdds a reusable information tile using anchor-based placement.
Parameters
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- icon System.String
- label System.String
- value System.String
- detail System.String? = null
- accent ChartForgeX.Primitives.ChartColor? = null
- progress System.Double? = null
- surfaceStyle ChartForgeX.Composition.VisualCanvasInfoTileSurfaceStyle = Glass
- iconKind ChartForgeX.Composition.VisualCanvasInfoTileIconKind = Text
- miniChartKind ChartForgeX.Composition.VisualCanvasInfoTileMiniChartKind = None
- miniChartValues System.Collections.Generic.IEnumerable<System.Double>? = null
- miniChartMaximum System.Double? = null
- textFitPolicy ChartForgeX.Composition.VisualCanvasTextFitPolicy = Auto
public VisualCanvas AddKeyValueBlock(Double x, Double y, Double width, IEnumerable<VisualCanvasKeyValueItem> items, Double labelFontSize = 16, Double valueFontSize = 16, Double columnGap = 24, Double rowGap = 4, Double? labelWidth = null, Double? valueWrapWidth = null, ChartColor? labelColor = null, ChartColor? valueColor = null, String? fontFamilyName = null) #VisualCanvasAdds a key/value text block with measured columns and wrapped values.
Parameters
- x System.Double
- y System.Double
- width System.Double
- items System.Collections.Generic.IEnumerable<ChartForgeX.Composition.VisualCanvasKeyValueItem>
- labelFontSize System.Double = 16
- valueFontSize System.Double = 16
- columnGap System.Double = 24
- rowGap System.Double = 4
- labelWidth System.Double? = null
- valueWrapWidth System.Double? = null
- labelColor ChartForgeX.Primitives.ChartColor? = null
- valueColor ChartForgeX.Primitives.ChartColor? = null
- fontFamilyName System.String? = null
public VisualCanvas AddKeyValueBlock(VisualCanvasPlacement placement, Double width, IEnumerable<VisualCanvasKeyValueItem> items, Double labelFontSize = 16, Double valueFontSize = 16, Double columnGap = 24, Double rowGap = 4, Double? labelWidth = null, Double? valueWrapWidth = null, ChartColor? labelColor = null, ChartColor? valueColor = null, String? fontFamilyName = null) #VisualCanvasAdds a key/value text block with measured columns and wrapped values using anchor-based placement.
Parameters
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- items System.Collections.Generic.IEnumerable<ChartForgeX.Composition.VisualCanvasKeyValueItem>
- labelFontSize System.Double = 16
- valueFontSize System.Double = 16
- columnGap System.Double = 24
- rowGap System.Double = 4
- labelWidth System.Double? = null
- valueWrapWidth System.Double? = null
- labelColor ChartForgeX.Primitives.ChartColor? = null
- valueColor ChartForgeX.Primitives.ChartColor? = null
- fontFamilyName System.String? = null
public VisualCanvas AddLayer(VisualCanvasLayer layer) #VisualCanvasAdds a layer to the canvas.
Parameters
- layer ChartForgeX.Composition.VisualCanvasLayer
public VisualCanvas AddText(Double x, Double y, Double width, String text, Double fontSize, TextAlignment alignment = Left, Boolean emphasized = false) #VisualCanvasAdds a plain text layer using the canvas primary foreground at render time.
Parameters
- x System.Double
- y System.Double
- width System.Double
- text System.String
- fontSize System.Double
- alignment ChartForgeX.Typography.TextAlignment = Left
- emphasized System.Boolean = false
public VisualCanvas AddText(Double x, Double y, Double width, String text, Double fontSize, ChartColor color, TextAlignment alignment = Left, Boolean emphasized = false) #VisualCanvasAdds a plain text layer with an explicit color.
Parameters
- x System.Double
- y System.Double
- width System.Double
- text System.String
- fontSize System.Double
- color ChartForgeX.Primitives.ChartColor
- alignment ChartForgeX.Typography.TextAlignment = Left
- emphasized System.Boolean = false
public VisualCanvas AddText(VisualCanvasPlacement placement, Double width, String text, Double fontSize, TextAlignment alignment = Left, Boolean emphasized = false) #VisualCanvasAdds a plain text layer using anchor-based placement and the canvas primary foreground.
Parameters
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- text System.String
- fontSize System.Double
- alignment ChartForgeX.Typography.TextAlignment = Left
- emphasized System.Boolean = false
public VisualCanvas AddText(VisualCanvasPlacement placement, Double width, String text, Double fontSize, ChartColor color, TextAlignment alignment = Left, Boolean emphasized = false) #VisualCanvasAdds a plain text layer using anchor-based placement and an explicit color.
Parameters
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- text System.String
- fontSize System.Double
- color ChartForgeX.Primitives.ChartColor
- alignment ChartForgeX.Typography.TextAlignment = Left
- emphasized System.Boolean = false
public VisualCanvasLayoutReport AnalyzeLayout() #VisualCanvasLayoutReportAnalyzes canvas layer bounds and built-in text fitting decisions without rendering.
public VisualCanvas AsDecorative(Boolean decorative = true) #VisualCanvasMarks the canvas as decorative for capable renderers.
Parameters
- decorative System.Boolean = true
public VisualCanvas ConfigureAccessibility(Action<VisualAccessibility> configure) #VisualCanvasConfigures the canvas text alternative and language metadata.
Parameters
- configure System.Action<ChartForgeX.Accessibility.VisualAccessibility>
public static VisualCanvas Create(Int32 width, Int32 height) #VisualCanvasCreates a fixed-size visual canvas.
Parameters
- width System.Int32
- height System.Int32
public static VisualCanvas CreateDesktopWallpaper() #VisualCanvasCreates a 1920 by 1080 desktop wallpaper canvas.
public static VisualCanvas CreateSocialPreview() #VisualCanvasCreates a 1200 by 630 social preview canvas.
public RgbaImage RenderRgba() #RgbaImageRenders the canvas through its native raster owner at the configured output scale.
public String RenderSvg(String idScope) #StringRenders the canvas through its static SVG owner using a deterministic embedding scope.
Parameters
- idScope System.String
public ChartRect ResolvePlacement(VisualCanvasPlacement placement, Double width, Double height) #ChartRectResolves anchor-based placement against the full canvas.
Parameters
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
public VisualCanvas WithBackdrop(VisualCanvasBackdropStyle style) #VisualCanvasSets the built-in backdrop decoration style.
Parameters
- style ChartForgeX.Composition.VisualCanvasBackdropStyle
public VisualCanvas WithBackground(ChartColor color) #VisualCanvasSets a solid background color.
Parameters
- color ChartForgeX.Primitives.ChartColor
public VisualCanvas WithBackground(ChartColor top, ChartColor bottom) #VisualCanvasSets a vertical background gradient.
Parameters
- top ChartForgeX.Primitives.ChartColor
- bottom ChartForgeX.Primitives.ChartColor
public VisualCanvas WithDesignTokens(VisualDesignTokens tokens) #VisualCanvasApplies shared product-neutral design tokens to the canvas and its renderer theme.
Parameters
- tokens ChartForgeX.Themes.VisualDesignTokens
public VisualCanvas WithFixedLayout() #VisualCanvasUses output dimensions as the layer coordinate space again.
public VisualCanvas WithOutputSize(Int32 width, Int32 height) #VisualCanvasSets output dimensions without changing layer coordinates.
Parameters
- width System.Int32
- height System.Int32
public VisualCanvas WithPngOutputScale(Int32 scale) #VisualCanvasSets the PNG output pixel multiplier.
Parameters
- scale System.Int32
public VisualCanvas WithResponsiveLayout(Int32 designWidth, Int32 designHeight, VisualCanvasImageFit fit = Contain) #VisualCanvasPreserves a design coordinate space while adapting SVG and PNG output to other dimensions.
Parameters
- designWidth System.Int32
- designHeight System.Int32
- fit ChartForgeX.Composition.VisualCanvasImageFit = Contain
public VisualCanvas WithTheme(VisualCanvasTheme theme) #VisualCanvasSets the theme used by built-in visual canvas layers.
Parameters
- theme ChartForgeX.Composition.VisualCanvasTheme
public VisualCanvas WithTitle(String title) #VisualCanvasSets the accessibility title used by SVG output.
Parameters
- title System.String
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public VisualAccessibility Accessibility { get; } #Gets accessibility metadata shared by capable renderers and hosts.
public Int32 DesignWidth { get; } #Gets the coordinate-space width used to lay out layers.
public Int32 DesignHeight { get; } #Gets the coordinate-space height used to lay out layers.
public Boolean IsResponsive { get; } #Gets whether output dimensions differ from the layer design coordinate space.
public VisualCanvasImageFit ResponsiveFit { get; set; } #Gets or sets how the design coordinate space fits the requested output size.
public Int32 Width { get; set; } #Gets or sets the canvas width in pixels.
public Int32 Height { get; set; } #Gets or sets the canvas height in pixels.
public String Title { get; set; } #Gets or sets the accessibility title used by SVG output.
public ChartColor BackgroundTop { get; set; } #Gets or sets the top background color.
public ChartColor BackgroundBottom { get; set; } #Gets or sets the bottom background color.
public VisualCanvasBackdropStyle BackdropStyle { get; set; } #Gets or sets the optional backdrop decoration style.
public VisualCanvasTheme Theme { get; set; } #Gets or sets the theme used by built-in visual canvas layers.
public Int32 PngOutputScale { get; set; } #Gets or sets the PNG output pixel multiplier.
public IReadOnlyList<VisualCanvasLayer> Layers { get; } #Gets the ordered visual canvas layers.
Extension Methods
public static VisualCanvas AddChart(VisualCanvas canvas, Double x, Double y, Double width, Double height, Chart chart, VisualCanvasImageFit fit = Stretch, Double opacity = 1) #VisualCanvasAdds a rendered chart layer to a visual canvas.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- chart ChartForgeX.Core.Chart
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
public static VisualCanvas AddChart(VisualCanvas canvas, VisualCanvasPlacement placement, Double width, Double height, Chart chart, VisualCanvasImageFit fit = Stretch, Double opacity = 1) #VisualCanvasAdds a rendered chart layer to a visual canvas using anchor-based placement.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- chart ChartForgeX.Core.Chart
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
public static VisualCanvas AddChartGrid(VisualCanvas canvas, Double x, Double y, Double width, Double height, ChartGrid grid, VisualCanvasImageFit fit = Stretch, Double opacity = 1) #VisualCanvasAdds a rendered chart grid layer to a visual canvas.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- grid ChartForgeX.Core.ChartGrid
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
public static VisualCanvas AddChartGrid(VisualCanvas canvas, VisualCanvasPlacement placement, Double width, Double height, ChartGrid grid, VisualCanvasImageFit fit = Stretch, Double opacity = 1) #VisualCanvasAdds a rendered chart grid layer to a visual canvas using anchor-based placement.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- grid ChartForgeX.Core.ChartGrid
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
public static VisualCanvas AddHeroBadgeImageFile(VisualCanvas canvas, Double x, Double y, Double width, Double height, String path, String symbol = "", ChartColor? accent = null, VisualCanvasImageFit fit = Contain, Double padding = 10, Double opacity = 1, RasterDecodeOptions? options = null) #VisualCanvasDecodes an image file and adds it as the content of a hero badge.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- path System.String
- symbol System.String = ""
- accent ChartForgeX.Primitives.ChartColor? = null
- fit ChartForgeX.Composition.VisualCanvasImageFit = Contain
- padding System.Double = 10
- opacity System.Double = 1
- options ChartForgeX.Raster.RasterDecodeOptions? = null
public static VisualCanvas AddHeroBadgeImageFile(VisualCanvas canvas, VisualCanvasPlacement placement, Double width, Double height, String path, String symbol = "", ChartColor? accent = null, VisualCanvasImageFit fit = Contain, Double padding = 10, Double opacity = 1, RasterDecodeOptions? options = null) #VisualCanvasDecodes an image file and adds it as the content of a hero badge using anchor-based placement.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- path System.String
- symbol System.String = ""
- accent ChartForgeX.Primitives.ChartColor? = null
- fit ChartForgeX.Composition.VisualCanvasImageFit = Contain
- padding System.Double = 10
- opacity System.Double = 1
- options ChartForgeX.Raster.RasterDecodeOptions? = null
public static VisualCanvas AddImageBytes(VisualCanvas canvas, Double x, Double y, Double width, Double height, Byte[] data, VisualCanvasImageFit fit = Stretch, Double opacity = 1, RasterDecodeOptions? options = null) #VisualCanvasDecodes image bytes and adds them as an image layer to a visual canvas.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- data System.Byte[]
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
- options ChartForgeX.Raster.RasterDecodeOptions? = null
public static VisualCanvas AddImageBytes(VisualCanvas canvas, VisualCanvasPlacement placement, Double width, Double height, Byte[] data, VisualCanvasImageFit fit = Stretch, Double opacity = 1, RasterDecodeOptions? options = null) #VisualCanvasDecodes image bytes and adds them as an image layer using anchor-based placement.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- data System.Byte[]
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
- options ChartForgeX.Raster.RasterDecodeOptions? = null
public static VisualCanvas AddImageFile(VisualCanvas canvas, Double x, Double y, Double width, Double height, String path, VisualCanvasImageFit fit = Stretch, Double opacity = 1, RasterDecodeOptions? options = null) #VisualCanvasDecodes an image file and adds it as an image layer to a visual canvas.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- path System.String
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
- options ChartForgeX.Raster.RasterDecodeOptions? = null
public static VisualCanvas AddImageFile(VisualCanvas canvas, VisualCanvasPlacement placement, Double width, Double height, String path, VisualCanvasImageFit fit = Stretch, Double opacity = 1, RasterDecodeOptions? options = null) #VisualCanvasDecodes an image file and adds it as an image layer using anchor-based placement.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- path System.String
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
- options ChartForgeX.Raster.RasterDecodeOptions? = null
public static VisualCanvas AddRasterImage(VisualCanvas canvas, Double x, Double y, Double width, Double height, RgbaImage image, VisualCanvasImageFit fit = Stretch, Double opacity = 1) #VisualCanvasAdds an independent snapshot of decoded RGBA pixels as an image layer to a visual canvas.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- image ChartForgeX.Raster.RgbaImage
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
public static VisualCanvas AddRasterImage(VisualCanvas canvas, VisualCanvasPlacement placement, Double width, Double height, RgbaImage image, VisualCanvasImageFit fit = Stretch, Double opacity = 1) #VisualCanvasAdds decoded RGBA pixels as an image layer using anchor-based placement.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- image ChartForgeX.Raster.RgbaImage
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
public static VisualCanvas AddTopology(VisualCanvas canvas, Double x, Double y, Double width, Double height, TopologyChart topology, TopologyRenderOptions? options = null, VisualCanvasImageFit fit = Stretch, Double opacity = 1) #VisualCanvasAdds a rendered topology chart layer to a visual canvas.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- topology ChartForgeX.Topology.TopologyChart
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
public static VisualCanvas AddTopology(VisualCanvas canvas, VisualCanvasPlacement placement, Double width, Double height, TopologyChart topology, TopologyRenderOptions? options = null, VisualCanvasImageFit fit = Stretch, Double opacity = 1) #VisualCanvasAdds a rendered topology chart layer to a visual canvas using anchor-based placement.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- topology ChartForgeX.Topology.TopologyChart
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
public static VisualCanvas AddVisualBlock(VisualCanvas canvas, Double x, Double y, Double width, Double height, IVisualBlock block, VisualCanvasImageFit fit = Stretch, Double opacity = 1) #VisualCanvasAdds a rendered visual block layer to a visual canvas.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- block ChartForgeX.VisualBlocks.IVisualBlock
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
public static VisualCanvas AddVisualBlock(VisualCanvas canvas, VisualCanvasPlacement placement, Double width, Double height, IVisualBlock block, VisualCanvasImageFit fit = Stretch, Double opacity = 1) #VisualCanvasAdds a rendered visual block layer to a visual canvas using anchor-based placement.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- block ChartForgeX.VisualBlocks.IVisualBlock
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
public static VisualCanvas AddVisualGrid(VisualCanvas canvas, Double x, Double y, Double width, Double height, VisualGrid grid, VisualCanvasImageFit fit = Stretch, Double opacity = 1) #VisualCanvasAdds a rendered visual grid layer to a visual canvas.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- grid ChartForgeX.VisualBlocks.VisualGrid
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
public static VisualCanvas AddVisualGrid(VisualCanvas canvas, VisualCanvasPlacement placement, Double width, Double height, VisualGrid grid, VisualCanvasImageFit fit = Stretch, Double opacity = 1) #VisualCanvasAdds a rendered visual grid layer to a visual canvas using anchor-based placement.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- placement ChartForgeX.Composition.VisualCanvasPlacement
- width System.Double
- height System.Double
- grid ChartForgeX.VisualBlocks.VisualGrid
- fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch
- opacity System.Double = 1
public static Void Save(VisualCanvas canvas, String path, RasterImageOptions? rasterOptions = null) #VoidSaves a visual canvas using the output path extension to choose SVG, HTML, PNG, or another raster image format.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
- path System.String
- The output file path.
- rasterOptions ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static Void SaveBmp(VisualCanvas canvas, String path, RasterImageOptions? options = null) #VoidSaves a visual canvas as a BMP file.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- path System.String
- options ChartForgeX.Core.RasterImageOptions? = null
public static Void SaveHtml(VisualCanvas canvas, String path) #VoidSaves a visual canvas as a complete HTML file.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
- path System.String
- The output file path.
public static Void SavePng(VisualCanvas canvas, String path) #VoidSaves a visual canvas as a PNG file.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
- path System.String
- The output file path.
public static Void SavePpm(VisualCanvas canvas, String path, RasterImageOptions? options = null) #VoidSaves a visual canvas as a PPM file.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- path System.String
- options ChartForgeX.Core.RasterImageOptions? = null
public static Void SaveRasterImage(VisualCanvas canvas, String path, RasterImageFormat format, RasterImageOptions? options = null) #VoidSaves a visual canvas as an opaque raster image file.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
- path System.String
- The output file path.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static Void SaveRasterImage(VisualCanvas canvas, String path, RasterImageOptions? options = null) #VoidSaves a visual canvas as an opaque raster image file using the output path extension to choose the format.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
- path System.String
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static Void SaveSvg(VisualCanvas canvas, String path) #VoidSaves a visual canvas as an SVG file.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
- path System.String
- The output file path.
public static Void SaveTiff(VisualCanvas canvas, String path, RasterImageOptions? options = null) #VoidSaves a visual canvas as a TIFF file.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- path System.String
- options ChartForgeX.Core.RasterImageOptions? = null
public static Byte[] ToBmp(VisualCanvas canvas, RasterImageOptions? options = null) #Byte[]Renders a visual canvas to BMP bytes.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
A BMP image.
public static String ToHtmlPage(VisualCanvas canvas) #StringRenders a visual canvas to a complete HTML document.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
Returns
An HTML page.
public static Byte[] ToPng(VisualCanvas canvas) #Byte[]Renders a visual canvas to PNG bytes.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
Returns
A PNG image.
public static Byte[] ToPpm(VisualCanvas canvas, RasterImageOptions? options = null) #Byte[]Renders a visual canvas to PPM bytes.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
A PPM image.
public static Byte[] ToRasterImage(VisualCanvas canvas, RasterImageFormat format, RasterImageOptions? options = null) #Byte[]Renders a visual canvas to opaque raster image bytes.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
Encoded raster image bytes.
public static RgbaImage ToRgbaImage(VisualCanvas canvas) #RgbaImageRenders a visual canvas directly to an in-memory RGBA image without encoding it.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
Returns
The rendered RGBA image.
public static String ToSvg(VisualCanvas canvas) #StringRenders a visual canvas to SVG markup.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
Returns
SVG markup.
public static String ToSvg(VisualCanvas canvas, String idScope) #StringRenders a visual canvas to SVG markup with an additional deterministic ID scope.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
- idScope System.String
- A caller-provided scope used to keep SVG element IDs unique when embedding multiple SVGs in one document.
Returns
SVG markup.
public static Byte[] ToTiff(VisualCanvas canvas, RasterImageOptions? options = null) #Byte[]Renders a visual canvas to TIFF bytes.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
A TIFF image.
public static VisualArtifact ToVisualArtifact(VisualCanvas canvas, String? id = null, VisualArtifactSourceLanguage sourceLanguage = Native) #VisualArtifactWraps a canvas and its static producer without changing its authored layers.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- id System.String? = null
- sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native
public static Void WriteBmp(VisualCanvas canvas, Stream stream, RasterImageOptions? options = null) #VoidWrites a visual canvas to a BMP stream.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- stream System.IO.Stream
- options ChartForgeX.Core.RasterImageOptions? = null
public static Void WritePpm(VisualCanvas canvas, Stream stream, RasterImageOptions? options = null) #VoidWrites a visual canvas to a PPM stream.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- stream System.IO.Stream
- options ChartForgeX.Core.RasterImageOptions? = null
public static Void WriteRasterImage(VisualCanvas canvas, Stream stream, RasterImageFormat format, RasterImageOptions? options = null) #VoidWrites a visual canvas to an opaque raster image stream.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- The visual canvas to render.
- stream System.IO.Stream
- The destination stream.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static Void WriteTiff(VisualCanvas canvas, Stream stream, RasterImageOptions? options = null) #VoidWrites a visual canvas to a TIFF stream.
Parameters
- canvas ChartForgeX.Composition.VisualCanvas
- stream System.IO.Stream
- options ChartForgeX.Core.RasterImageOptions? = null