# RgbaImage

Represents a dependency-free 32-bit RGBA raster image.

 Struct  

`ChartForgeX.Raster`

**Namespace**

`ChartForgeX.Raster`

**Assembly**

`ChartForgeX`

**Source**

[RgbaImage.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RgbaImage.cs#L20)

**Base**

`ValueType`

**Modifiers**

sealed

Represents a dependency-free 32-bit RGBA raster image.

## Inheritance

- ValueType
- RgbaImage

## Remarks

This value borrows the supplied mutable pixel array without copying it. Keep the array alive and avoid changing it while a renderer or encoder uses the image. Composition and typed visual-canvas image entrypoints document when they create independent snapshots.

## Usage

 Explore 88 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 53

- Method [ChartExtensions.ToRgbaImage](/api/chartforgex-chartextensions/#method-torgbaimage-chartforgex-core-chart)
- Method [ImageComposition.ToRgbaImage](/api/chartforgex-composition-imagecomposition/#method-torgbaimage)
- Extension method [VisualCanvas.ToRgbaImage](/api/chartforgex-composition-visualcanvas/#extension-torgbaimage-chartforgex-composition-visualcanvas)
- Method [VisualCanvas.RenderRgba](/api/chartforgex-composition-visualcanvas/#method-renderrgba)
- Extension method [Chart.ToRgbaImage](/api/chartforgex-core-chart/#extension-torgbaimage-chartforgex-core-chart)
- Extension method [ChartGrid.ToRgbaImage](/api/chartforgex-core-chartgrid/#extension-torgbaimage-chartforgex-core-chartgrid)
- Method [VisualMask.ToRgbaImage](/api/chartforgex-effects-visualmask/#method-torgbaimage)
- Method [VisualTurbulence.Generate](/api/chartforgex-effects-visualturbulence/#method-generate-chartforgex-rendering-visualsize-int32-threading-cancellationtoken)
- Property [MermaidFlowchartRenderOptions.ImageBindings](/api/chartforgex-mermaid-mermaidflowchartrenderoptions/#property-imagebindings)
- Method [VisualMotionPresentation.ToRgbaImage](/api/chartforgex-motion-visualmotionpresentation/#method-torgbaimage)
- Property [RasterAnimationFrame.Image](/api/chartforgex-raster-rasteranimationframe/#property-image)
- Method [RasterImageDecoder.Decode](/api/chartforgex-raster-rasterimagedecoder/#method-decode-byte-chartforgex-raster-rasterdecodeoptions)
- Method [RasterImageDecoder.Read](/api/chartforgex-raster-rasterimagedecoder/#method-read-io-stream-chartforgex-raster-rasterdecodeoptions)
- Method [CapturedVisualLayer.ToRgbaImage](/api/chartforgex-rendering-capturedvisuallayer/#method-torgbaimage)
- Method [IStaticVisualSource.RenderRgba](/api/chartforgex-rendering-istaticvisualsource/#method-renderrgba)
- Method [PreparedVisual.ToRgbaImage](/api/chartforgex-rendering-preparedvisual/#method-torgbaimage-chartforgex-rendering-visualrenderoptions)
- Method [PreparedVisualStory.RenderAt](/api/chartforgex-stories-preparedvisualstory/#method-renderat-timespan-int32)
- Property [VisualStoryMediaSurface.Raster](/api/chartforgex-stories-visualstorymediasurface/#property-raster)
- Property [SvgRasterizationResult.Image](/api/chartforgex-svgraster-svgrasterizationresult/#property-image)
- Method [SvgRasterizer.ToRgbaImage](/api/chartforgex-svgraster-svgrasterizer/#method-torgbaimage-string-nullable-system-int32-nullable-system-int32)
- Extension method [TopologyChart.ToRgbaImage](/api/chartforgex-topology-topologychart/#extension-torgbaimage-chartforgex-topology-topologychart-chartforgex-topology-topologyrenderoptions)
- Method [TopologyChartExtensions.ToRgbaImage](/api/chartforgex-topology-topologychartextensions/#method-torgbaimage-chartforgex-topology-topologychart-chartforgex-topology-topologyrenderoptions)
- Method [TopologyMotionPresentation.ToRgbaImage](/api/chartforgex-topology-topologymotionpresentation/#method-torgbaimage)
- Extension method [VisualArtifact.ToRgbaImage](/api/chartforgex-visualartifacts-visualartifact/#extension-torgbaimage-chartforgex-visualartifacts-visualartifact-chartforgex-visualartifacts-visualartifactrenderoptions)
- Method [VisualArtifactRendering.ToRgbaImage](/api/chartforgex-visualartifacts-visualartifactrendering/#method-torgbaimage-chartforgex-visualartifacts-visualartifact-chartforgex-visualartifacts-visualartifactrenderoptions)
- Method [ActivityTimelineBlock.RenderRgba](/api/chartforgex-visualblocks-activitytimelineblock/#method-renderrgba)
- Method [BlockLayoutBlock.RenderRgba](/api/chartforgex-visualblocks-blocklayoutblock/#method-renderrgba)
- Method [ChartList.RenderRgba](/api/chartforgex-visualblocks-chartlist/#method-renderrgba)
- Method [ChartTable.RenderRgba](/api/chartforgex-visualblocks-charttable/#method-renderrgba)
- Method [DateStripBlock.RenderRgba](/api/chartforgex-visualblocks-datestripblock/#method-renderrgba)
- Method [EntityStripBlock.RenderRgba](/api/chartforgex-visualblocks-entitystripblock/#method-renderrgba)
- Method [FactualVisualBlock<T>.RenderRgba](/api/chartforgex-visualblocks-factualvisualblock/#method-renderrgba)
- Method [FishboneDiagramBlock.RenderRgba](/api/chartforgex-visualblocks-fishbonediagramblock/#method-renderrgba)
- Method [GitGraphBlock.RenderRgba](/api/chartforgex-visualblocks-gitgraphblock/#method-renderrgba)
- Method [HeatmapInsightCard.RenderRgba](/api/chartforgex-visualblocks-heatmapinsightcard/#method-renderrgba)
- Extension method [IVisualBlock.ToRgbaImage](/api/chartforgex-visualblocks-ivisualblock/#extension-torgbaimage-chartforgex-visualblocks-ivisualblock)
- Method [JourneyDiagramBlock.RenderRgba](/api/chartforgex-visualblocks-journeydiagramblock/#method-renderrgba)
- Method [MetricCard.RenderRgba](/api/chartforgex-visualblocks-metriccard/#method-renderrgba)
- Method [PacketLayoutBlock.RenderRgba](/api/chartforgex-visualblocks-packetlayoutblock/#method-renderrgba)
- Method [RadialMetricCard.RenderRgba](/api/chartforgex-visualblocks-radialmetriccard/#method-renderrgba)
- Method [RailroadDiagramBlock.RenderRgba](/api/chartforgex-visualblocks-railroaddiagramblock/#method-renderrgba)
- Method [ScheduleTimelineBlock.RenderRgba](/api/chartforgex-visualblocks-scheduletimelineblock/#method-renderrgba)
- Method [SectionHeaderBlock.RenderRgba](/api/chartforgex-visualblocks-sectionheaderblock/#method-renderrgba)
- Method [SegmentedMetricBlock.RenderRgba](/api/chartforgex-visualblocks-segmentedmetricblock/#method-renderrgba)
- Method [TimelineDiagramBlock.RenderRgba](/api/chartforgex-visualblocks-timelinediagramblock/#method-renderrgba)
- Method [TreeViewBlock.RenderRgba](/api/chartforgex-visualblocks-treeviewblock/#method-renderrgba)
- Method [VennDiagramBlock.RenderRgba](/api/chartforgex-visualblocks-venndiagramblock/#method-renderrgba)
- Method [VisualBlock<T>.RenderRgba](/api/chartforgex-visualblocks-visualblock/#method-renderrgba)
- Extension method [VisualGrid.ToRgbaImage](/api/chartforgex-visualblocks-visualgrid/#extension-torgbaimage-chartforgex-visualblocks-visualgrid)
- Method [VisualGrid.RenderRgba](/api/chartforgex-visualblocks-visualgrid/#method-renderrgba)
- Method [WardleyMapBlock.RenderRgba](/api/chartforgex-visualblocks-wardleymapblock/#method-renderrgba)
- Method [WorkloadListBlock.RenderRgba](/api/chartforgex-visualblocks-workloadlistblock/#method-renderrgba)
- Method [VisualsExtensions.ToRgbaImage](/api/chartforgex-visualsextensions/#method-torgbaimage-chartforgex-visualblocks-visualgrid)

### Accepted by parameters 35

- Method [ChartExtensions.SaveRasterImage](/api/chartforgex-chartextensions/#method-saverasterimage-chartforgex-raster-rgbaimage-string-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) parameter `image`
- Method [ChartExtensions.ToJpeg](/api/chartforgex-chartextensions/#method-tojpeg-chartforgex-raster-rgbaimage-chartforgex-core-rasterimageoptions) parameter `image`
- Method [ChartExtensions.ToPng](/api/chartforgex-chartextensions/#method-topng-chartforgex-raster-rgbaimage) parameter `image`
- Method [ChartExtensions.ToRasterImage](/api/chartforgex-chartextensions/#method-torasterimage-chartforgex-raster-rgbaimage-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) parameter `image`
- Method [ChartExtensions.WriteRasterImage](/api/chartforgex-chartextensions/#method-writerasterimage-chartforgex-raster-rgbaimage-io-stream-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) parameter `image`
- Method [ImageComposition.DrawImage](/api/chartforgex-composition-imagecomposition/#method-drawimage-chartforgex-raster-rgbaimage-double-double-double-double-chartforgex-composition-visualcanvasimagefit-double) parameter `image`
- Method [ImageComposition.FromImage](/api/chartforgex-composition-imagecomposition/#method-fromimage-chartforgex-raster-rgbaimage) parameter `image`
- Extension method [VisualCanvas.AddRasterImage](/api/chartforgex-composition-visualcanvas/#extension-addrasterimage-chartforgex-composition-visualcanvas-chartforgex-composition-visualcanvasplacement-double-double-chartforgex-raster-rgbaimage-chartforgex-composition-visualcanvasimagefit-double) parameter `image`
- Method [VisualCanvas.AddHeroBadge](/api/chartforgex-composition-visualcanvas/#method-addherobadge-chartforgex-raster-rgbaimage-double-double-double-double-string-nullable-chartforgex-primitives-chartcolor-chartforgex-composition-visualcanvasimagefit-double-double) parameter `image`
- Method [VisualCanvas.AddImage](/api/chartforgex-composition-visualcanvas/#method-addimage-chartforgex-raster-rgbaimage-chartforgex-composition-visualcanvasplacement-double-double-double-chartforgex-composition-visualcanvasimagefit) parameter `image`
- Method [ChartFill.Image](/api/chartforgex-core-chartfill/#method-image-chartforgex-raster-rgbaimage) parameter `image`
- Method [ChartFill.Pattern](/api/chartforgex-core-chartfill/#method-pattern-chartforgex-raster-rgbaimage-double-double) parameter `image`
- Method [ChartPictorialArtwork.FromImage](/api/chartforgex-core-chartpictorialartwork/#method-fromimage-chartforgex-raster-rgbaimage) parameter `image`
- Constructor [VisualMask.VisualMask](/api/chartforgex-effects-visualmask/#constructor-ctor-chartforgex-raster-rgbaimage-chartforgex-primitives-chartpoint-int32-chartforgex-effects-visualmaskmode-boolean) parameter `image`
- Constructor [RasterAnimationFrame.RasterAnimationFrame](/api/chartforgex-raster-rasteranimationframe/#constructor-ctor-chartforgex-raster-rgbaimage-timespan) parameter `image`
- Method [RasterImageDecoder.TryDecode](/api/chartforgex-raster-rasterimagedecoder/#method-trydecode-byte-chartforgex-raster-rasterdecodeoptions-chartforgex-raster-rgbaimage) parameter `image`
- Method [RasterImageDecoder.TryRead](/api/chartforgex-raster-rasterimagedecoder/#method-tryread-io-stream-chartforgex-raster-rasterdecodeoptions-chartforgex-raster-rgbaimage) parameter `image`
- Method [RasterStoryExtensions.SaveGif](/api/chartforgex-raster-rasterstoryextensions/#method-savegif-chartforgex-raster-rgbaimage-string) parameter `image`
- Method [RasterStoryExtensions.ToApng](/api/chartforgex-raster-rasterstoryextensions/#method-toapng-collections-generic-ireadonlylist-chartforgex-raster-rgbaimage-int32-boolean) parameter `frames`
- Method [RasterStoryExtensions.ToGif](/api/chartforgex-raster-rasterstoryextensions/#method-togif-collections-generic-ireadonlylist-chartforgex-raster-rgbaimage-int32-boolean) parameter `frames`
- Method [RasterStoryExtensions.ToGif](/api/chartforgex-raster-rasterstoryextensions/#method-togif-chartforgex-raster-rgbaimage) parameter `image`
- Method [RasterStoryExtensions.WriteGif](/api/chartforgex-raster-rasterstoryextensions/#method-writegif-chartforgex-raster-rgbaimage-io-stream) parameter `image`
- Extension method [RgbaImage.SaveGif](/api/chartforgex-raster-rgbaimage/#extension-savegif-chartforgex-raster-rgbaimage-string) parameter `image`
- Extension method [RgbaImage.SaveRasterImage](/api/chartforgex-raster-rgbaimage/#extension-saverasterimage-chartforgex-raster-rgbaimage-string-chartforgex-core-rasterimageoptions) parameter `image`
- Extension method [RgbaImage.ToGif](/api/chartforgex-raster-rgbaimage/#extension-togif-chartforgex-raster-rgbaimage) parameter `image`
- Extension method [RgbaImage.ToJpeg](/api/chartforgex-raster-rgbaimage/#extension-tojpeg-chartforgex-raster-rgbaimage-chartforgex-core-rasterimageoptions) parameter `image`
- Extension method [RgbaImage.ToPng](/api/chartforgex-raster-rgbaimage/#extension-topng-chartforgex-raster-rgbaimage-chartforgex-core-rasterimageoptions) parameter `image`
- Extension method [RgbaImage.ToRasterImage](/api/chartforgex-raster-rgbaimage/#extension-torasterimage-chartforgex-raster-rgbaimage-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) parameter `image`
- Extension method [RgbaImage.ToVisualCanvas](/api/chartforgex-raster-rgbaimage/#extension-tovisualcanvas-chartforgex-raster-rgbaimage-chartforgex-composition-visualcanvasimagefit) parameter `image`
- Extension method [RgbaImage.WriteGif](/api/chartforgex-raster-rgbaimage/#extension-writegif-chartforgex-raster-rgbaimage-io-stream) parameter `image`
- Extension method [RgbaImage.WriteRasterImage](/api/chartforgex-raster-rgbaimage/#extension-writerasterimage-chartforgex-raster-rgbaimage-io-stream-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) parameter `image`
- Constructor [VisualStoryMediaSurface.VisualStoryMediaSurface](/api/chartforgex-stories-visualstorymediasurface/#constructor-ctor-chartforgex-raster-rgbaimage-string-string) parameter `raster`
- Method [TopologyIconArtwork.Portrait](/api/chartforgex-topology-topologyiconartwork/#method-portrait-chartforgex-raster-rgbaimage-chartforgex-topology-topologyportraitfit) parameter `image`
- Method [VisualsExtensions.AddRasterImage](/api/chartforgex-visualsextensions/#method-addrasterimage-chartforgex-composition-visualcanvas-double-double-double-double-chartforgex-raster-rgbaimage-chartforgex-composition-visualcanvasimagefit-double) parameter `image`
- Method [VisualsExtensions.ToVisualCanvas](/api/chartforgex-visualsextensions/#method-tovisualcanvas-chartforgex-raster-rgbaimage-chartforgex-composition-visualcanvasimagefit) parameter `image`

 Filter members   

    Show inherited   

 

## Constructors

 `public RgbaImage(int width, int height, byte[] pixels)` [#](#constructor-ctor-int32-int32-byte) 

[RgbaImage.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RgbaImage.cs#L20)

Initializes an RGBA raster image.

Parameters

**width int required**

The image width in pixels.

**height int required**

The image height in pixels.

**pixels byte[] required**

Borrowed mutable RGBA pixels, row-major from top-left. The constructor does not copy the array.

## Inherited Methods

 `public override bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from ValueType

Parameters

**obj object? required**

Returns

 `bool` 

 `public override int GetHashCode()` [#](#method-gethashcode) 

Inherited from ValueType

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public override string? ToString()` [#](#method-tostring) 

Inherited from ValueType

Returns

 `string?` 

## Fields

 `public readonly int Width` [#](#field-width) 

[RgbaImage.cs:9](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RgbaImage.cs#L9)

Gets the image width in pixels.

 `public readonly int Height` [#](#field-height) 

[RgbaImage.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RgbaImage.cs#L11)

Gets the image height in pixels.

 `public readonly byte[] Pixels` [#](#field-pixels) 

[RgbaImage.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Raster/RgbaImage.cs#L13)

Gets the image pixels as RGBA bytes, row-major from top-left.

## Extension Methods

 `public static void SaveGif(RgbaImage image, string path)` [#](#extension-savegif-chartforgex-raster-rgbaimage-string) 

[RasterStoryExtensions.cs:30](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Raster/RasterStoryExtensions.cs#L30)

Saves one RGBA image as a single-frame GIF.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

**path string required**

 SaveRasterImage 2 overloads 

 `public static void SaveRasterImage(RgbaImage image, string path, RasterImageFormat format, RasterImageOptions? options = null)` [#](#extension-saverasterimage-chartforgex-raster-rgbaimage-string-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:410](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L410)

Saves RGBA pixels to a dependency-free raster file.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

The image to encode.

**path string required**

The output file path.

**format ChartForgeX.Core.RasterImageFormat required**

The raster image format.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

 `public static void SaveRasterImage(RgbaImage image, string path, RasterImageOptions? options = null)` [#](#extension-saverasterimage-chartforgex-raster-rgbaimage-string-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:419](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L419)

Saves RGBA pixels to a raster file using the output path extension to choose the format.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

The image to encode.

**path string required**

The output file path.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

 `public static byte[] ToGif(RgbaImage image)` [#](#extension-togif-chartforgex-raster-rgbaimage) 

[RasterStoryExtensions.cs:10](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Raster/RasterStoryExtensions.cs#L10)

Encodes one RGBA image as a single-frame GIF.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

Returns

 `byte[]` 

 `public static byte[] ToJpeg(RgbaImage image, RasterImageOptions? options = null)` [#](#extension-tojpeg-chartforgex-raster-rgbaimage-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:375](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L375)

Encodes RGBA pixels to JPEG bytes after flattening transparent pixels against the configured background.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

The image to encode.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

Returns

 `byte[]` A JPEG image. 

 ToPng 2 overloads 

 `public static byte[] ToPng(RgbaImage image)` [#](#extension-topng-chartforgex-raster-rgbaimage) 

[ChartExtensions.Raster.cs:362](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L362)

Encodes RGBA pixels to PNG bytes.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

The image to encode.

Returns

 `byte[]` A PNG image. 

 `public static byte[] ToPng(RgbaImage image, RasterImageOptions? options)` [#](#extension-topng-chartforgex-raster-rgbaimage-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:367](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L367)

Encodes an RGBA image as PNG bytes using dependency-free raster options.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

**options ChartForgeX.Core.RasterImageOptions? required**

Returns

 `byte[]` 

 `public static byte[] ToRasterImage(RgbaImage image, RasterImageFormat format, RasterImageOptions? options = null)` [#](#extension-torasterimage-chartforgex-raster-rgbaimage-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:385](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L385)

Encodes RGBA pixels to a dependency-free raster format.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

The image to encode.

**format ChartForgeX.Core.RasterImageFormat required**

The raster image format.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

Returns

 `byte[]` Encoded raster image bytes. 

 `public static VisualCanvas ToVisualCanvas(RgbaImage image, VisualCanvasImageFit fit = Stretch)` [#](#extension-tovisualcanvas-chartforgex-raster-rgbaimage-chartforgex-composition-visualcanvasimagefit) 

[VisualsExtensions.cs:157](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Visuals/VisualsExtensions.cs#L157)

Creates a visual canvas from decoded RGBA pixels with the image as the first layer.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

**fit ChartForgeX.Composition.VisualCanvasImageFit = Stretch optional**

Returns

 `VisualCanvas` 

 `public static void WriteGif(RgbaImage image, Stream stream)` [#](#extension-writegif-chartforgex-raster-rgbaimage-io-stream) 

[RasterStoryExtensions.cs:25](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Raster/RasterStoryExtensions.cs#L25)

Writes one RGBA image as a single-frame GIF.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

**stream System.IO.Stream required**

 `public static void WriteRasterImage(RgbaImage image, Stream stream, RasterImageFormat format, RasterImageOptions? options = null)` [#](#extension-writerasterimage-chartforgex-raster-rgbaimage-io-stream-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:397](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L397)

Writes RGBA pixels to a dependency-free raster stream.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

The image to encode.

**stream System.IO.Stream required**

The destination stream.

**format ChartForgeX.Core.RasterImageFormat required**

The raster image format.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

<!-- PowerForge markdown artifact sha256:946EDC10497A7FB432879F0A2DC1AE66B1390BE223298BAED57E894911982891 -->
