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
TThe 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
writerTThe writer.
Create(Stream)
Creates the writer for the specified stream.
protected abstract T Create(Stream stream)
Parameters
streamStreamThe stream.
Returns
- T
The writer.
Encode(RenderTargetBitmap, Stream)
Encodes the specified bitmap as a PNG image.
protected void Encode(RenderTargetBitmap bmp, Stream stm)
Parameters
bmpRenderTargetBitmapThe bitmap.
stmStreamThe output stream.
Encode(RenderTargetBitmap, Stream, int)
Encodes the specified bitmap as a Jpeg image.
protected void Encode(RenderTargetBitmap bmp, Stream stm, int qualityLevel)
Parameters
bmpRenderTargetBitmapThe bitmap.
stmStreamThe output stream.
qualityLevelintThe jpeg quality level.
Export(Viewport3D, Stream)
Exports the specified viewport.
public virtual void Export(Viewport3D viewport, Stream stream)
Parameters
viewportViewport3DThe viewport.
streamStreamThe output stream.
Export(Model3D, Stream)
Exports the specified model.
public virtual void Export(Model3D model, Stream stream)
Parameters
Export(Visual3D, Stream)
Exports the specified visual.
public virtual void Export(Visual3D visual, Stream stream)
Parameters
ExportCamera(T, Camera)
Exports the camera.
protected virtual void ExportCamera(T writer, Camera camera)
Parameters
writerTThe writer.
cameraCameraThe camera.
ExportHeader(T)
Exports the header.
protected virtual void ExportHeader(T writer)
Parameters
writerTThe writer.
ExportLight(T, Light, Transform3D)
Exports the light.
protected virtual void ExportLight(T writer, Light light, Transform3D inheritedTransform)
Parameters
writerTThe writer.
lightLightThe light.
inheritedTransformTransform3DThe inherited transform.
ExportModel(T, GeometryModel3D, Transform3D)
Exports the model.
protected virtual void ExportModel(T writer, GeometryModel3D model, Transform3D inheritedTransform)
Parameters
writerTThe writer.
modelGeometryModel3DThe model.
inheritedTransformTransform3DThe inherited transform.
ExportViewport(T, Viewport3D)
Exports the viewport.
protected virtual void ExportViewport(T writer, Viewport3D viewport)
Parameters
writerTThe writer.
viewportViewport3DThe 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
stmStreamThe output stream.
brushBrushThe brush to render.
wintThe width of the output image.
hintThe 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
stmStreamThe output stream.
brushBrushThe brush to render.
wintThe width of the output image.
hintThe height of the output image.
qualityLevelintThe 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
Returns
- RenderTargetBitmap
RenderTargetBitmap.