Table of Contents

Class Exporter<T>

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

Provides a base class providing common functionality for exporters.

public abstract class Exporter<T> : IExporter

Type Parameters

T

The type of the output writer.

Inheritance
Exporter<T>
Implements
Derived
Inherited Members

Methods

Close(T)

Closes the export writer.

protected virtual void Close(T writer)

Parameters

writer T

The writer.

Create(Stream)

Creates the writer for the specified stream.

protected abstract T Create(Stream stream)

Parameters

stream Stream

The stream.

Returns

T

The writer.

Encode(RenderTargetBitmap, Stream)

Encodes the specified bitmap as a PNG image.

protected void Encode(RenderTargetBitmap bmp, Stream stm)

Parameters

bmp RenderTargetBitmap

The bitmap.

stm Stream

The output stream.

Encode(RenderTargetBitmap, Stream, int)

Encodes the specified bitmap as a Jpeg image.

protected void Encode(RenderTargetBitmap bmp, Stream stm, int qualityLevel)

Parameters

bmp RenderTargetBitmap

The bitmap.

stm Stream

The output stream.

qualityLevel int

The jpeg quality level.

Export(Viewport3D, Stream)

Exports the specified viewport.

public virtual void Export(Viewport3D viewport, Stream stream)

Parameters

viewport Viewport3D

The viewport.

stream Stream

The output stream.

Export(Model3D, Stream)

Exports the specified model.

public virtual void Export(Model3D model, Stream stream)

Parameters

model Model3D

The model.

stream Stream

The output stream.

Export(Visual3D, Stream)

Exports the specified visual.

public virtual void Export(Visual3D visual, Stream stream)

Parameters

visual Visual3D

The visual.

stream Stream

The output stream.

ExportCamera(T, Camera)

Exports the camera.

protected virtual void ExportCamera(T writer, Camera camera)

Parameters

writer T

The writer.

camera Camera

The camera.

ExportHeader(T)

Exports the header.

protected virtual void ExportHeader(T writer)

Parameters

writer T

The writer.

ExportLight(T, Light, Transform3D)

Exports the light.

protected virtual void ExportLight(T writer, Light light, Transform3D inheritedTransform)

Parameters

writer T

The writer.

light Light

The light.

inheritedTransform Transform3D

The inherited transform.

ExportModel(T, GeometryModel3D, Transform3D)

Exports the model.

protected virtual void ExportModel(T writer, GeometryModel3D model, Transform3D inheritedTransform)

Parameters

writer T

The writer.

model GeometryModel3D

The model.

inheritedTransform Transform3D

The inherited transform.

ExportViewport(T, Viewport3D)

Exports the viewport.

protected virtual void ExportViewport(T writer, Viewport3D viewport)

Parameters

writer T

The writer.

viewport Viewport3D

The viewport.

RenderBrush(Stream, Brush, int, int)

Renders the brush to a PNG image.

protected void RenderBrush(Stream stm, Brush brush, int w, int h)

Parameters

stm Stream

The output stream.

brush Brush

The brush to render.

w int

The width of the output image.

h int

The height of the output image.

RenderBrush(Stream, Brush, int, int, int)

Renders the brush to a JPG image.

protected void RenderBrush(Stream stm, Brush brush, int w, int h, int qualityLevel)

Parameters

stm Stream

The output stream.

brush Brush

The brush to render.

w int

The width of the output image.

h int

The height of the output image.

qualityLevel int

The quality level of the JPG image. E.g. 90. The value range is 1 (lowest quality) to 100 (highest quality).

RenderBrush(Brush, int, int)

Renders the specified brush.

protected RenderTargetBitmap RenderBrush(Brush brush, int w, int h)

Parameters

brush Brush

The brush.

w int

The width.

h int

The height.

Returns

RenderTargetBitmap

RenderTargetBitmap.