IVsImageService2::AddCustomCompositeImage Method (Int32, Int32, Int32, array<ImageCompositionLayer>^)

Visual Studio 2015
 

Creates a new custom ImageMoniker composed of multiple images rendered together

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime (in Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime.dll)

IImageHandle^ AddCustomCompositeImage(
	int virtualWidth,
	int virtualHeight,
	int layerCount,
	array<ImageCompositionLayer>^ layers
)

Parameters

virtualWidth
Type: System::Int32

The virtual width of the canvas the composite image is rendered on. Real pixel sizes are determined by the ImageAttributes used to load the image.

virtualHeight
Type: System::Int32

The virtual height of the canvas the composite image is rendered on. Real pixel sizes are determined by the ImageAttributes used to load the image.

layerCount
Type: System::Int32

The number of layers in the image.

layers
Type: array<Microsoft.VisualStudio.Imaging.Interop::ImageCompositionLayer>^

The collection of layers composed into the image. Layers are stacked bottom-up (subsequent layers in the array are rendered on top of previous layers).

Return Value

Type: Microsoft.VisualStudio.Imaging.Interop::IImageHandle^

The IImageHandle representing the composited image. The composited image can be removed using RemoveCustomImage.

Return to top
Show: