Share via


IVsImageService2.AddCustomCompositeImage Method

Definition

Creates a new custom ImageMoniker composed of multiple images rendered together

public:
 Microsoft::VisualStudio::Imaging::Interop::IImageHandle ^ AddCustomCompositeImage(int virtualWidth, int virtualHeight, int layerCount, cli::array <Microsoft::VisualStudio::Imaging::Interop::ImageCompositionLayer> ^ layers);
Microsoft::VisualStudio::Imaging::Interop::IImageHandle AddCustomCompositeImage(int virtualWidth, int virtualHeight, int layerCount, std::Array <Microsoft::VisualStudio::Imaging::Interop::ImageCompositionLayer> const & layers);
public Microsoft.VisualStudio.Imaging.Interop.IImageHandle AddCustomCompositeImage (int virtualWidth, int virtualHeight, int layerCount, Microsoft.VisualStudio.Imaging.Interop.ImageCompositionLayer[] layers);
abstract member AddCustomCompositeImage : int * int * int * Microsoft.VisualStudio.Imaging.Interop.ImageCompositionLayer[] -> Microsoft.VisualStudio.Imaging.Interop.IImageHandle
Public Function AddCustomCompositeImage (virtualWidth As Integer, virtualHeight As Integer, layerCount As Integer, layers As ImageCompositionLayer()) As IImageHandle

Parameters

virtualWidth
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
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
Int32

The number of layers in the image.

layers
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).

Returns

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

Applies to