Diagram.CreateBitmap Method
Creates an image of the selected shapes.
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.BitmapThe image of the selected shapes; otherwise, null if no shapes were selected.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.