WorkflowView.SaveWorkflowImage Method (Stream, ImageFormat)


Saves an image of the WorkflowView to the specified stream using the specified image format.

Namespace:   System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

member SaveWorkflowImage : 
        stream:Stream *
        imageFormat:ImageFormat -> unit


Type: System.IO.Stream

The Stream to save the workflow view image to.

Type: System.Drawing.Imaging.ImageFormat

The ImageFormat to use to save the workflow view image.

Exception Condition

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top