WorkflowView.SaveWorkflowImage Method (String, ImageFormat)
Saves an image of the WorkflowView to the specified file using the specified image format.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
imageFile or imageFormat contains a null reference (Nothing in Visual Basic).
The following example shows how to save the currently loaded workflow image using a String. In this example, a SaveFileDialog is created to prompt the user for the filename of the image to save. The filename and the ImageFormat.Bmp flag are then passed to the SaveWorkflowImage method.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2