This topic has not yet been rated - Rate this topic

Diagram.CreateBitmap Method

Creates an image of the selected shapes.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ