Expand Minimize

Diagram.CreateBitmap Method

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft