Table of Contents

Class BitmapExporter

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

Exports a Viewport3D to a .bmp, .png or .jpg file.

public sealed class BitmapExporter : IExporter
Inheritance
BitmapExporter
Implements
Inherited Members

Constructors

BitmapExporter()

Initializes a new instance of the BitmapExporter class.

public BitmapExporter()

Properties

Background

Gets or sets the background brush.

public Brush? Background { get; set; }

Property Value

Brush

The background.

Format

Gets or sets the name of the file.

public BitmapExporter.OutputFormat Format { get; set; }

Property Value

BitmapExporter.OutputFormat

The name of the file.

OversamplingMultiplier

Gets or sets the oversampling multiplier.

public int OversamplingMultiplier { get; set; }

Property Value

int

The oversampling multiplier.

Methods

Export(Viewport3D, Stream)

Exports the specified viewport.

public void Export(Viewport3D viewport, Stream stream)

Parameters

viewport Viewport3D

The viewport.

stream Stream

The output stream.

Exceptions

InvalidOperationException

Not supported file format.

Export(Model3D, Stream)

Exports the specified model.

public void Export(Model3D model, Stream stream)

Parameters

model Model3D

The model.

stream Stream

The output stream.

Exceptions

NotImplementedException

Cannot export a model to a bitmap.

Export(Visual3D, Stream)

Exports the specified visual.

public void Export(Visual3D visual, Stream stream)

Parameters

visual Visual3D

The visual.

stream Stream

The output stream.

Exceptions

NotImplementedException

Cannot export a visual to a bitmap.