Diagram.CreateBitmap Method (ICollection, Diagram.CreateBitmapPreference)

 

Creates an image of the selected shapes.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public Bitmap CreateBitmap(
	ICollection selectedElements,
	Diagram.CreateBitmapPreference creationPreference
)

Parameters

selectedElements
Type: System.Collections.ICollection

The selected shapes.

creationPreference
Type: Microsoft.VisualStudio.Modeling.Diagrams.Diagram.CreateBitmapPreference

How the image should be created. For a list of preferences, see Diagram.CreateBitmapPreference.

Return Value

Type: System.Drawing.Bitmap

The image of the selected shapes; otherwise, null if no shapes were selected.

Return to top
Show: