WorkflowView.SaveWorkflowImage Method (String, ImageFormat)
.NET Framework 4
Saves an image of the WorkflowView to the specified file using the specified image format.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
Parameters
- imageFile
- Type: System.String
The path to the file in which to store the workflow view image.
- imageFormat
- Type: System.Drawing.Imaging.ImageFormat
The ImageFormat to use to save the workflow view image.
| Exception | Condition |
|---|---|
| ArgumentNullException | 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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.