Compartir a través de


Diagram.CreateBitmap(ICollection, Diagram+CreateBitmapPreference) Method

Definition

Constructs a bitmap representation of the selected ShapeElements.

public:
 System::Drawing::Bitmap ^ CreateBitmap(System::Collections::ICollection ^ selectedElements, Microsoft::VisualStudio::Modeling::Diagrams::Diagram::CreateBitmapPreference creationPreference);
public System.Drawing.Bitmap CreateBitmap (System.Collections.ICollection selectedElements, Microsoft.VisualStudio.Modeling.Diagrams.Diagram.CreateBitmapPreference creationPreference);
member this.CreateBitmap : System.Collections.ICollection * Microsoft.VisualStudio.Modeling.Diagrams.Diagram.CreateBitmapPreference -> System.Drawing.Bitmap
Public Function CreateBitmap (selectedElements As ICollection, creationPreference As Diagram.CreateBitmapPreference) As Bitmap

Parameters

selectedElements
ICollection

The collection of ShapeElements to include in the image.

creationPreference
Diagram.CreateBitmapPreference

Preference as to how the bitmap should be created.

Returns

Bitmap representation of the selected shapes, or null if selectedElements is empty.

Applies to