WorkflowView::SaveWorkflowImage Method (Stream^, ImageFormat^)
.NET Framework (current version)
Saves an image of the WorkflowView to the specified stream using the specified image format.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
Parameters
- stream
-
Type:
System.IO::Stream^
The Stream to save the workflow view image to.
- imageFormat
-
Type:
System.Drawing.Imaging::ImageFormat^
The ImageFormat to use to save the workflow view image.
| Exception | Condition |
|---|---|
| ArgumentNullException | stream or imageFormat contains a null reference (Nothing in Visual Basic). |
The workflow view image is created as a bitmap.
The following example shows how to save the currently loaded workflow image using a Stream. In this example, a SaveFileDialog is created to prompt the user for the filename of the image to save. A FileStream object is then created using the filename and then passed to the SaveWorkflowImage method.
.NET Framework
Available since 3.0
Available since 3.0
Show: