API Reference
ImageComposition
Dependency-free RGBA image composition surface for wallpapers, previews, reports, and reusable renderer hosts.
Inheritance
- Object
- ImageComposition
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
- Method ImageComposition.TryFromBytes
- Method ImageComposition.TryFromFile
Methods
Clear(ChartForgeX.Primitives.ChartColor arg1) #Fills the whole composition with a color.
Parameters
- arg1 ChartForgeX.Primitives.ChartColor
Create(System.Int32 arg1, System.Int32 arg2, ChartForgeX.Primitives.ChartColor arg3) #Creates a new composition with the requested background.
Parameters
- arg1 System.Int32
- arg2 System.Int32
- arg3 ChartForgeX.Primitives.ChartColor
CreateTransparent(System.Int32 arg1, System.Int32 arg2) #Creates a transparent composition.
Parameters
- arg1 System.Int32
- arg2 System.Int32
DrawCallout(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, System.Double arg6, System.String arg7, System.Double arg8, ChartForgeX.Primitives.ChartColor arg9, ChartForgeX.Primitives.ChartColor arg10, ChartForgeX.Primitives.ChartColor arg11, System.Double arg12, System.Double arg13, System.Double arg14) #Draws a leader line and rounded text box callout for reusable image annotations.
Parameters
- arg1 System.Double
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 System.Double
- arg6 System.Double
- arg7 System.String
- arg8 System.Double
- arg9 ChartForgeX.Primitives.ChartColor
- arg10 ChartForgeX.Primitives.ChartColor
- arg11 ChartForgeX.Primitives.ChartColor
- arg12 System.Double
- arg13 System.Double
- arg14 System.Double
DrawChart(ChartForgeX.Core.Chart arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #Draws a chart layer.
Parameters
- arg1 ChartForgeX.Core.Chart
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 System.Double
- arg6 ChartForgeX.Composition.VisualCanvasImageFit
- arg7 System.Double
DrawChart(ChartForgeX.Core.Chart arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #Draws a chart layer using anchor-based placement.
Parameters
- arg1 ChartForgeX.Core.Chart
- arg2 ChartForgeX.Composition.VisualCanvasPlacement
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Composition.VisualCanvasImageFit
- arg6 System.Double
DrawChartGrid(ChartForgeX.Core.ChartGrid arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #Draws a chart grid layer.
Parameters
- arg1 ChartForgeX.Core.ChartGrid
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 System.Double
- arg6 ChartForgeX.Composition.VisualCanvasImageFit
- arg7 System.Double
DrawChartGrid(ChartForgeX.Core.ChartGrid arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #Draws a chart grid layer using anchor-based placement.
Parameters
- arg1 ChartForgeX.Core.ChartGrid
- arg2 ChartForgeX.Composition.VisualCanvasPlacement
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Composition.VisualCanvasImageFit
- arg6 System.Double
DrawDashedLine(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, ChartForgeX.Primitives.ChartColor arg5, System.Double arg6, System.Double arg7, System.Double arg8) #Draws a dashed line segment.
Parameters
- arg1 System.Double
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Primitives.ChartColor
- arg6 System.Double
- arg7 System.Double
- arg8 System.Double
DrawImage(ChartForgeX.Raster.RgbaImage arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #Draws an image into an explicit destination rectangle.
Parameters
- arg1 ChartForgeX.Raster.RgbaImage
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 System.Double
- arg6 ChartForgeX.Composition.VisualCanvasImageFit
- arg7 System.Double
DrawImage(ChartForgeX.Raster.RgbaImage arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #Draws an image using anchor-based placement.
Parameters
- arg1 ChartForgeX.Raster.RgbaImage
- arg2 ChartForgeX.Composition.VisualCanvasPlacement
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Composition.VisualCanvasImageFit
- arg6 System.Double
DrawImageBytes(System.Byte[] arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #Decodes and draws image bytes into an explicit destination rectangle.
Parameters
- arg1 System.Byte[]
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 System.Double
- arg6 ChartForgeX.Composition.VisualCanvasImageFit
- arg7 System.Double
DrawImageBytes(System.Byte[] arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #Decodes and draws image bytes using anchor-based placement.
Parameters
- arg1 System.Byte[]
- arg2 ChartForgeX.Composition.VisualCanvasPlacement
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Composition.VisualCanvasImageFit
- arg6 System.Double
DrawImageFile(System.String arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #Decodes and draws an image file into an explicit destination rectangle.
Parameters
- arg1 System.String
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 System.Double
- arg6 ChartForgeX.Composition.VisualCanvasImageFit
- arg7 System.Double
DrawImageFile(System.String arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #Decodes and draws an image file using anchor-based placement.
Parameters
- arg1 System.String
- arg2 ChartForgeX.Composition.VisualCanvasPlacement
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Composition.VisualCanvasImageFit
- arg6 System.Double
DrawLine(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, ChartForgeX.Primitives.ChartColor arg5, System.Double arg6) #Draws a line segment.
Parameters
- arg1 System.Double
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Primitives.ChartColor
- arg6 System.Double
DrawText(System.Double arg1, System.Double arg2, System.Double arg3, System.String arg4, System.Double arg5, ChartForgeX.Primitives.ChartColor arg6, ChartForgeX.Typography.TextAlignment arg7, System.Boolean arg8) #Draws text inside a fixed-width region.
Parameters
- arg1 System.Double
- arg2 System.Double
- arg3 System.Double
- arg4 System.String
- arg5 System.Double
- arg6 ChartForgeX.Primitives.ChartColor
- arg7 ChartForgeX.Typography.TextAlignment
- arg8 System.Boolean
DrawText(System.Double arg1, System.Double arg2, System.Double arg3, System.String arg4, ChartForgeX.Typography.TextStyle arg5, ChartForgeX.Typography.TextWrapMode arg6, System.Nullable{System.Int32} arg7, ChartForgeX.Typography.TextTrimming arg8) #Draws measured and optionally wrapped text with the shared dependency-free typography engine.
Parameters
- arg1 System.Double
- arg2 System.Double
- arg3 System.Double
- arg4 System.String
- arg5 ChartForgeX.Typography.TextStyle
- arg6 ChartForgeX.Typography.TextWrapMode
- arg7 System.Nullable{System.Int32}
- arg8 ChartForgeX.Typography.TextTrimming
DrawTopology(ChartForgeX.Topology.TopologyChart arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Topology.TopologyRenderOptions arg6, ChartForgeX.Composition.VisualCanvasImageFit arg7, System.Double arg8) #Draws a topology chart layer.
Parameters
- arg1 ChartForgeX.Topology.TopologyChart
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 System.Double
- arg6 ChartForgeX.Topology.TopologyRenderOptions
- arg7 ChartForgeX.Composition.VisualCanvasImageFit
- arg8 System.Double
DrawTopology(ChartForgeX.Topology.TopologyChart arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Topology.TopologyRenderOptions arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #Draws a topology chart layer using anchor-based placement.
Parameters
- arg1 ChartForgeX.Topology.TopologyChart
- arg2 ChartForgeX.Composition.VisualCanvasPlacement
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Topology.TopologyRenderOptions
- arg6 ChartForgeX.Composition.VisualCanvasImageFit
- arg7 System.Double
DrawVisualBlock(ChartForgeX.VisualBlocks.IVisualBlock arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #Draws a visual block layer.
Parameters
- arg1 ChartForgeX.VisualBlocks.IVisualBlock
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 System.Double
- arg6 ChartForgeX.Composition.VisualCanvasImageFit
- arg7 System.Double
DrawVisualBlock(ChartForgeX.VisualBlocks.IVisualBlock arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #Draws a visual block layer using anchor-based placement.
Parameters
- arg1 ChartForgeX.VisualBlocks.IVisualBlock
- arg2 ChartForgeX.Composition.VisualCanvasPlacement
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Composition.VisualCanvasImageFit
- arg6 System.Double
DrawVisualCanvas(ChartForgeX.Composition.VisualCanvas arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #Draws a visual canvas layer.
Parameters
- arg1 ChartForgeX.Composition.VisualCanvas
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 System.Double
- arg6 ChartForgeX.Composition.VisualCanvasImageFit
- arg7 System.Double
DrawVisualCanvas(ChartForgeX.Composition.VisualCanvas arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #Draws a visual canvas layer using anchor-based placement.
Parameters
- arg1 ChartForgeX.Composition.VisualCanvas
- arg2 ChartForgeX.Composition.VisualCanvasPlacement
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Composition.VisualCanvasImageFit
- arg6 System.Double
DrawVisualGrid(ChartForgeX.VisualBlocks.VisualGrid arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #Draws a visual grid layer.
Parameters
- arg1 ChartForgeX.VisualBlocks.VisualGrid
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 System.Double
- arg6 ChartForgeX.Composition.VisualCanvasImageFit
- arg7 System.Double
DrawVisualGrid(ChartForgeX.VisualBlocks.VisualGrid arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #Draws a visual grid layer using anchor-based placement.
Parameters
- arg1 ChartForgeX.VisualBlocks.VisualGrid
- arg2 ChartForgeX.Composition.VisualCanvasPlacement
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Composition.VisualCanvasImageFit
- arg6 System.Double
FillRectangle(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, ChartForgeX.Primitives.ChartColor arg5) #Draws a filled rectangle.
Parameters
- arg1 System.Double
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Primitives.ChartColor
FillRoundedRectangle(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Primitives.ChartColor arg6) #Draws a filled rounded rectangle.
Parameters
- arg1 System.Double
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 System.Double
- arg6 ChartForgeX.Primitives.ChartColor
FromBytes(System.Byte[] arg1) #Loads image bytes and creates a composition with the decoded pixels.
Parameters
- arg1 System.Byte[]
FromFile(System.String arg1) #Loads an image file and creates a composition with the decoded pixels.
Parameters
- arg1 System.String
FromImage(ChartForgeX.Raster.RgbaImage arg1) #Creates a composition initialized with decoded image pixels.
Parameters
- arg1 ChartForgeX.Raster.RgbaImage
Save(System.String arg1, ChartForgeX.Core.RasterImageFormat arg2, ChartForgeX.Core.RasterImageOptions arg3) #Saves the composition to a raster file using an explicit format.
Parameters
- arg1 System.String
- arg2 ChartForgeX.Core.RasterImageFormat
- arg3 ChartForgeX.Core.RasterImageOptions
Save(System.String arg1, ChartForgeX.Core.RasterImageOptions arg2) #Saves the composition to a raster file using the output extension to choose the format.
Parameters
- arg1 System.String
- arg2 ChartForgeX.Core.RasterImageOptions
StrokeRectangle(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, ChartForgeX.Primitives.ChartColor arg5, System.Double arg6) #Draws a rectangle outline.
Parameters
- arg1 System.Double
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 ChartForgeX.Primitives.ChartColor
- arg6 System.Double
StrokeRoundedRectangle(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Primitives.ChartColor arg6, System.Double arg7) #Draws a rounded rectangle outline.
Parameters
- arg1 System.Double
- arg2 System.Double
- arg3 System.Double
- arg4 System.Double
- arg5 System.Double
- arg6 ChartForgeX.Primitives.ChartColor
- arg7 System.Double
ToGif() #Encodes the composition to GIF bytes.
ToImage() #Returns a copy of the current pixels.
ToJpeg(ChartForgeX.Core.RasterImageOptions arg1) #Encodes the composition to JPEG bytes.
Parameters
- arg1 ChartForgeX.Core.RasterImageOptions
ToRasterImage(ChartForgeX.Core.RasterImageFormat arg1, ChartForgeX.Core.RasterImageOptions arg2) #Encodes the composition to a dependency-free raster format.
Parameters
- arg1 ChartForgeX.Core.RasterImageFormat
- arg2 ChartForgeX.Core.RasterImageOptions
TryFromBytes(System.Byte[] arg1, ChartForgeX.Composition.ImageComposition@ arg2) #Attempts to load image bytes and create a composition with the decoded pixels.
Parameters
- arg1 System.Byte[]
- arg2 ChartForgeX.Composition.ImageComposition@
TryFromFile(System.String arg1, ChartForgeX.Composition.ImageComposition@ arg2) #Attempts to load an image file and create a composition with the decoded pixels.
Parameters
- arg1 System.String
- arg2 ChartForgeX.Composition.ImageComposition@
Write(System.IO.Stream arg1, ChartForgeX.Core.RasterImageFormat arg2, ChartForgeX.Core.RasterImageOptions arg3) #Writes the composition to a raster stream.
Parameters
- arg1 System.IO.Stream
- arg2 ChartForgeX.Core.RasterImageFormat
- arg3 ChartForgeX.Core.RasterImageOptions