Diagram.CreateBitmap(ICollection, Diagram+CreateBitmapPreference) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.