This class sets up an IRenderContext
object for exporting the contents of a CanvasControl (see Setup(CanvasControl, Graphics)).
Namespace: yWorks.CanvasAssembly: yWorks.yFilesNET.Viewer (in yWorks.yFilesNET.Viewer.dll) Version: 4.1.0.1 (4.1.0.1)
Syntax
| C# |
|---|
public class ContextConfigurator |
| Visual Basic |
|---|
Public Class ContextConfigurator |
Remarks
- It is possible to export only a part of the contents, see WorldBounds.
- The size of the target graphics is controlled by the Scale. Instead of setting the Scale explicitly, it is also possible to set it implicitly for a given target width or height, see SetScaleForWidth(Double) and SetScaleForHeight(Double).
Inheritance Hierarchy
System..::..Object
yWorks.Canvas..::..ContextConfigurator
yWorks.Canvas..::..ContextConfigurator