Click or drag to resize
AB4D logo

TextBlockVisual3DDispose Method

Dispose method frees the VisualBrushes and RenderTargetBitmaps that are created by this TextBlockVisual3D object.

Namespace: Ab3d.Visuals
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
public void Dispose()

Implements

IDisposableDispose
Remarks

Dispose method frees the VisualBrushes and RenderTargetBitmaps that are created by this TextBlockVisual3D object.

Calling Dispose releases the native memory that can be used by the RenderTargetBitmap and may otherwise not be released (because the managed part of the object is very small). The release of the RenderTargetBitmap is done by calling RenderTargetBitmap.Clear method and then removing all references to the RenderTargetBitmap (this cannot be done in the destructor because Clear method cannot be called on another thread).

See Also